Page MenuHomeFreeBSD

hwpstate_amd(4): attach(): More diagnostic on CPPC enable
ClosedPublic

Authored by olce on Jan 31 2026, 11:48 AM.
Tags
None
Referenced Files
F157380975: D55006.id.diff
Wed, May 20, 8:07 PM
F157330147: D55006.id171791.diff
Wed, May 20, 9:31 AM
F157316726: D55006.id170841.diff
Wed, May 20, 6:54 AM
Unknown Object (File)
Tue, May 19, 12:03 AM
Unknown Object (File)
Sun, May 17, 10:08 AM
Unknown Object (File)
Sun, May 10, 11:03 AM
Unknown Object (File)
Sun, May 10, 11:00 AM
Unknown Object (File)
Sun, May 10, 5:10 AM
Subscribers

Details

Summary

When the 'debug.hwpstate_verbose' tunable/sysctl knob is set, dump the
initial content of the CPPC_CAPABILITY_1 and CPPC_REQUEST registers.

If, after enabling CPPC, reading/writing some MSR fails during the attach
sequence, print a diagnostic. However, once CPPC is enabled, we cannot
go back (disabling it is impossible), so we'll attach even if fiddling
with other MSRs failed.

While here, move diagnostic printing on attach out of the callback that
is executed on (potentially) another CPU and with interrupts disabled,
putting it into the attach routine itself.

Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable