[Bug 93578] Intel HD 520 failed to train DP when connected with a external monitor

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Feb 17 19:05:53 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=93578

--- Comment #16 from Nicolas Pöhlmann <nicolas.poehlmann at hardcoretec.com> ---
This bug isn't restricted to DP monitors or Dell systems, it also occurs
running multi-monitor setups with HDMI output only and on multi-monitor setups
with 1x DVI-HDMI + 1x HDMI. It happens also at least on systems with i7-6700
processors running latest 4.4.1 kernels.

It was introduced with the (new) Skylake processors. Running same monitors with
Haswell processors is/was functioning without any problems.

It seems that there is an error initialising/detecting HDMI/DP monitors and
hold this connection stable until first output is available.
As Oliver Deppert stated before it sometimes detecting the displays correctly
and output will also be correctly shown. Booting with plugged in multi-monitor
setup is functioning 99.9% in our cases, plug-in an additional monitor after
system is running or reactivating the monitor after switching the input or if
it was turned off only works in ~ 5-15%.
If we run xrandr often enough (sometimes > 25 times), output is recovered and
second monitor becomes available. But to make it more worse, detecting the
monitor with xrandr doesn't mean that it will output something on it, the
connection to the screen can be immediately lost.

And last but not least, running xrandr in a row like "xrandr && xrandr &&
xrandr && xrandr && xrandr" seems to increase the chance of a successful
monitor initialisation. Maybe the driver didn't wait long enough to abort
initialisation or a needed value isn't activated/available on the first cycles.

kernel output on one of the systems:
------------------------------------------
[79265.106961] WARNING: CPU: 0 PID: 4025 at
drivers/gpu/drm/i915/intel_pm.c:3597 skl_update_other_pipe_wm+0x1c2/0x1d0()
[79265.106964] WARN_ON(!wm_changed)
[79265.106967] Modules linked in:
[79265.106971]  vhost_net vhost macvtap macvlan xt_CHECKSUM iptable_mangle
ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_nat tun
ebtable_filter ebtables ip6table_filter ip6_tables xt_physdev br_netfilter
xt_recent xt_conntrack bnep bridge stp llc vfio_pci vfio_iommu_type1
vfio_virqfd vfio joydev cyberjack usbserial snd_hda_codec_hdmi
snd_hda_codec_realtek snd_hda_codec_generic e1000e r8169 ptp pps_core mii
snd_hda_intel intel_rapl rc_tt_1500 iosf_mbi snd_hda_codec x86_pkg_temp_thermal
intel_powerclamp snd_hda_core coretemp snd_pcm tda10048 hci_uart
crct10dif_pclmul crc32_pclmul snd_timer crc32c_intel btbcm tda827x btqca snd
btintel pcspkr serio_raw soundcore i2c_i801 shpchp bluetooth intel_lpss_pci
i2c_hid tda10023 dvb_usb_ttusb2 dvb_usb intel_lpss_acpi intel_lpss mfd_core
dvb_core
[79265.107090]  rc_core acpi_pad sch_fq_codel kvm_intel kvm irqbypass
virtio_pci virtio_scsi virtio_blk virtio_net virtio_console virtio_balloon
virtio_ring virtio sha512_generic scsi_transport_iscsi fuse ext2 multipath
linear raid10 raid1 raid0 dm_raid raid456 async_raid6_recov async_memcpy
async_pq async_xor async_tx dm_crypt hid_sunplus hid_sony hid_samsung hid_pl
hid_petalynx hid_gyration xhci_plat_hcd usb_storage scsi_transport_fc sx8
pdc_adma sata_inic162x sata_mv sata_qstor sata_vsc sata_uli sata_sis sata_sx4
sata_nv sata_via sata_svw sata_sil24 sata_sil sata_promise pata_sl82c105
pata_via pata_jmicron pata_marvell pata_sis pata_netcell pata_pdc202xx_old
pata_triflex pata_atiixp pata_opti pata_amd pata_ali pata_it8213 pata_ns87415
pata_ns87410 pata_serverworks pata_cypress pata_oldpiix pata_artop
[79265.107186]  pata_it821x pata_optidma pata_hpt3x2n pata_hpt3x3 pata_hpt37x
pata_hpt366 pata_cmd64x pata_efar pata_sil680 pata_pdc2027x pata_mpiix xhci_pci
xhci_hcd radeon ttm
[79265.107211] CPU: 0 PID: 4025 Comm: Xorg Tainted: G        W      
4.4.1-gentoo #1
[79265.107214] Hardware name: MSI MS-7982/H170M PRO-DH (MS-7982), BIOS 2.30
09/10/2015
[79265.107218]  ffffffff81aa86f8 ffff8804364e3800 ffffffff813be9ff
ffff8804364e3848
[79265.107230]  ffff8804364e3838 ffffffff8107ac32 ffff88046be84000
ffff8804364e3964
[79265.107236]  ffff88046be83000 0000000000000000 ffff8804364e38d0
ffff8804364e3898
[79265.107242] Call Trace:
[79265.107252]  [<ffffffff813be9ff>] dump_stack+0x44/0x55
[79265.107260]  [<ffffffff8107ac32>] warn_slowpath_common+0x82/0xc0
[79265.107269]  [<ffffffff8107acbc>] warn_slowpath_fmt+0x4c/0x50
[79265.107274]  [<ffffffff81511532>] skl_update_other_pipe_wm+0x1c2/0x1d0
[79265.107281]  [<ffffffff81511759>] skl_update_wm+0x219/0x710
[79265.107289]  [<ffffffff8181fd3c>] ? __schedule+0x32c/0x8e0
[79265.107296]  [<ffffffff81515b4e>] intel_update_watermarks+0x1e/0x20
[79265.107303]  [<ffffffff815776a7>] intel_atomic_commit+0x3c7/0x13c0
[79265.107311]  [<ffffffff814fc71e>] ? drm_atomic_check_only+0x18e/0x590
[79265.107318]  [<ffffffff814fc52c>] ?
drm_atomic_add_affected_connectors+0x8c/0xf0
[79265.107330]  [<ffffffff814fcb57>] drm_atomic_commit+0x37/0x60
[79265.107336]  [<ffffffff814d9dd6>] drm_atomic_helper_set_config+0x76/0xb0
[79265.107343]  [<ffffffff814ec382>] drm_mode_set_config_internal+0x62/0x100
[79265.107350]  [<ffffffff814f077e>] drm_mode_setcrtc+0x3be/0x4d0
[79265.107362]  [<ffffffff814e2332>] drm_ioctl+0x152/0x540
[79265.107369]  [<ffffffff814f03c0>] ? drm_mode_setplane+0x1b0/0x1b0
[79265.107378]  [<ffffffff810d71a7>] ? hrtimer_start_range_ns+0x197/0x320
[79265.107384]  [<ffffffff811d1cd8>] do_vfs_ioctl+0x288/0x460
[79265.107392]  [<ffffffff816f70f2>] ? __sys_recvmsg+0x62/0x80
[79265.107397]  [<ffffffff811d1f29>] SyS_ioctl+0x79/0x90
[79265.107403]  [<ffffffff81823db6>] entry_SYSCALL_64_fastpath+0x16/0x75
[79265.107408] ---[ end trace f3ab1078340cf992 ]---

xrandr without successful detection:
------------------------------------------
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 connected primary 1920x1080+0+0 (normal left inverted right x axis y
axis) 510mm x 290mm
   1920x1080     60.00*+  50.00    59.94  
   1920x1080i    60.00    50.00    59.94  
   1680x1050     59.88  
   1400x1050     59.95  
   1600x900      60.00  
   1280x1024     60.02  
   1440x900      59.90  
   1280x800      59.91  
   1152x864      59.97  
   1280x720      60.00    50.00    59.94  
   1024x768      60.00  
   800x600       60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       60.00    59.94  
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

xrandr with successful detection (doesn't mean it could be initialized):
------------------------------------------
Screen 0: minimum 8 x 8, current 3840 x 1080, maximum 32767 x 32767
HDMI1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis)
531mm x 299mm
   1920x1080     59.93*+  60.00    50.00    59.94  
   1920x1080i    60.00    50.00    59.94  
   1680x1050     59.88  
   1280x1024     60.02  
   1280x960      60.00  
   1280x720      60.00    50.00    59.94  
   1024x768      60.00  
   800x600       60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       60.00    59.94  
HDMI2 connected primary 1920x1080+0+0 (normal left inverted right x axis y
axis) 510mm x 290mm
   1920x1080     60.00*+  50.00    59.94  
   1920x1080i    60.00    50.00    59.94  
   1680x1050     59.88  
   1400x1050     59.95  
   1600x900      60.00  
   1280x1024     60.02  
   1440x900      59.90  
   1280x800      59.91  
   1152x864      59.97  
   1280x720      60.00    50.00    59.94  
   1024x768      60.00  
   800x600       60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       60.00    59.94  
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

Output in journal after successful detection but unsuccessful initialization:
------------------------------------------
kernel: snd_hda_codec_hdmi hdaudioC0D2: HDMI: ELD buf size is 0, force 128
kernel: snd_hda_codec_hdmi hdaudioC0D2: HDMI: invalid ELD data byte 0
root[10198]: ACPI event unhandled: jack/lineout LINEOUT unplug
root[10200]: ACPI event unhandled: jack/videoout VIDEOOUT unplug
/usr/libexec/gdm-x-session[4026]: (II) intel(0): resizing framebuffer to
1920x1080

Output in journal after successful detection and successful initialization:
------------------------------------------
/usr/libexec/gdm-x-session[4026]: (II) intel(0): resizing framebuffer to
3840x1080
/usr/libexec/gdm-x-session[4026]: (II) intel(0): switch to mode 1920x1080 at 59.9
on HDMI1 using pipe 0, position (1920, 0), rotation normal, reflection none
root[10275]: ACPI event unhandled: jack/lineout LINEOUT unplug
root[10277]: ACPI event unhandled: jack/videoout VIDEOOUT unplug
root[10279]: ACPI event unhandled: jack/lineout LINEOUT plug
/usr/libexec/gdm-x-session[4026]: (II) intel(0): switch to mode 1920x1080 at 60.0
on HDMI2 using pipe 1, position (0, 0), rotation normal, reflection none
root[10281]: ACPI event unhandled: jack/videoout VIDEOOUT plug
root[10283]: ACPI event unhandled: jack/lineout LINEOUT plug
root[10285]: ACPI event unhandled: jack/videoout VIDEOOUT plug

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20160217/242d7cb0/attachment-0001.html>


More information about the intel-gfx-bugs mailing list