freebsd / drm-kmod

drm driver for FreeBSD
148 stars 68 forks source link

5.15.25⋯: radeonkms: suspend failures #253

Open grahamperrin opened 1 year ago

grahamperrin commented 1 year ago

Describe the bug

Sometimes: suspend succeeds, the computer sleeps quickly

Other times: there's a blackout (as if sleep will occur) but the computer stays awake; fan activity, and so on, but no response to keyboard, trackball or trackpad input. It's necessary to force off the computer. Today in this situation, after a few minutes of blackness, instead of forcing off the power I ejected the computer from its dock, a screen appeared:

image

image

Then, I forced off the power.

FreeBSD version

% uname -aKU
FreeBSD mowa219-gjp4-8570p-freebsd 14.0-CURRENT FreeBSD 14.0-CURRENT #40 main-n262942-e0e24ae5d658-dirty: Sat May 13 23:51:09 BST 2023     grahamperrin@mowa219-gjp4-8570p-freebsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64 1400088 1400088
% 

PCI Info

pciconf -lv hostb0@pci0:0:0:0: class=0x060000 rev=0x09 hdr=0x00 vendor=0x8086 device=0x0154 subvendor=0x103c subdevice=0x17a7 vendor = 'Intel Corporation' device = '3rd Gen Core processor DRAM Controller' class = bridge subclass = HOST-PCI pcib1@pci0:0:1:0: class=0x060400 rev=0x09 hdr=0x01 vendor=0x8086 device=0x0151 subvendor=0x8086 subdevice=0x2010 vendor = 'Intel Corporation' device = 'Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port' class = bridge subclass = PCI-PCI xhci0@pci0:0:20:0: class=0x0c0330 rev=0x04 hdr=0x00 vendor=0x8086 device=0x1e31 subvendor=0x103c subdevice=0x17a7 vendor = 'Intel Corporation' device = '7 Series/C210 Series Chipset Family USB xHCI Host Controller' class = serial bus subclass = USB none0@pci0:0:22:0: class=0x078000 rev=0x04 hdr=0x00 vendor=0x8086 device=0x1e3a subvendor=0x103c subdevice=0x17a7 vendor = 'Intel Corporation' device = '7 Series/C216 Chipset Family MEI Controller' class = simple comms uart2@pci0:0:22:3: class=0x070002 rev=0x04 hdr=0x00 vendor=0x8086 device=0x1e3d subvendor=0x103c subdevice=0x17a7 vendor = 'Intel Corporation' device = '7 Series/C210 Series Chipset Family KT Controller' class = simple comms subclass = UART em0@pci0:0:25:0: class=0x020000 rev=0x04 hdr=0x00 vendor=0x8086 device=0x1502 subvendor=0x103c subdevice=0x17a7 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=0x1e2d subvendor=0x103c subdevice=0x17a7 vendor = 'Intel Corporation' device = '7 Series/C216 Chipset Family USB Enhanced Host Controller' class = serial bus subclass = USB hdac1@pci0:0:27:0: class=0x040300 rev=0x04 hdr=0x00 vendor=0x8086 device=0x1e20 subvendor=0x103c subdevice=0x17a7 vendor = 'Intel Corporation' device = '7 Series/C216 Chipset Family High Definition Audio Controller' class = multimedia subclass = HDA pcib2@pci0:0:28:0: class=0x060400 rev=0xc4 hdr=0x01 vendor=0x8086 device=0x1e10 subvendor=0x103c subdevice=0x17a7 vendor = 'Intel Corporation' device = '7 Series/C216 Chipset Family PCI Express Root Port 1' class = bridge subclass = PCI-PCI pcib3@pci0:0:28:1: class=0x060400 rev=0xc4 hdr=0x01 vendor=0x8086 device=0x1e12 subvendor=0x103c subdevice=0x17a7 vendor = 'Intel Corporation' device = '7 Series/C210 Series Chipset Family PCI Express Root Port 2' class = bridge subclass = PCI-PCI pcib4@pci0:0:28:2: class=0x060400 rev=0xc4 hdr=0x01 vendor=0x8086 device=0x1e14 subvendor=0x103c subdevice=0x17a7 vendor = 'Intel Corporation' device = '7 Series/C210 Series Chipset Family PCI Express Root Port 3' class = bridge subclass = PCI-PCI pcib5@pci0:0:28:3: class=0x060400 rev=0xc4 hdr=0x01 vendor=0x8086 device=0x1e16 subvendor=0x103c subdevice=0x17a7 vendor = 'Intel Corporation' device = '7 Series/C216 Chipset Family PCI Express Root Port 4' class = bridge subclass = PCI-PCI ehci1@pci0:0:29:0: class=0x0c0320 rev=0x04 hdr=0x00 vendor=0x8086 device=0x1e26 subvendor=0x103c subdevice=0x17a7 vendor = 'Intel Corporation' device = '7 Series/C216 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=0x1e55 subvendor=0x103c subdevice=0x17a7 vendor = 'Intel Corporation' device = 'QM77 Express Chipset LPC Controller' class = bridge subclass = PCI-ISA ahci0@pci0:0:31:2: class=0x010601 rev=0x04 hdr=0x00 vendor=0x8086 device=0x1e03 subvendor=0x103c subdevice=0x17a7 vendor = 'Intel Corporation' device = '7 Series Chipset Family 6-port SATA Controller [AHCI mode]' class = mass storage subclass = SATA vgapci0@pci0:1:0:0: class=0x030000 rev=0x00 hdr=0x00 vendor=0x1002 device=0x6841 subvendor=0x103c subdevice=0x17a9 vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' device = 'Thames [Radeon HD 7550M/7570M/7650M]' class = display subclass = VGA hdac0@pci0:1:0:1: class=0x040300 rev=0x00 hdr=0x00 vendor=0x1002 device=0xaa90 subvendor=0x103c subdevice=0x17a9 vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' device = 'Turks HDMI Audio [Radeon HD 6500/6600 / 6700M Series]' class = multimedia subclass = HDA none1@pci0:36:0:0: class=0x0c0010 rev=0x30 hdr=0x00 vendor=0x197b device=0x2380 subvendor=0x103c subdevice=0x17a7 vendor = 'JMicron Technology Corp.' device = 'IEEE 1394 Host Controller' class = serial bus subclass = FireWire none2@pci0:36:0:1: class=0x088000 rev=0x30 hdr=0x00 vendor=0x197b device=0x2392 subvendor=0x103c subdevice=0x17a7 vendor = 'JMicron Technology Corp.' device = 'SD/MMC Host Controller' class = base peripheral sdhci_pci0@pci0:36:0:2: class=0x080501 rev=0x30 hdr=0x00 vendor=0x197b device=0x2391 subvendor=0x103c subdevice=0x17a7 vendor = 'JMicron Technology Corp.' device = 'Standard SD Host Controller' class = base peripheral subclass = SD host controller iwn0@pci0:37:0:0: class=0x028000 rev=0x34 hdr=0x00 vendor=0x8086 device=0x0082 subvendor=0x8086 subdevice=0x1301 vendor = 'Intel Corporation' device = 'Centrino Advanced-N 6205 [Taylor Peak]' class = network

DRM KMOD version

drm-515-kmod 5.15.25_3

To Reproduce

I'm not sure how to make this consistently reproducible (sorry), but suspend failures have been frequent enough, whilst testing drm-515-kmod, for me to revert to drm-510-kmod.

Additional context

I think, this bug is more frequent (and more troublesome) than #239.

grahamperrin commented 11 months ago

https://github.com/freebsd/drm-kmod/issues/253#issue-1712383547

Sometimes: suspend succeeds, the computer sleeps quickly

Reviewed with a recent CURRENT.


Sleep was quick, I intended to review #239. Unfortunately, wake failed:

root@mowa219-gjp4-8570p-freebsd:~ # bectl list -c creation | grep 789df254cc9e
n264312-789df254cc9e-a -      -          176M  2023-07-25 11:49
n264312-789df254cc9e-b NR     /          414G  2023-07-27 17:54
n264312-789df254cc9e-c -      -          91.8M 2023-07-31 04:44
root@mowa219-gjp4-8570p-freebsd:~ # pkg iinfo drm-5
drm-510-kmod-5.10.163_7
root@mowa219-gjp4-8570p-freebsd:~ # bectl mount n264312-789df254cc9e-c /tmp/up
Successfully mounted n264312-789df254cc9e-c at /tmp/up
root@mowa219-gjp4-8570p-freebsd:~ # pkg -r /tmp/up iinfo drm-5
drm-515-kmod-5.15.25_3
root@mowa219-gjp4-8570p-freebsd:~ # bectl umount n264312-789df254cc9e-c 
root@mowa219-gjp4-8570p-freebsd:~ # uname -aKU
FreeBSD mowa219-gjp4-8570p-freebsd 14.0-CURRENT FreeBSD 14.0-CURRENT amd64 1400093 #1 main-n264312-789df254cc9e-dirty: Tue Jul 25 09:49:23 BST 2023     grahamperrin@mowa219-gjp4-8570p-freebsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 1400093 1400093
root@mowa219-gjp4-8570p-freebsd:~ # sysctl hw.acpi.power_button_state
hw.acpi.power_button_state: S5
root@mowa219-gjp4-8570p-freebsd:~ # 

This smells like a separate bug, however there's probably not enough information for a separate issue (in GitHub) to be worthwhile.


I reckon, it'll make sense to tackle this #253 first.

grahamperrin commented 9 months ago

At a glance: what's in the first photograph at https://github.com/freebsd/drm-kmod/issues/253#issue-1712383547 above differs from my reason for invalidating (closing) #257.

I'm inclined to leave this #253 open, and the HP EliteBook 8570p (pictured) is still available to me, however my everyday computer is now an HP ZBook 17 G2 (with the same boot disk, no longer using radeonkms).

So, if you need any info relating to the EliteBook, I'll be unable to provide it quickly; sorry.

(I do plan to occasionally 'clone' the boot disk of the ZBook, for use with the EliteBook, however this might not begin until November 2023 at the earliest.)