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
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
Unknown Object (File)
Mon, Aug 10, 11:14 AM
Unknown Object (File)
Sun, Aug 9, 6:44 AM
Unknown Object (File)
Fri, Aug 7, 8:09 PM
Unknown Object (File)
Fri, Aug 7, 2:29 PM
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 Not Applicable
Unit
Tests Not Applicable

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