Summary: | DP ports relabeled | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | DRI | Reporter: | Paul Menzel <pmenzel+bugs.freedesktop.org> | ||||||
Component: | DRM/Intel | Assignee: | Intel GFX Bugs mailing list <intel-gfx-bugs> | ||||||
Status: | CLOSED FIXED | QA Contact: | Intel GFX Bugs mailing list <intel-gfx-bugs> | ||||||
Severity: | normal | ||||||||
Priority: | medium | CC: | hjl.tools, intel-gfx-bugs, regressions | ||||||
Version: | DRI git | ||||||||
Hardware: | Other | ||||||||
OS: | All | ||||||||
Whiteboard: | |||||||||
i915 platform: | SKL | i915 features: | display/DP | ||||||
Attachments: |
|
Description
Paul Menzel
2017-04-05 10:04:44 UTC
Here is the result for Linux 4.9.20. ``` $ more /proc/version Linux version 4.9.20.mx64.147 (root@x.molgen.mpg.de ) (gcc version 5.3.0 (GCC) ) #1 SMP Mon Apr 3 09:59:18 CEST 2017 $ xrandr --verbose Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192 HDMI-1 disconnected (normal left inverted right x axis y axis) Identifier: 0x42 Timestamp: 96316 Subpixel: unknown Clones: CRTCs: 0 1 2 Transform: 1.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 1.000000 filter: aspect ratio: Automatic supported: Automatic, 4:3, 16:9 Broadcast RGB: Automatic supported: Automatic, Full, Limited 16:235 audio: auto supported: force-dvi, off, auto, on DP-1 connected 1920x1080+0+0 (0x4c) normal (normal left inverted right x axis y axis) 698mm x 392mm Identifier: 0x43 Timestamp: 96316 Subpixel: unknown Gamma: 1.0:1.0:1.0 Brightness: 1.0 Clones: HDMI-2 CRTC: 0 CRTCs: 0 1 2 Transform: 1.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 1.000000 filter: EDID: 00ffffffffffff0010ac934050333630 2e170104b54627783a73e0a35336b626 0d5153a54b008100b300d100714fa940 8180d1c00101a36600a0f0701f803020 3500ba882100001a000000ff004b3352 3930334247303633500a000000fc0044 454c4c20555033323134510a000000fd 001d4b1f8c1e000a20202020202001a1 020315b1509005040302071601061112 1513141f2030750030f2705a80b0588a 00ba882100001e023a801871382d4058 2c2500ba882100001e011d8018711c16 20582c2500ba882100009e011d007251 d01e206e285500ba882100001e8c0ad0 8a20e02d10103e9600ba882100001800 00000000000000000000000000000043 Broadcast RGB: Automatic supported: Automatic, Full, Limited 16:235 audio: auto supported: force-dvi, off, auto, on 3840x2160 (0x49) 262.8MHz +HSync -VSync +preferred h: width 3840 start 3888 end 3920 total 4000 skew 0 clock 65.7KHz v: height 2160 start 2163 end 2168 total 2191 clock 30.0Hz 3840x2160 (0x4a) 300.0MHz +HSync +VSync h: width 3840 start 4016 end 4104 total 4400 skew 0 clock 68.2KHz v: height 2160 start 2168 end 2178 total 2250 clock 30.3Hz 1920x1200 (0x4b) 193.2MHz -HSync +VSync h: width 1920 start 2056 end 2256 total 2592 skew 0 clock 74.6KHz v: height 1200 start 1203 end 1209 total 1245 clock 59.9Hz 1920x1080 (0x4c) 148.5MHz +HSync +VSync *current h: width 1920 start 2008 end 2052 total 2200 skew 0 clock 67.5KHz v: height 1080 start 1082 end 1087 total 1125 clock 60.0Hz 1920x1080 (0x4d) 148.5MHz +HSync +VSync h: width 1920 start 2008 end 2052 total 2200 skew 0 clock 67.5KHz v: height 1080 start 1084 end 1089 total 1125 clock 60.0Hz 1920x1080 (0x4e) 148.5MHz +HSync +VSync h: width 1920 start 2448 end 2492 total 2640 skew 0 clock 56.2KHz v: height 1080 start 1084 end 1089 total 1125 clock 50.0Hz 1920x1080 (0x4f) 148.4MHz +HSync +VSync h: width 1920 start 2008 end 2052 total 2200 skew 0 clock 67.4KHz v: height 1080 start 1084 end 1089 total 1125 clock 59.9Hz 1920x1080i (0x50) 74.2MHz +HSync +VSync Interlace h: width 1920 start 2008 end 2052 total 2200 skew 0 clock 33.8KHz v: height 1080 start 1084 end 1094 total 1125 clock 60.1Hz 1920x1080i (0x51) 74.2MHz +HSync +VSync Interlace h: width 1920 start 2448 end 2492 total 2640 skew 0 clock 28.1KHz v: height 1080 start 1084 end 1094 total 1125 clock 50.0Hz 1920x1080 (0x52) 74.2MHz +HSync +VSync h: width 1920 start 2558 end 2602 total 2750 skew 0 clock 27.0KHz v: height 1080 start 1084 end 1089 total 1125 clock 24.0Hz 1920x1080i (0x53) 74.2MHz +HSync +VSync Interlace h: width 1920 start 2008 end 2052 total 2200 skew 0 clock 33.7KHz v: height 1080 start 1084 end 1094 total 1125 clock 60.0Hz 1920x1080 (0x54) 74.2MHz +HSync +VSync h: width 1920 start 2558 end 2602 total 2750 skew 0 clock 27.0KHz v: height 1080 start 1084 end 1089 total 1125 clock 24.0Hz 1600x1200 (0x55) 162.0MHz +HSync +VSync h: width 1600 start 1664 end 1856 total 2160 skew 0 clock 75.0KHz v: height 1200 start 1201 end 1204 total 1250 clock 60.0Hz 1680x1050 (0x56) 146.2MHz -HSync +VSync h: width 1680 start 1784 end 1960 total 2240 skew 0 clock 65.3KHz v: height 1050 start 1053 end 1059 total 1089 clock 60.0Hz 1280x1024 (0x57) 135.0MHz +HSync +VSync h: width 1280 start 1296 end 1440 total 1688 skew 0 clock 80.0KHz v: height 1024 start 1025 end 1028 total 1066 clock 75.0Hz 1280x1024 (0x58) 108.0MHz +HSync +VSync h: width 1280 start 1328 end 1440 total 1688 skew 0 clock 64.0KHz v: height 1024 start 1025 end 1028 total 1066 clock 60.0Hz 1280x800 (0x59) 83.5MHz -HSync +VSync h: width 1280 start 1352 end 1480 total 1680 skew 0 clock 49.7KHz v: height 800 start 803 end 809 total 831 clock 59.8Hz 1152x864 (0x5a) 108.0MHz +HSync +VSync h: width 1152 start 1216 end 1344 total 1600 skew 0 clock 67.5KHz v: height 864 start 865 end 868 total 900 clock 75.0Hz 1280x720 (0x5b) 74.2MHz +HSync +VSync h: width 1280 start 1390 end 1430 total 1650 skew 0 clock 45.0KHz v: height 720 start 725 end 730 total 750 clock 60.0Hz 1280x720 (0x5c) 74.2MHz +HSync +VSync h: width 1280 start 1720 end 1760 total 1980 skew 0 clock 37.5KHz v: height 720 start 725 end 730 total 750 clock 50.0Hz 1280x720 (0x5d) 74.2MHz +HSync +VSync h: width 1280 start 1390 end 1430 total 1650 skew 0 clock 45.0KHz v: height 720 start 725 end 730 total 750 clock 59.9Hz 1024x768 (0x5e) 78.8MHz +HSync +VSync h: width 1024 start 1040 end 1136 total 1312 skew 0 clock 60.0KHz v: height 768 start 769 end 772 total 800 clock 75.0Hz 1024x768 (0x5f) 65.0MHz -HSync -VSync h: width 1024 start 1048 end 1184 total 1344 skew 0 clock 48.4KHz v: height 768 start 771 end 777 total 806 clock 60.0Hz 800x600 (0x60) 49.5MHz +HSync +VSync h: width 800 start 816 end 896 total 1056 skew 0 clock 46.9KHz v: height 600 start 601 end 604 total 625 clock 75.0Hz 800x600 (0x61) 40.0MHz +HSync +VSync h: width 800 start 840 end 968 total 1056 skew 0 clock 37.9KHz v: height 600 start 601 end 605 total 628 clock 60.3Hz 720x576 (0x62) 27.0MHz -HSync -VSync h: width 720 start 732 end 796 total 864 skew 0 clock 31.2KHz v: height 576 start 581 end 586 total 625 clock 50.0Hz 720x480 (0x63) 27.0MHz -HSync -VSync h: width 720 start 736 end 798 total 858 skew 0 clock 31.5KHz v: height 480 start 489 end 495 total 525 clock 60.0Hz 720x480 (0x64) 27.0MHz -HSync -VSync h: width 720 start 736 end 798 total 858 skew 0 clock 31.5KHz v: height 480 start 489 end 495 total 525 clock 59.9Hz 640x480 (0x65) 31.5MHz -HSync -VSync h: width 640 start 656 end 720 total 840 skew 0 clock 37.5KHz v: height 480 start 481 end 484 total 500 clock 75.0Hz 640x480 (0x66) 25.2MHz -HSync -VSync h: width 640 start 656 end 752 total 800 skew 0 clock 31.5KHz v: height 480 start 490 end 492 total 525 clock 60.0Hz 640x480 (0x67) 25.2MHz -HSync -VSync h: width 640 start 656 end 752 total 800 skew 0 clock 31.5KHz v: height 480 start 490 end 492 total 525 clock 59.9Hz 720x400 (0x68) 28.3MHz -HSync +VSync h: width 720 start 738 end 846 total 900 skew 0 clock 31.5KHz v: height 400 start 412 end 414 total 449 clock 70.1Hz HDMI-2 disconnected (normal left inverted right x axis y axis) Identifier: 0x44 Timestamp: 96316 Subpixel: unknown Clones: DP-1 CRTCs: 0 1 2 Transform: 1.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 1.000000 filter: aspect ratio: Automatic supported: Automatic, 4:3, 16:9 Broadcast RGB: Automatic supported: Automatic, Full, Limited 16:235 audio: auto supported: force-dvi, off, auto, on DP-2 disconnected (normal left inverted right x axis y axis) Identifier: 0x45 Timestamp: 96316 Subpixel: unknown Clones: HDMI-3 CRTCs: 0 1 2 Transform: 1.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 1.000000 filter: Broadcast RGB: Automatic supported: Automatic, Full, Limited 16:235 audio: auto supported: force-dvi, off, auto, on HDMI-3 disconnected (normal left inverted right x axis y axis) Identifier: 0x46 Timestamp: 96316 Subpixel: unknown Clones: DP-2 CRTCs: 0 1 2 Transform: 1.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 1.000000 filter: aspect ratio: Automatic supported: Automatic, 4:3, 16:9 Broadcast RGB: Automatic supported: Automatic, Full, Limited 16:235 audio: auto supported: force-dvi, off, auto, on DP-3 disconnected (normal left inverted right x axis y axis) Identifier: 0x47 Timestamp: 96316 Subpixel: unknown Clones: CRTCs: 0 1 2 Transform: 1.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 1.000000 filter: Broadcast RGB: Automatic supported: Automatic, Full, Limited 16:235 audio: auto supported: force-dvi, off, auto, on ``` Which platform? Are adapters or docks involved? (In reply to Jani Nikula from comment #2) > Which platform? ``` $ lspci -nn 00:00.0 Host bridge [0600]: Intel Corporation Skylake Host Bridge/DRAM Registers [8086:191f] (rev 07) 00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 530 [8086:1912] (rev 06) 00:14.0 USB controller [0c03]: Intel Corporation Sunrise Point-H USB 3.0 xHCI Controller [8086:a12f] (rev 31) 00:14.2 Signal processing controller [1180]: Intel Corporation Sunrise Point-H Thermal subsystem [8086:a131] (rev 31) 00:16.0 Communication controller [0780]: Intel Corporation Sunrise Point-H CSME HECI #1 [8086:a13a] (rev 31) 00:17.0 SATA controller [0106]: Intel Corporation Sunrise Point-H SATA controller [AHCI mode] [8086:a102] (rev 31) 00:1f.0 ISA bridge [0601]: Intel Corporation Sunrise Point-H LPC Controller [8086:a147] (rev 31) 00:1f.2 Memory controller [0580]: Intel Corporation Sunrise Point-H PMC [8086:a121] (rev 31) 00:1f.3 Audio device [0403]: Intel Corporation Sunrise Point-H HD Audio [8086:a170] (rev 31) 00:1f.4 SMBus [0c05]: Intel Corporation Sunrise Point-H SMBus [8086:a123] (rev 31) 00:1f.6 Ethernet controller [0200]: Intel Corporation Ethernet Connection (2) I219-V [8086:15b8] (rev 31) ``` > Are adapters or docks involved? No. There is only a DP-to-DP-cable from the system to the monitor Dell UP3214Q. (In another bug report it was mentioned, that it might consist of “two panels”(?).) Potentially related to the "late register" mechanism. Also, I'm not sure if there's any guarantees the connector ids would be stable across kernel releases. (In reply to Jani Nikula from comment #4) > Potentially related to the "late register" mechanism. Also, I'm not sure if > there's any guarantees the connector ids would be stable across kernel > releases. I don’t know that either. But from a user perspective it’d be a good thing, that the label next to the port match what `xrandr` shows. (In reply to Paul Menzel from comment #5) > I don’t know that either. But from a user perspective it’d be a good thing, > that the label next to the port match what `xrandr` shows. Now *that* is most certainly not guaranteed. The OEMs can stick whatever labels to the chassis, and have whatever mechanisms to have them show up with those labels in Windows. (In reply to Jani Nikula from comment #6) > (In reply to Paul Menzel from comment #5) > > I don’t know that either. But from a user perspective it’d be a good thing, > > that the label next to the port match what `xrandr` shows. > > Now *that* is most certainly not guaranteed. The OEMs can stick whatever > labels to the chassis, and have whatever mechanisms to have them show up > with those labels in Windows. Understood, so I guess, I was just lucky in this case. Please ignore that comment about the label on the device then, as it’s unrelated to the problem at hand. Either way, relabeling is a regression, as it breaks user space, where people might use xrandr scripts to set certain things up, which doesn’t work anymore. (In reply to Paul Menzel from comment #7) > Either way, relabeling is a regression, as it breaks user space, where > people might use xrandr scripts to set certain things up, which doesn’t work > anymore. It's unfortunate, but there were never any guarantees that the labels (such as DP-1, or HDMI-3) would be stable. The number is just an iteration of how many ports of a certain type are present, in the order they have been iterated. I believe we've changed both the order and the ports that have been iterated in the past. For example, we've discovered ways to ignore ports that aren't actually there. I'm inclined to close this as NOTABUG, but then again if you'd be into bisecting it might be interesting to see *why* the labels changed this time. (In reply to Jani Nikula from comment #8) > (In reply to Paul Menzel from comment #7) […] > I'm inclined to close this as NOTABUG, I still don’t understand this. It clearly breaks userspace in my opinion. If I have an appliance with the corresponding xrandr scripts put somewhere, upgrading the Linux kernel will break it. > but then again if you'd be into bisecting it might be interesting to see *why* > the labels changed this time. Could you please point out some interesting commits, I could test to save some time in bisecting? (In reply to Paul Menzel from comment #9) > Could you please point out some interesting commits, I could test to save > some time in bisecting? 91eefc05f0ac ("drm: Tighten locking in drm_mode_getconnector") was added in v4.11 and cited elsewhere. bb1d132935c2 ("drm/i915/vbt: split out defaults that are set when there is no VBT") is going in v4.12 and will be backported to stable. It stops registering some bogus connectors that aren't there. Created attachment 131642 [details] [review] A patch I also have a problem with kernel 4.11 which ignores my ~/.config/monitors.xml which swaps primary/secondary displays as well as their positions. This patch works for me. Created attachment 131643 [details] [review] An updated patch (In reply to H.J. Lu from comment #12) > Created attachment 131643 [details] [review] [review] > An updated patch Please send patches to intel-gfx@lists.freedesktop.org for review and discussion. Please try http://patchwork.freedesktop.org/patch/msgid/20170620091605.3749-1-daniel.vetter@ffwll.ch The label is correct with Linux 4.11.6 on my system. ``` $ more /proc/version Linux version 4.11.6.mx64.160 (root@luxuria.molgen.mpg.de) (gcc version 5.3.0 (GCC) ) #1 SMP Mon Jun 19 11:49:25 CEST 2017 $ xrandr Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192 HDMI-1 disconnected (normal left inverted right x axis y axis) DP-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 698mm x 392mm 3840x2160 30.0 + 30.3 1920x1200 59.9 1920x1080 60.0* 60.0 50.0 59.9 24.0 24.0 1920x1080i 60.1 50.0 60.0 1600x1200 60.0 1680x1050 60.0 1280x1024 75.0 60.0 1280x800 59.8 1152x864 75.0 1280x720 60.0 50.0 59.9 1024x768 75.0 60.0 800x600 75.0 60.3 720x576 50.0 720x480 60.0 59.9 640x480 75.0 60.0 59.9 720x400 70.1 HDMI-2 disconnected (normal left inverted right x axis y axis) DP-2 disconnected (normal left inverted right x axis y axis) HDMI-3 disconnected (normal left inverted right x axis y axis) DP-3 disconnected (normal left inverted right x axis y axis) ``` I still need to test latest drm-tip and the patch. I am also unable to reproduce the problem with drm-tip from today. ``` $ git log --oneline -1 f006697 drm-tip: 2017y-06m-22d-11h-59m-42s UTC integration manifest ``` I’ll therefore change the status to *resolved*. |
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.