]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
misc: amd-sbi: Address CPUID extended function bits
authorAkshay Gupta <Akshay.Gupta@amd.com>
Wed, 18 Mar 2026 09:47:06 +0000 (15:17 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Apr 2026 14:17:25 +0000 (16:17 +0200)
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")
Tested-by: Prathima L K <Prathima.Lk@amd.com>
Reviewed-by: Naveen Krishna Chatradhi <naveenkrishna.chatradhi@amd.com>
Signed-off-by: Akshay Gupta <Akshay.Gupta@amd.com>
Link: https://patch.msgid.link/20260318094706.2623258-1-Akshay.Gupta@amd.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/amd-sbi/rmi-core.c

index c3a58912d6db8fd92c5a00eb2d5bc988d1707ad1..6979bfd7da6477de276ade019d9153a8e0a6e380 100644 (file)
@@ -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 {