Bug 101390

Summary: [DP] [BDW][BXT] Error with display test using MST dongle
Product: DRI Reporter: Ricardo Madrigal <ricardox.madrigal.maldonado>
Component: DRM/IntelAssignee: Manasi <manasi.d.navare>
Status: CLOSED INVALID QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: blocker    
Priority: highest CC: intel-gfx-bugs, ricardo.vega
Version: XOrg git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard: ReadyForDev
i915 platform: BDW, BXT i915 features: display/DP MST
Attachments:
Description Flags
dmesg
none
kernel log
none
dmesg.log before
none
dmesg.log after none

Description Ricardo Madrigal 2017-06-12 17:43:25 UTC
Created attachment 131894 [details]
dmesg

-------------------------------------------------
==Bug detailed description==
--------------------------------------------------
When script test start for testing display, screen only show some resolutions and after that send a blank screen.
If you disconnect and connect the DP from platform, the video works again.

This happen with configuration (mini DP to DP) + (DP to DP) with monitor 4K and a MST dongle "sunix"

-------------------------------------------------
==Steps to reproduce==
--------------------------------------------------
1. Connect platform to DP using required dongle
2. Turn device ON
3. Enter in text mode and login with your credentials
4. run test "testdisplay -a" or "testdisplay -t"  or "testdisplay -d 16" or "testdisplay -d 24"

--------------------------------------------------
==Actual results==
--------------------------------------------------
Platform only show some resolutions and then send a blank screen.
dmeg shows some linktrainning issues and some FIFO undergrounds: 
[drm:intel_cpu_fifo_underrun_irq_handler [i915]] *ERROR* CPU pipe A FIFO underrun

-------------------------------------------------
==Expected results==
--------------------------------------------------
Script should start testing IGT and resolutions tested should not have corruptions, flickering or glitches.

--------------------------------------------------
======================================
             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


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

Attaching dmesg
Comment 1 Elizabeth 2017-06-13 20:03:40 UTC
Adding tag into "Whiteboard" field - ReadyForDev
*Status is correct
*Platform is included
*Feature is included
*Priority and Severity correctly set
*Logs included
Comment 2 Armando Antonio 2017-06-16 17:12:17 UTC
Created attachment 132005 [details]
kernel log
Comment 3 Armando Antonio 2017-06-16 17:13:27 UTC
This issue happens in APL too:

======================================
	Graphic stack
======================================

======================================
	     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               : 161.11
bios release date           : 10/24/2016
ksc                         : 1.22

======================================
	Graphic drivers
======================================
mesa                        : 17.2.0-devel (git-18efb404cf
modesetting                 : modesetting_drv.so
xorg-xserver                : 1.19.3
libdrm                      : 2.4.81
vaapi (intel-driver)        : Intel i965 driver for Intel(R) Broxton - 1.7.3
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
======================================
motherboard model          : BroxtonP
motherboard id             : ApollolakeRVP1A
form factor                : Hand Held
manufacturer               : IntelCorp.
cpu family                 : Other
cpu family id              : 6
cpu information            : 06/5c
gpu card                   : Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series Integrated Graphics Controller (rev 0a) (prog-if 00 [VGA controller])
memory ram                 : 7.61 GB
max memory ram             : 16 GB
display resolution         : 3840x1080
cpu thread                 : 4
cpu core                   : 4
cpu model                  : 92
cpu stepping               : 9
socket                     : Other
hard drive                 : 111GiB (120GB)
current cd clock frequency : 288000 kHz
maximum cd clock frequency : 624000 kHz
displays connected         : DP-1 DP-2
Comment 4 Ricardo Madrigal 2017-06-23 20:24:09 UTC
This issue happens in HSW too.

This is my configuration:
======================================
             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               : 4.6
bios release date           : 03/02/2017
hardware acceleration       : disabled
swap partition              : enabled on (/dev/sda2)

======================================
        Graphic drivers
======================================
mesa                        : 17.0.3
modesetting                 : enabled
modesetting compiled for    : 1.19.3 X.Org Video Driver
xorg-xserver                : 1.19.3
libdrm                    : 2.4.76
libva                       : 1.7.3-2
vaapi (intel-driver)        : 1.7.3
cairo                       : 1.14.8-1
intel-gpu-tools             : 1.17-1

======================================
             Hardware
======================================
platform                   : Haswell-Nuc
motherboard id             : D54250WYK
form factor                : Desktop
cpu family                 : Core i5
cpu family id              : 6
cpu information            : Intel(R) Core(TM) i5-4250U CPU @ 1.30GHz
gpu card                   : Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
memory ram                 : 3.79 GB
max memory ram             : 16 GB
display resolution         : 1600x900
cpu thread                 : 4
cpu core                   : 2
cpu model                  : 69
cpu stepping               : 1
socket                     : Socket LGA1150
signature                  : Type 0, Family 6, Model 69, Stepping 1
hard drive                 : 223GiB (240GB)
current cd clock frequency : 450000 kHz
maximum cd clock frequency : 450000 kHz
displays connected         : DP-2 DP-3 DP-6
Comment 5 Ricardo Madrigal 2017-07-18 20:56:32 UTC
I ran this test with lasted kernel version, with this configuration: 

(mini DP to DP) + (DP to DP) with monitor 4K and a MST dongle "SUNIX"

gfx@gfx-desktop:~/intel-graphics/intel-gpu-tools/tests$ sudo -E ./testdisplay -a
CRTC(32):[0]  3840x2160 60 3840 3888 3920 4000 2160 2163 2168 2222 0x9 0x48 533250
CRTC(32):[1]  3840x2160 30 3840 3888 3920 4000 2160 2165 2170 2191 0x5 0x40 262790
CRTC(32):[2]  3840x2160 24 3840 3888 3920 4000 2160 2163 2168 2185 0x5 0x40 209800
CRTC(32):[3]  2560x1440 60 2560 2608 2640 2720 1440 1443 1448 1481 0x9 0x40 241500
CRTC(32):[4]  1920x1080 60 1920 2008 2052 2200 1080 1084 1089 1125 0x5 0x40 148500
CRTC(32):[5]  1920x1080 60 1920 2008 2052 2200 1080 1084 1089 1125 0x5 0x40 148352
CRTC(32):[6]  1920x1080 50 1920 2448 2492 2640 1080 1084 1089 1125 0x5 0x40 148500
CRTC(32):[7]  1920x1080 24 1920 2558 2602 2750 1080 1084 1089 1125 0x5 0x40 74250
CRTC(32):[8]  1920x1080 24 1920 2558 2602 2750 1080 1084 1089 1125 0x5 0x40 74176
CRTC(32):[9]  1680x1050 60 1680 1784 1960 2240 1050 1053 1059 1089 0x6 0x40 146250
CRTC(32):[10]  1280x1024 75 1280 1296 1440 1688 1024 1025 1028 1066 0x5 0x40 135000
CRTC(32):[11]  1280x1024 60 1280 1328 1440 1688 1024 1025 1028 1066 0x5 0x40 108000
CRTC(32):[12]  1440x900 60 1440 1520 1672 1904 900 903 909 934 0x6 0x40 106500
CRTC(32):[13]  1280x960 60 1280 1376 1488 1800 960 961 964 1000 0x5 0x40 108000
CRTC(32):[14]  1152x864 75 1152 1216 1344 1600 864 865 868 900 0x5 0x40 108000
CRTC(32):[15]  1280x720 60 1280 1390 1430 1650 720 725 730 750 0x5 0x40 74250
CRTC(32):[16]  1280x720 60 1280 1390 1430 1650 720 725 730 750 0x5 0x40 74176
CRTC(32):[17]  1280x720 50 1280 1720 1760 1980 720 725 730 750 0x5 0x40 74250
CRTC(32):[18]  1024x768 75 1024 1040 1136 1312 768 769 772 800 0x5 0x40 78750
CRTC(32):[19]  1024x768 70 1024 1048 1184 1328 768 771 777 806 0xa 0x40 75000
CRTC(32):[20]  1024x768 60 1024 1048 1184 1344 768 771 777 806 0xa 0x40 65000
CRTC(32):[21]  832x624 75 832 864 928 1152 624 625 628 667 0xa 0x40 57284
CRTC(32):[22]  800x600 75 800 816 896 1056 600 601 604 625 0x5 0x40 49500
CRTC(32):[23]  800x600 72 800 856 976 1040 600 637 643 666 0x5 0x40 50000
CRTC(32):[24]  800x600 60 800 840 968 1056 600 601 605 628 0x5 0x40 40000
CRTC(32):[25]  800x600 56 800 824 896 1024 600 601 603 625 0x5 0x40 36000
CRTC(32):[26]  720x576 50 720 732 796 864 576 581 586 625 0xa 0x40 27000
CRTC(32):[27]  720x480 60 720 736 798 858 480 489 495 525 0xa 0x40 27027
CRTC(32):[28]  720x480 60 720 736 798 858 480 489 495 525 0xa 0x40 27000
CRTC(32):[29]  640x480 75 640 656 720 840 480 481 484 500 0xa 0x40 31500
CRTC(32):[30]  640x480 73 640 664 704 832 480 489 492 520 0xa 0x40 31500
CRTC(32):[31]  640x480 67 640 704 768 864 480 483 486 525 0xa 0x40 30240
CRTC(32):[32]  640x480 60 640 656 752 800 480 490 492 525 0xa 0x40 25200
CRTC(32):[33]  640x480 60 640 656 752 800 480 490 492 525 0xa 0x40 25175
CRTC(32):[34]  720x400 70 720 738 846 900 400 412 414 449 0x6 0x40 28320
SUCCESS (-1.000s)

AND 
This configuration too:
mini DP to DP) + (DP to DP) with monitor 4K and a MST dongle "ACCEL"
Result with accell
gfx@gfx-desktop:~/intel-graphics/intel-gpu-tools/tests$
gfx@gfx-desktop:~/intel-graphics/intel-gpu-tools/tests$ sudo -E ./testdisplay -a
CRTC(32):[0]  1024x768 75 1024 1040 1136 1312 768 769 772 800 0x5 0x40 78750
CRTC(32):[1]  1024x768 70 1024 1048 1184 1328 768 771 777 806 0xa 0x40 75000
CRTC(32):[2]  1024x768 60 1024 1048 1184 1344 768 771 777 806 0xa 0x40 65000
CRTC(32):[3]  832x624 75 832 864 928 1152 624 625 628 667 0xa 0x40 57284
CRTC(32):[4]  800x600 75 800 816 896 1056 600 601 604 625 0x5 0x40 49500
CRTC(32):[5]  800x600 72 800 856 976 1040 600 637 643 666 0x5 0x40 50000
CRTC(32):[6]  800x600 60 800 840 968 1056 600 601 605 628 0x5 0x40 40000
CRTC(32):[7]  800x600 56 800 824 896 1024 600 601 603 625 0x5 0x40 36000
CRTC(32):[8]  720x576 50 720 732 796 864 576 581 586 625 0xa 0x40 27000
CRTC(32):[9]  720x480 60 720 736 798 858 480 489 495 525 0xa 0x40 27027
CRTC(32):[10]  720x480 60 720 736 798 858 480 489 495 525 0xa 0x40 27000
CRTC(32):[11]  640x480 75 640 656 720 840 480 481 484 500 0xa 0x40 31500
CRTC(32):[12]  640x480 73 640 664 704 832 480 489 492 520 0xa 0x40 31500
CRTC(32):[13]  640x480 67 640 704 768 864 480 483 486 525 0xa 0x40 30240
CRTC(32):[14]  640x480 60 640 656 752 800 480 490 492 525 0xa 0x40 25200
CRTC(32):[15]  640x480 60 640 656 752 800 480 490 492 525 0xa 0x40 25175
CRTC(32):[16]  720x400 70 720 738 846 900 400 412 414 449 0x6 0x40 28320
SUCCESS (-1.000s)

with the first configuration works fine, but not with the second.

This is my general configuration.
Configuration 

======================================
        Update tool
======================================

======================================
             Software
======================================
kernel version              : 4.12.0audio+
architecture                : x86_64
os version                  : Ubuntu 17.04
os codename                 : zesty
kernel driver               : i915
bios revision               : 5.6
bios release date           : 05/11/2017

======================================
        Graphic drivers
======================================
mesa                      : 17.0.3
modesetting               : modesetting_drv.so
xorg-xserver              : 1.19.3
libdrm                    : 2.4.76
libva                     : 1.7.3-2
vaapi (intel-driver)      : 1.7.3
cairo                     : 1.14.8-1
intel-gpu-tools           : 1.17-1

======================================
             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.56 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 : 450000 kHz
maximum cd clock frequency : 540000 kHz
displays connected         : DP-2

Adding dmesg, before and after test.
Comment 6 Ricardo Madrigal 2017-07-18 20:57:17 UTC
Created attachment 132748 [details]
dmesg.log before
Comment 7 Ricardo Madrigal 2017-07-18 20:57:46 UTC
Created attachment 132749 [details]
dmesg.log after
Comment 8 Manasi 2017-07-19 19:04:08 UTC
Ricardo, you mentioned that this was happening only with one kind of the MST dongle and not the other one. So I suspect it is because that specific dongle does not support 4K resolution and there is no way for the driver to get this information from the dongle and invalidate that resolution.
If that MST dongle works fine with a non 4K monitor then we should be good and this should not be a bug anymore.

Please comment.
Comment 9 Ricardo Madrigal 2017-07-20 22:28:22 UTC
Checking with the team members and analyzing the hardware specifications of both MST, "DisplayPort to Dual DisplayPort Graphics Splitter DPD2001" SUNIX, and "UltraAV® Mini DisplayPort 1.2 to 2 DisplayPort Multi-Display MST Hub" ACCELL, We agree that MST Sunix Works correctly and the second MST does not.

and this should not be a bug anymore.
Comment 10 Manasi 2017-07-20 22:45:48 UTC
Ricardo,

So what were the two configurations on which the SUNIX was giving black screen?

Manasi
Comment 11 Ricardo Madrigal 2017-07-21 14:23:07 UTC
Hi Manasi,

The configuration where this happen was the first one:
(mini DP to DP) + (DP to DP) with monitor 4K and a MST dongle "sunix" and old version of kernel.
Comment 12 Ricardo Madrigal 2017-07-24 16:26:38 UTC
Analyzing the hardware specifications of "DisplayPort to Dual DisplayPort Graphics Splitter DPD2001 SUNIX" MST. We have identified that DP 1.2 does not support enough bandwidth over a single link to drive two 4k monitors, and this should not be a mistake anymore.

Adding DataSheet URL

http://www.sunix.com/en/download.php?pid=1720&file=datasheet&file_link=download/datasheet/2014/20141119170512_DPD2001-Datasheet-V12.pdf

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.