Page MenuHomeFreeBSD

hwpstate_amd(4): attach(): More diagnostic on CPPC enable
Needs ReviewPublic

Authored by olce on Sat, Jan 31, 11:48 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Feb 2, 2:17 AM
Unknown Object (File)
Sat, Jan 31, 8:11 PM
Unknown Object (File)
Sat, Jan 31, 7:44 PM
Unknown Object (File)
Sat, Jan 31, 7:20 PM
Unknown Object (File)
Sat, Jan 31, 6:32 PM
Unknown Object (File)
Sat, Jan 31, 5:57 PM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 70278
Build 67161: arc lint + arc unit