Bug 234595

Summary: Suspend/resume issues with PCI bus on ThinkPad T420 on 12.0-RELEASE
Product: Base System Reporter: Kevin Zheng <kevinz5000>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Only Me CC: miguel.barao, pi
Priority: --- Keywords: regression
Version: 12.0-RELEASE   
Hardware: amd64   
OS: Any   
Attachments:
Description Flags
dmesg output
none
T420 ASL none

Description Kevin Zheng 2019-01-03 16:57:50 UTC
Created attachment 200741 [details]
dmesg output

Issuing:

# zzz

On a ThinkPad T420, either with CSM or UEFI boot, gives:

pci0: failed to set ACPI power state D3 on \134_SB_.PCI0.VID_: AE_BAD_PARAMETER
pcib0: failed to set ACPI power state D2 on \134_SB_.PCI0: AE_BAD_PARAMETER
acpi0: cleared fixed power button status

Then, either after the screen goes blank, or on resume, some things on the PCI bus end up broken. For me, it's the ehci controller and ethernet (em) controller.

ehci_interrupt: unrecoverable error, controller halted
cmd=0xffffffff
...
sts=0xffffffff
...
ien=0xffffffff
frindex=0xffffffff ctrdsegm=0xffffffff periodic=0xffffffff async=0xffffffff
port 1 status=0xffffffff
port 2 status=0xffffffff
port 3 status=0xffffffff
...
ehci_interrupt: blocking interrupts 0x10

em does not give any dmesg output, continues to show up in ifconfig, but does not seem to work.

Suspend/resume worked on this machine in 11.2-RELEASE. I suspect something broke with the ACPI upgrade, but will keep investigating.
Comment 1 Kevin Zheng 2019-01-03 17:05:51 UTC
Created attachment 200743 [details]
T420 ASL
Comment 2 miguel.barao 2019-02-08 15:42:02 UTC
Also affects Thinkpad X220.
Comment 3 Andriy Gapon freebsd_committer freebsd_triage 2019-02-10 10:57:16 UTC
Can you try 12.0-STABLE or CURRENT ?
Comment 4 Kurt Jaeger freebsd_committer freebsd_triage 2022-06-28 19:11:01 UTC
I have this with 13.1 on a Thinkpad X201. zzz suspends, on restart screen
stays black.

kernel: pcib1: failed to set ACPI power state D2 on \_SB_.PCI0: AE_BAD_PARAMETER

It still worked with 12.2p7.