platform/x86: hfi: Add online and offline callback support
authorPerry Yuan <Perry.Yuan@amd.com>
Mon, 9 Jun 2025 20:05:12 +0000 (15:05 -0500)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 7 Jul 2025 20:24:40 +0000 (22:24 +0200)
commitbb20421c05fc0a0fd70a3f8af076319f7dec4cf1
tree0983d3c19ce342737b379630d11b7bffca109289
parentb6ffe4d9e074561f95a728e1f822ed15e533ec6e
platform/x86: hfi: Add online and offline callback support

There are some firmware parameters that need to be configured
when a CPU core is brought online or offline.

When a CPU is online, it will initialize the workload classification
parameters to CPU firmware which will trigger the workload class ID
updating function.

Once the CPU is going offline, it will need to disable the workload
classification function and clear the history.

Signed-off-by: Perry Yuan <Perry.Yuan@amd.com>
Co-developed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Acked-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/20250609200518.3616080-8-superm1@kernel.org
drivers/platform/x86/amd/hfi/hfi.c