Page MenuHomeFreeBSD

fix(acpi_panasonic): acquire serial lock before calling hkey_sound_mute in shutdown
ClosedPublic

Authored by seuros on Apr 29 2026, 9:59 PM.
Tags
None
Referenced Files
F168370632: D56718.id.diff
Thu, Aug 27, 8:04 PM
Unknown Object (File)
Wed, Aug 26, 3:12 PM
Unknown Object (File)
Tue, Aug 25, 12:31 PM
Unknown Object (File)
Tue, Aug 25, 12:30 PM
Unknown Object (File)
Thu, Aug 20, 6:21 PM
Unknown Object (File)
Fri, Aug 14, 2:46 AM
Unknown Object (File)
Wed, Aug 12, 3:01 PM
Unknown Object (File)
Wed, Aug 12, 12:32 AM
Subscribers

Details

Summary

acpi_panasonic_shutdown() calls hkey_sound_mute() without holding the ACPI serial lock.
Every other call site holds ACPI_SERIAL_BEGIN(panasonic) before calling it, as the locking model is caller-owned.

This seems to affect the whole Panasonic Toughtbook lineup btw.

Test Plan

Boot a Panasonic Notebook with acpi_panasonic loaded. Trigger a clean shutdown and reboot, verify no static audio burst through the speaker.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 72643
Build 69526: arc lint + arc unit

Event Timeline

seuros held this revision as a draft.
seuros published this revision for review.Apr 29 2026, 10:48 PM
seuros edited the summary of this revision. (Show Details)
seuros edited the test plan for this revision. (Show Details)
seuros added a reviewer: imp.

hkey_sound_mute calls ACPI_SERIAL_ASSERT(..), which I assume is where things panic. This is a pretty straightforward change.

This revision is now accepted and ready to land.May 5 2026, 7:47 PM