[PATCH] misc: amd-sbi: Address CPUID extended function bits

Akshay Gupta posted 1 patch 2 weeks, 5 days ago
There is a newer version of this series
drivers/misc/amd-sbi/rmi-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] misc: amd-sbi: Address CPUID extended function bits
Posted by Akshay Gupta 2 weeks, 5 days ago
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>
---
 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 c3a58912d6db..6979bfd7da64 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
Re: [PATCH] misc: amd-sbi: Address CPUID extended function bits
Posted by Greg KH 2 weeks, 5 days ago
On Wed, Mar 18, 2026 at 03:17:06PM +0530, Akshay Gupta wrote:
> 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>
> ---
>  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 c3a58912d6db..6979bfd7da64 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
> 

Hi,

This is the friendly patch-bot of Greg Kroah-Hartman.  You have sent him
a patch that has triggered this response.  He used to manually respond
to these common problems, but in order to save his sanity (he kept
writing the same thing over and over, yet to different people), I was
created.  Hopefully you will not take offence and will fix the problem
in your patch and resubmit it so that it can be accepted into the Linux
kernel tree.

You are receiving this message because of the following common error(s)
as indicated below:

- You have marked a patch with a "Fixes:" tag for a commit that is in an
  older released kernel, yet you do not have a cc: stable line in the
  signed-off-by area at all, which means that the patch will not be
  applied to any older kernel releases.  To properly fix this, please
  follow the documented rules in the
  Documentation/process/stable-kernel-rules.rst file for how to resolve
  this.

If you wish to discuss this problem further, or you have questions about
how to resolve this issue, please feel free to respond to this email and
Greg will reply once he has dug out from the pending patches received
from other developers.

thanks,

greg k-h's patch email bot