Bug 238921

Summary: ACPI error AE_NO_MEMORY prevents shutdown (power off)
Product: Base System Reporter: Martin Birgmeier <d8zNeCFG>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed DUPLICATE    
Severity: Affects Only Me    
Priority: ---    
Version: 12.0-RELEASE   
Hardware: amd64   
OS: Any   

Description Martin Birgmeier 2019-07-01 13:46:55 UTC
Scenario:
- older laptop Fujitsu Siemens Amilo Pi 1505
- CPU: Intel(R) Core(TM)2 CPU         T5500  @ 1.66GHz (1662.54-MHz K8-class CPU)
- 2 GB main memory
- ZFS used on 500 GB disk, geli partition
- X running but only as screensaver, no X session (machine handled remotely)
- using "shutdown -p now"

Result:
- In about 70% of cases, shutdown fails with ACPI errors as follows (this is typed in from a photo I took):

------------------------------------------------------------------------------------
Jun 30 23:17:55 gandalf syslogd: exiting on signal 15
[now switching to bold highlight font from kernel output]
Waiting (max 60 seconds) for system process 'vnlru' to stop... done
Waiting (max 60 seconds) for system process 'syncer' to stop...
Syncing disks, vnodes remaining... 6 7 7 7 7 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 done
Waiting (max 60 seconds) for system thread 'bufdaemon' to stop... done
Waiting (max 60 seconds) for system thread 'bufspacedaemon-0' to stop... done
All buffers synced.
Uptime: 15h7m15s
GEOM_ELI: Device ada0s1.eli destroyed.
GEOM_ELI: Detached ada0s1.eli on last close.
ukphy0: detached
miibus1: detached
axe0: detached
uftdi0: detached
ulpt0: detached
ACPI Error: AE_ERROR, Thread 100001 could not acquire Mutex [ACPI_MTX_Caches] (0x4) (20181003/utmutex-434)
ACPI Error: Method parse/execution failed \_PTS, AE_NO_MEMORY (20181003/psparse-677)
acpi0: AcpiEnterSleepStatePrep failed - AE_NO_MEMORY

The operating system has halted.
Please press any key to reboot.
------------------------------------------------------------------------------------

- From there, I can long press the power-off button to turn off the machine.

Expected result:
- In about 30% of cases, the machine shuts down successfully. This should happen everytime.
- The issue started around FreeBSD 11.0 if I remember correctly, anyway up to two years ago (maybe earlier).
- There definitely was a time when this always worked.

-- Martin
Comment 1 Martin Birgmeier 2019-07-01 14:10:50 UTC
I should have searched the bugs first - this seems to be a duplicate of bug #202551.
Comment 2 Martin Birgmeier 2019-07-01 14:11:12 UTC

*** This bug has been marked as a duplicate of bug 202551 ***