Skip to contentSkip to conversation

misc: amd-sbi: Address CPUID extended function bits

PATCH New Akshay Gupta 1 participant 1 message Mar 18

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 misc: amd-sbi: Address CPUID extended function bits

According to the UAPI header (amd-apml.h), the CPUID extended function capability is indicated by bits [55:48], but the driver currently checks bits [63:56]. Adjust the driver to use bits [55:48] so that extended function capability is detected correctly.

Fixes bb13a84ed6b7 ("misc: amd-sbi: Add support for CPUID protocol")

---
Changes since v1:
- Added Cc "[email protected]" in commit message

 drivers/misc/amd-sbi/rmi-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/amd-sbi/rmi-core.c +1 -1
index 1d4933c69dd2..d4238ebad3c6 100644
@@ -48,7 +48,7 @@
 /* CPUID MCAMSR mask & index */
 #define CPUID_MCA_THRD_INDEX	32
 #define CPUID_MCA_FUNC_MASK	GENMASK(31, 0)
-#define CPUID_EXT_FUNC_INDEX	56
+#define CPUID_EXT_FUNC_INDEX	48
 
 /* input for bulk write to CPUID protocol */
 struct cpu_msr_indata {
Signature · 1 line
2.34.1