]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
x86/msr-index: Add AMD workload classification MSRs
authorPerry Yuan <perry.yuan@amd.com>
Mon, 9 Jun 2025 20:05:08 +0000 (15:05 -0500)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 7 Jul 2025 17:24:58 +0000 (19:24 +0200)
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
arch/x86/include/asm/msr-index.h

index b7dded3c811328fae3fbfa2dc43ecceb212f2519..4dbf6dbf4c1daa7fc9538d2d5cd06848b5823f39 100644 (file)
 #define MSR_AMD64_PERF_CNTR_GLOBAL_CTL         0xc0000301
 #define MSR_AMD64_PERF_CNTR_GLOBAL_STATUS_CLR  0xc0000302
 
+/* AMD Hardware Feedback Support MSRs */
+#define MSR_AMD_WORKLOAD_CLASS_CONFIG          0xc0000500
+#define MSR_AMD_WORKLOAD_CLASS_ID              0xc0000501
+#define MSR_AMD_WORKLOAD_HRST                  0xc0000502
+
 /* AMD Last Branch Record MSRs */
 #define MSR_AMD64_LBR_SELECT                   0xc000010e