Bug 261207 - framework laptop occasionally hangs during suspend to S3
Summary: framework laptop occasionally hangs during suspend to S3
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2022-01-14 19:44 UTC by Mark Johnston
Modified: 2022-01-18 17:45 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Mark Johnston freebsd_committer 2022-01-14 19:44:29 UTC
My framework laptop can suspend/resume without problems most of the time, though resume takes a long time (~10s, maybe related to some nvme time messages that I see).  Suspend occasionally hangs.  When this happens, the display stays on, and I see a number of messages of the form

  hdac0: Unexpected unsolicited response from address 0: 00000000

These messages don't appear when suspend succeeds.  After that, some other devices detach, and the system hangs (can't switch to other vtys, no network, etc.).  It responds to keyboard input and I can scroll in the terminal but DDB prints output very slowly.  All CPUs are idle, but by inserting print statements I can see that the hang occurred somewhere in DEVICE_SUSPEND(root_bus).

I haven't been able to reproduce this problem if I manually detach hdac0 before suspending.
Comment 1 Mark Johnston freebsd_committer 2022-01-14 19:46:24 UTC
> All CPUs are idle

Oops, I lied.  There is an ithread executing hdac_intr_handler() when the system is hung.
Comment 2 Andriy Gapon freebsd_committer 2022-01-15 11:32:24 UTC
This reminded me of base r342170.
I am not sure if there is any relation, but it perhaps there is a problem of a similar nature.