Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86/msr-index: Add AMD workload classification MSRs

Introduce new MSR registers for AMD hardware feedback support. They provide
workload classification and configuration capabilities.

Signed-off-by: Perry Yuan <perry.yuan@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-4-superm1@kernel.org

authored by

Perry Yuan and committed by
Borislav Petkov (AMD)
a3c4f339 31b294e5

+5
+5
arch/x86/include/asm/msr-index.h
··· 732 732 #define MSR_AMD64_PERF_CNTR_GLOBAL_CTL 0xc0000301 733 733 #define MSR_AMD64_PERF_CNTR_GLOBAL_STATUS_CLR 0xc0000302 734 734 735 + /* AMD Hardware Feedback Support MSRs */ 736 + #define MSR_AMD_WORKLOAD_CLASS_CONFIG 0xc0000500 737 + #define MSR_AMD_WORKLOAD_CLASS_ID 0xc0000501 738 + #define MSR_AMD_WORKLOAD_HRST 0xc0000502 739 + 735 740 /* AMD Last Branch Record MSRs */ 736 741 #define MSR_AMD64_LBR_SELECT 0xc000010e 737 742