[Bug 289634] ACPI(4) not managing power on 16.0-CURRENT

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 18 Sep 2025 18:26:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289634

Marek Zarychta <zarychtam@plan-b.pwste.edu.pl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |Closed
         Resolution|---                         |FIXED

--- Comment #26 from Marek Zarychta <zarychtam@plan-b.pwste.edu.pl> ---
(In reply to Aymeric Wibo from comment #24)
>So, at this point I'm fairly certain AcpiEnterSleepStatePrep is getting passed the right >state for your system to sleep (ACPI_STATE_S3, which should also be what that function >was getting before my changes), but it is failing with my changes for some reason (which >it shouldn't because I'm in theory not touching that code).

The OS was entering sleep, at least partially, but was waking up promptly.

>As a sanity check, can you compile the pre-revert changes with ACPI_DEBUG_OUTPUT set so I >can see what is being passed to acpi_EnterSleepState?

>If you could also check which one of the returns AcpiEnterSleepStatePrep is hitting >(APCICA code, sys/contrib/dev/acpica/components/hardware/hwxfsleep.c, by sprinkling some >printf's there e.g.) that would help me a lot too.

OK, I will do, but it will take some time. I need to read more about how to do
it first.

Thank you for fixing the issue!

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