[Bug 261648] Thinkpad X13 hangs on a/c power detach and attach

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 01 Feb 2022 10:01:35 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261648

            Bug ID: 261648
           Summary: Thinkpad X13 hangs on a/c power detach and attach
           Product: Base System
           Version: CURRENT
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: rm@FreeBSD.org

Created attachment 231489
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=231489&action=edit
acpidump

There is persistent system hang after every attaching or detaching of AC power
on a running system. Nothing works till the hard restart. I see this in
messages:

Feb  1 12:00:58 cf kernel: Firmware Error (ACPI): AE_AML_PACKAGE_LIMIT, Index
(0x000000011) is beyond end of object (length 0x0) (20210930/exoparg2-569)
Feb  1 12:00:58 cf kernel: ACPI Error: Aborting method \_SB.PCI0.LPCB.EC.BRNS
due to previous error (AE_AML_PACKAGE_LIMIT) (20210930/psparse-689)
Feb  1 12:00:58 cf kernel: ACPI Error: Aborting method \_SB.PCI0.LPCB.EC._Q27
due to previous error (AE_AML_PACKAGE_LIMIT) (20210930/psparse-689)
Feb  1 12:00:58 cf kernel: acpi_ec0: evaluation of query method _Q27 failed:
AE_AML_PACKAGE_LIMIT

It's on FreeBSD 14.0-CURRENT amd64 GENERIC-NODEBUG
9e04d20499c50a5c689a543a101a0545e7950a1d

Here are acpi-related kernel modules loaded:

[rm@cf ~]% sudo kldstat -v | grep acpi
                270 acpi/uart
                 28 nexus/acpi
                476 acpi/fpupnp
                475 root/nexus_acpi
                 33 acpi/cpu
                464 acpi/atdma
                460 acpi/attimer
                458 acpi/atrtc
                456 acpi/dmar
                229 sdhci_acpi/mmc
                228 acpi/sdhci_acpi
                447 acpi/vmbus_res
                445 acpi_syscontainer/vmbus
                432 acpi/fdc
                429 acpi/psmcpnp
                 32 acpi/acpi_cmbat
                426 acpi/atkbdc
                422 acpi/acpi_timer
                421 pci/acpi_pcib
                420 acpi/acpi_pcib
                419 acpi/acpi_pci_link
                418 pcib/acpi_pci
                417 acpi/hpet
                214 acpi/ppc
                 42 cpu/acpi_throttle
                 31 acpi/acpi_button
                 41 acpi/acpi_tz
                 40 acpi/acpi_smbat
                 39 acpi/acpi_syscontainer
                 38 acpi/acpi_sysresource
                 30 acpi/apei
                 29 acpi/acpi_acad
                 37 cpu/acpi_perf
                 36 acpi/acpi_lid
                 35 acpi/acpi_isab
                 34 acpi/acpi_ec
                304 acpi/vmgenc
 2    1 0xffffffff82144000     8710 acpi_ibm.ko (/boot/kernel/acpi_ibm.ko)
                  1 acpi/acpi_ibm
11    1 0xffffffff8356f000     3378 acpi_wmi.ko (/boot/kernel/acpi_wmi.ko)
                505 acpi/acpi_wmi

I've also attached acpidump output. Is there something I can try to turn off/on
in uefi menu to make it working or it requires some kernel patching? I'm open
to any tests. Thanks.

-- 
You are receiving this mail because:
You are the assignee for the bug.