freebsd / drm-kmod

drm driver for FreeBSD
155 stars 69 forks source link

DisplayPort screen turns off #189

Open Jehops opened 2 years ago

Jehops commented 2 years ago

Describe the bug

System: Lenovo X220 with i5-2520M (Sandy Bridge) with an external monitor connected via DisplayPort. A few times per day the display on the external monitor goes blank and errors starting from drivers/gpu/drm/i915/display/intel_dp_link_training.c are written to /var/log/messages.

Jul 18 10:41:44 <kern.crit> phe kernel: drmn0: [drm] *ERROR* failed to enable link training
Jul 18 11:20:33 <kern.crit> phe kernel: drmn0: [drm] *ERROR* CPU pipe B FIFO underrun
Jul 18 11:20:33 <kern.crit> phe kernel: drmn0: [drm] *ERROR* uncleared pch fifo underrun on pch transcoder B
Jul 18 11:20:33 <kern.crit> phe kernel: drmn0: [drm] *ERROR* PCH transcoder B FIFO underrun

Sometimes the display will return in a few seconds. Other times it will not.

FreeBSD version FreeBSD phe.ftfl.ca 14.0-CURRENT FreeBSD 14.0-CURRENT #0 n256262-f1b4324b81a5: Fri Jun 24 10:46:21 ADT 2022 root@phe.ftfl.ca:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64

PCI Info

pciconf -lv ``` hostb0@pci0:0:0:0: class=0x060000 rev=0x09 hdr=0x00 vendor=0x8086 device=0x0104 subvendor=0x17aa subdevice=0x21da vendor = 'Intel Corporation' device = '2nd Generation Core Processor Family DRAM Controller' class = bridge subclass = HOST-PCI vgapci0@pci0:0:2:0: class=0x030000 rev=0x09 hdr=0x00 vendor=0x8086 device=0x0126 subvendor=0x17aa subdevice=0x21da vendor = 'Intel Corporation' device = '2nd Generation Core Processor Family Integrated Graphics Controller' class = display subclass = VGA none0@pci0:0:22:0: class=0x078000 rev=0x04 hdr=0x00 vendor=0x8086 device=0x1c3a subvendor=0x17aa subdevice=0x21da vendor = 'Intel Corporation' device = '6 Series/C200 Series Chipset Family MEI Controller' class = simple comms em0@pci0:0:25:0: class=0x020000 rev=0x04 hdr=0x00 vendor=0x8086 device=0x1502 subvendor=0x17aa subdevice=0x21ce vendor = 'Intel Corporation' device = '82579LM Gigabit Network Connection (Lewisville)' class = network subclass = ethernet ehci0@pci0:0:26:0: class=0x0c0320 rev=0x04 hdr=0x00 vendor=0x8086 device=0x1c2d subvendor=0x17aa subdevice=0x21da vendor = 'Intel Corporation' device = '6 Series/C200 Series Chipset Family USB Enhanced Host Controller' class = serial bus subclass = USB hdac0@pci0:0:27:0: class=0x040300 rev=0x04 hdr=0x00 vendor=0x8086 device=0x1c20 subvendor=0x17aa subdevice=0x21da vendor = 'Intel Corporation' device = '6 Series/C200 Series Chipset Family High Definition Audio Controller' class = multimedia subclass = HDA pcib1@pci0:0:28:0: class=0x060400 rev=0xb4 hdr=0x01 vendor=0x8086 device=0x1c10 subvendor=0x17aa subdevice=0x21da vendor = 'Intel Corporation' device = '6 Series/C200 Series Chipset Family PCI Express Root Port 1' class = bridge subclass = PCI-PCI pcib2@pci0:0:28:1: class=0x060400 rev=0xb4 hdr=0x01 vendor=0x8086 device=0x1c12 subvendor=0x17aa subdevice=0x21da vendor = 'Intel Corporation' device = '6 Series/C200 Series Chipset Family PCI Express Root Port 2' class = bridge subclass = PCI-PCI pcib3@pci0:0:28:3: class=0x060400 rev=0xb4 hdr=0x01 vendor=0x8086 device=0x1c16 subvendor=0x17aa subdevice=0x21da vendor = 'Intel Corporation' device = '6 Series/C200 Series Chipset Family PCI Express Root Port 4' class = bridge subclass = PCI-PCI pcib4@pci0:0:28:4: class=0x060400 rev=0xb4 hdr=0x01 vendor=0x8086 device=0x1c18 subvendor=0x17aa subdevice=0x21da vendor = 'Intel Corporation' device = '6 Series/C200 Series Chipset Family PCI Express Root Port 5' class = bridge subclass = PCI-PCI ehci1@pci0:0:29:0: class=0x0c0320 rev=0x04 hdr=0x00 vendor=0x8086 device=0x1c26 subvendor=0x17aa subdevice=0x21da vendor = 'Intel Corporation' device = '6 Series/C200 Series Chipset Family USB Enhanced Host Controller' class = serial bus subclass = USB isab0@pci0:0:31:0: class=0x060100 rev=0x04 hdr=0x00 vendor=0x8086 device=0x1c4f subvendor=0x17aa subdevice=0x21da vendor = 'Intel Corporation' device = 'QM67 Express Chipset LPC Controller' class = bridge subclass = PCI-ISA ahci0@pci0:0:31:2: class=0x010601 rev=0x04 hdr=0x00 vendor=0x8086 device=0x1c03 subvendor=0x17aa subdevice=0x21da vendor = 'Intel Corporation' device = '6 Series/C200 Series Chipset Family 6 port Mobile SATA AHCI Controller' class = mass storage subclass = SATA ichsmb0@pci0:0:31:3: class=0x0c0500 rev=0x04 hdr=0x00 vendor=0x8086 device=0x1c22 subvendor=0x17aa subdevice=0x21da vendor = 'Intel Corporation' device = '6 Series/C200 Series Chipset Family SMBus Controller' class = serial bus subclass = SMBus iwn0@pci0:3:0:0: class=0x028000 rev=0x34 hdr=0x00 vendor=0x8086 device=0x0085 subvendor=0x8086 subdevice=0x1311 vendor = 'Intel Corporation' device = 'Centrino Advanced-N 6205 [Taylor Peak]' class = network sdhci_pci0@pci0:13:0:0: class=0x088001 rev=0x04 hdr=0x00 vendor=0x1180 device=0xe823 subvendor=0x17aa subdevice=0x21da vendor = 'Ricoh Co Ltd' device = 'PCIe SDXC/MMC Host Controller' class = base peripheral ```

DRM KMOD version drm-510-kmod 5.10.113_1

To Reproduce There is no simple way to reproduce the problem. Perhaps the issue occurs more often when there is more demanding graphics work, like scrolling a browser window, but after many months of using the system, I haven't found a recipe to reliably reproduce the problem.

evadot commented 2 years ago

I have the same thing on my skylake NUC from time to time for a long time (like before 5.4), also never been able to have a reproducer ...