The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v2] misc: amd-sbi: Address CPUID extended function bits
@ 2026-03-18 13:44 Akshay Gupta
  0 siblings, 0 replies; only message in thread
From: Akshay Gupta @ 2026-03-18 13:44 UTC (permalink / raw)
  To: linux-kernel
  Cc: gregkh, arnd, linux, naveenkrishna.chatradhi, Anand.Umarji,
	Akshay Gupta, stable, Prathima L K

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")
Cc: stable@vger.kernel.org
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>
---
Changes since v1:
- Added Cc "stable@vger.kernel.org" in commit message

 drivers/misc/amd-sbi/rmi-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/misc/amd-sbi/rmi-core.c b/drivers/misc/amd-sbi/rmi-core.c
index 1d4933c69dd2..d4238ebad3c6 100644
--- a/drivers/misc/amd-sbi/rmi-core.c
+++ b/drivers/misc/amd-sbi/rmi-core.c
@@ -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 {
-- 
2.34.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-03-18 13:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-18 13:44 [PATCH v2] misc: amd-sbi: Address CPUID extended function bits Akshay Gupta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox