Bug 101314 - [DP][SKL][BDW] Logout after hotplug event through MST dongle
Summary: [DP][SKL][BDW] Logout after hotplug event through MST dongle
Status: CLOSED NOTABUG
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: high critical
Assignee: Dhinakaran Pandiyan
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-06 14:20 UTC by Elio
Modified: 2018-04-23 10:04 UTC (History)
3 users (show)

See Also:
i915 platform: BDW, SKL
i915 features: display/audio, display/DP, display/DP MST


Attachments
Audio Log (421.95 KB, text/plain)
2017-06-06 14:35 UTC, Elio
no flags Details
dmesg (121.15 KB, text/plain)
2017-06-09 16:28 UTC, Ricardo Madrigal
no flags Details
dmesg-audio-unplug (251.83 KB, text/plain)
2018-04-04 21:25 UTC, Elizabeth
no flags Details
kern-log-audio-unplug (616.40 KB, text/plain)
2018-04-04 21:31 UTC, Elizabeth
no flags Details

Description Elio 2017-06-06 14:20:07 UTC

    
Comment 1 Elio 2017-06-06 14:35:03 UTC
Description:

Audio process is lost after performing a hotplug event on the MST dongle in DP.

Configuration:

======================================
             Hardware
======================================
platform                   : SKL Canyon
motherboard id             : NUC6i7KYB
form factor                : Desktop
cpu family                 : Core i7
cpu family id              : 6
cpu information            : Intel(R) Core(TM) i7-6770HQ CPU @ 2.60GHz
gpu card                   : Intel Corporation Iris Pro Graphics 580 (rev 09) (prog-if 00 [VGA controller])
memory ram                 : 31.31 GB
max memory ram             : 32 GB
cpu thread                 : 8
cpu core                   : 4
cpu model                  : 94
cpu stepping               : 3
socket                     : Other
signature                  : Type 0, Family 6, Model 94, Stepping 3
hard drive                 : 223GiB (240GB)
current cd clock frequency : 450000 kHz
maximum cd clock frequency : 675000 kHz
displays connected         : DP-5
======================================
        Graphic drivers
======================================
modesetting                 : modesetting_drv.so
xorg-xserver                : 1.19.3
libdrm                      : 2.4.81
Aborted (core dumped)
cairo                       : 1.14.8
xserver                     : X.Org X Server 1.19.99.1
intel-gpu-tools (tag)       : intel-gpu-tools-1.18-211-g00ce341b
intel-gpu-tools (commit)    : 00ce341b

Steps to reproduce:

1. Connect a DP monitor, less than 4k  audio capable to your MST dongle
2. Boot up and login with your credentials in to UI
3. Open a terminal and start playing an audio file $ aplay <file>
4. During playback unplug DP cable from MST hub
5. Plug back DP cable


Expected results:

The audio should pause during unplug/plug event without closing audio thread

Actual Result:

Audio process is lost , closing terminal.

Attaching dmesg
Comment 2 Elio 2017-06-06 14:35:42 UTC
Created attachment 131737 [details]
Audio Log
Comment 3 keqiao 2017-06-07 07:56:21 UTC
Hi Elio,

 I tried to reproduce this issue in my side but failed, I connected 2*DP monitors(DELL) to MST Hub and do hot-plug for each one when DP audio is played, both DP audio can be resumed after hot-plug event without issues. 
Here is my test ENV:
======================================
             Hardware
======================================
platform          : SKL NUC
Pcode             : NUC6i7KYK-IDD
MST Hub           : StarTech
Part #            : MSTMDP123DP
======================================
             Software
======================================
linux OS          : Ububtu 16.04 LTS
Kernel version    : 4.12.0-rc4+

BTW, I'm also confusing about "closing terminal" you mentioned above, if the terminal is closed, then audio process exit is expected.

thanks
Comment 4 Ricardo Madrigal 2017-06-09 16:28:23 UTC
Created attachment 131829 [details]
dmesg
Comment 5 Ricardo Madrigal 2017-06-09 16:28:47 UTC
[DP] [BDW] Auido process is lost after hotplug event through MST dongle 

I am testing with monitor Asus 1080 and  MST Dongle "Sinix". When I unplug DP from the out of the dongle, I lose audio and video signal, but if i unplug direct DP connection, platform to MST, everything works fine 	

This is my configuration 
--------------------------------------------------
======================================
             Hardware
======================================
platform                   : BDW
motherboard id             : NUC5i7RYB
form factor                : Desktop
cpu family                 : Core i7
cpu family id              : 6
cpu information            : Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz
gpu card                   : Intel Corporation Iris Graphics 6100 (rev 09) (prog-if 00 [VGA controller])
memory ram                 : 15.58 GB
max memory ram             : 16 GB
display resolution         : 1600x900
cpu thread                 : 4
cpu core                   : 2
cpu model                  : 61
cpu stepping               : 4
socket                     : Socket BGA1168
signature                  : Type 0, Family 6, Model 61, Stepping 4
hard drive                 : 111GiB (120GB)
current cd clock frequency : 337500 kHz
maximum cd clock frequency : 540000 kHz
displays connected         : DP-2

======================================
             Software
======================================
kernel version              : 4.12.0-rc3-drm-tip-ww22-commit-187376e+
architecture                : x86_64
os version                  : Ubuntu 17.04
os codename                 : zesty
kernel driver               : i915
bios revision               : 5.6
bios release date           : 05/11/2017


======================================
              Kernel 
======================================
commit:  187376e

--------------------------------------
Steps to reproduce:
--------------------------------------

1. Connect a DP monitor, less than 4k  audio capable to your MST dongle
2. Boot up and login with your credentials in to UI
3. Open a terminal and start playing an audio file $ aplay <file>
4. During playback unplug DP cable from MST hub
5. Plug back DP cable

------------------------------------------
Expected results:
------------------------------------------
The audio should pause during unplug/plug event without closing audio thread

---------------------------------------------
Actual Result:
---------------------------------------------
Audio and video is lost.

--------------------------------------------------

Attaching dmesg
Comment 6 Elio 2017-06-09 16:29:53 UTC
I forgot to mention that this problem is happening on SKL only with 4k resolution at the end, monitor 1080p are working fine as you mention before
Comment 7 Ricardo Madrigal 2017-06-21 20:11:17 UTC
This issue is happening in BDW too:
This is my configuration 
--------------------------------------------------
======================================
             Hardware
======================================
platform                   : BDW
motherboard id             : NUC5i7RYB
form factor                : Desktop
cpu family                 : Core i7
cpu family id              : 6
cpu information            : Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz
gpu card                   : Intel Corporation Iris Graphics 6100 (rev 09) (prog-if 00 [VGA controller])
memory ram                 : 15.58 GB
max memory ram             : 16 GB
display resolution         : 1600x900
cpu thread                 : 4
cpu core                   : 2
cpu model                  : 61
cpu stepping               : 4
socket                     : Socket BGA1168
signature                  : Type 0, Family 6, Model 61, Stepping 4
hard drive                 : 111GiB (120GB)
current cd clock frequency : 337500 kHz
maximum cd clock frequency : 540000 kHz
displays connected         : DP-2

======================================
             Software
======================================
kernel version              : 4.12.0-rc3-drm-tip-ww22-commit-187376e+
architecture                : x86_64
os version                  : Ubuntu 17.04
os codename                 : zesty
kernel driver               : i915
bios revision               : 5.6
bios release date           : 05/11/2017


======================================
              Kernel 
======================================
commit:  187376e
Comment 8 keqiao 2017-06-23 03:01:29 UTC
Hi Elio,

I can reproduce this issue, as you mentioned that both audio and video signal are lost after the hot-plug event. I think we need to fix the Graphic issue first, then we are able to find out if the audio issue exists.

Thanks~
Comment 9 Dhinakaran Pandiyan 2017-08-14 18:08:30 UTC
(In reply to Ricardo Madrigal from comment #7)
> This issue is happening in BDW too:
> This is my configuration 
> --------------------------------------------------
> ======================================
>              Hardware
> ======================================
> platform                   : BDW
> motherboard id             : NUC5i7RYB
> form factor                : Desktop
> cpu family                 : Core i7
> cpu family id              : 6
> cpu information            : Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz
> gpu card                   : Intel Corporation Iris Graphics 6100 (rev 09)
> (prog-if 00 [VGA controller])
> memory ram                 : 15.58 GB
> max memory ram             : 16 GB
> display resolution         : 1600x900
> cpu thread                 : 4
> cpu core                   : 2
> cpu model                  : 61
> cpu stepping               : 4
> socket                     : Socket BGA1168
> signature                  : Type 0, Family 6, Model 61, Stepping 4
> hard drive                 : 111GiB (120GB)
> current cd clock frequency : 337500 kHz
> maximum cd clock frequency : 540000 kHz
> displays connected         : DP-2
> 
> ======================================
>              Software
> ======================================
> kernel version              : 4.12.0-rc3-drm-tip-ww22-commit-187376e+
> architecture                : x86_64
> os version                  : Ubuntu 17.04
> os codename                 : zesty
> kernel driver               : i915
> bios revision               : 5.6
> bios release date           : 05/11/2017
> 
> 
> ======================================
>               Kernel 
> ======================================
> commit:  187376e

Can you please respond to Keqiao's comment about video being lost too? Does the display come back after plugging the display?
Comment 10 Dhinakaran Pandiyan 2017-08-14 21:02:16 UTC
Ricardo,

Since you've closed https://bugs.freedesktop.org/show_bug.cgi?id=101461, the display should come up after plugging it back in this case too. Can you please retest?
Comment 11 Elizabeth 2017-09-28 22:49:37 UTC
(In reply to Dhinakaran Pandiyan from comment #10)
> Ricardo,
> 
> Since you've closed https://bugs.freedesktop.org/show_bug.cgi?id=101461, the
> display should come up after plugging it back in this case too. Can you
> please retest?
Hello Dhinakaran, 
I tested it again and was able to easily reproduce it on SKL with MST hub connected directly to DP, in the output side I only connected ONE DP display and nothing else. Then I disconnected the DP cable and when I connected it again the login screen appears in display, no sound reproducing. Then I logged in and the terminal was closed as described in comment #1. 

======================================
             Software
======================================
kernel version              : 4.14.0-rc2-drm-tip-ww39-commit-f4bd0d1+
architecture                : x86_64
os version                  : Ubuntu 17.04
os codename                 : zesty
kernel driver               : i915
bios revision               : 5.6
bios release date           : 09/29/2016

======================================
        Graphic drivers
======================================
mesa                        : 17.0.3
modesetting                 : modesetting_drv.so
xorg-xserver                : 1.19.3
libdrm                      : 2.4.81
cairo                       : 1.14.8
xserver                     : X.Org X Server 1.19.99.1
intel-gpu-tools (tag)       : intel-gpu-tools-1.18-211-g00ce341b
intel-gpu-tools (commit)    : 00ce341b

======================================
             Hardware
======================================
platform                   : SKL Canyon
motherboard id             : NUC6i7KYB
form factor                : Desktop
cpu family                 : Core i7
cpu family id              : 6
cpu information            : Intel(R) Core(TM) i7-6770HQ CPU @ 2.60GHz
gpu card                   : Intel Corporation Iris Pro Graphics 580 (rev 09) (prog-if 00 [VGA controller])
memory ram                 : 31.31 GB
max memory ram             : 32 GB
display resolution         : 1600x900
cpu thread                 : 8
cpu core                   : 4
cpu model                  : 94
cpu stepping               : 3
socket                     : Other
signature                  : Type 0, Family 6, Model 94, Stepping 3
hard drive                 : 223GiB (240GB)
current cd clock frequency : 450000 kHz
maximum cd clock frequency : 675000 kHz
displays connected         : DP-5

======================================
             Firmware
======================================
dmc fw loaded             : yes
dmc version               : 1.26
guc fw loaded             : NONE
guc version wanted        : 0.0
guc version found         : 0.0

======================================
             kernel parameters
======================================
quiet splash fastboot drm.debug=0xe
Comment 12 Jani Saarinen 2018-03-29 07:10:09 UTC
First of all. Sorry about spam.
This is mass update for our bugs. 

Sorry if you feel this annoying but with this trying to understand if bug still valid or not.
If bug investigation still in progress, please ignore this and I apologize!

If you think this is not anymore valid, please comment to the bug that can be closed.
If you haven't tested with our latest pre-upstream tree(drm-tip), can you do that also to see if issue is valid there still and if you cannot see issue there, please comment to the bug.
Comment 13 Elizabeth 2018-04-04 21:24:41 UTC
(In reply to keqiao from comment #8)
> Hi Elio,
> 
> I can reproduce this issue, as you mentioned that both audio and video
> signal are lost after the hot-plug event. I think we need to fix the Graphic
> issue first, then we are able to find out if the audio issue exists.
> 
> Thanks~
Hi, I tried to reproduce this issue again on BDW. As it seems, after I unplug and plug the DP cable from the MST dongle, the BDW makes a logout, returning to the login window when I connect the cable again, and all windows are closed.

$ uname -a
Linux gfx-desktop 4.16.0 #2 SMP Tue Apr 3 16:41:31 CDT 2018 x86_64 x86_64 x86_64 GNU/Linux

I'm using the latest stable on kernel.org
Comment 14 Elizabeth 2018-04-04 21:25:04 UTC
Created attachment 138603 [details]
dmesg-audio-unplug
Comment 15 Elizabeth 2018-04-04 21:31:37 UTC
Created attachment 138607 [details]
kern-log-audio-unplug
Comment 16 Elizabeth 2018-04-05 15:49:48 UTC
(In reply to keqiao from comment #8)
> Hi Elio,
> 
> I can reproduce this issue, as you mentioned that both audio and video
> signal are lost after the hot-plug event. I think we need to fix the Graphic
> issue first, then we are able to find out if the audio issue exists.
> 
> Thanks~
Hello, this is still behaving the same in SKL with 4.16. Once the video and sound are lost the only way to bring it back is plugging the HDMI output to a second display.
Comment 17 Jani Nikula 2018-04-06 09:38:11 UTC
(In reply to Elio from comment #1)
> Audio process is lost after performing a hotplug event on the MST dongle in
> DP.

> Audio process is lost , closing terminal.

What exactly is the bug here? Specifically, what is the *kernel* bug here?
Comment 18 Jani Saarinen 2018-04-23 10:04:30 UTC
Closing, please re-open if still occurs.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.