From: Akshay Gupta Date: Mon, 15 Sep 2025 10:36:47 +0000 (+0000) Subject: misc: amd-sbi: CPUID/MCAMSR protocol for Revision 0x21 X-Git-Tag: v6.19-rc1~65^2~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd68c06380f67beda28b0cb7d77a75b91a6174e4;p=thirdparty%2Fkernel%2Flinux.git misc: amd-sbi: CPUID/MCAMSR protocol for Revision 0x21 - CPUID and MCAMSR protocol for newer platform with revision 0x21 and later is modified as per two byte register address size. - Modify the CPUID and MCAMSR protocol to return error, "-EOPNOTSUPP", for revision 0x21. - Next set of patches will add support for CPUID and MCAMSR for Turin and later platforms. Reviewed-by: Naveen Krishna Chatradhi Signed-off-by: Akshay Gupta Link: https://patch.msgid.link/20250915103649.1705078-4-akshay.gupta@amd.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/misc/amd-sbi/rmi-core.c b/drivers/misc/amd-sbi/rmi-core.c index 3dec2fc001244..bf534ba757dbe 100644 --- a/drivers/misc/amd-sbi/rmi-core.c +++ b/drivers/misc/amd-sbi/rmi-core.c @@ -122,8 +122,8 @@ static int rmi_cpuid_read(struct sbrmi_data *data, if (ret < 0) goto exit_unlock; } - /* CPUID protocol for REV 0x10 is not supported*/ - if (data->rev == 0x10) { + /* CPUID protocol for REV 0x20 is only supported*/ + if (data->rev != 0x20) { ret = -EOPNOTSUPP; goto exit_unlock; } @@ -203,8 +203,8 @@ static int rmi_mca_msr_read(struct sbrmi_data *data, if (ret < 0) goto exit_unlock; } - /* MCA MSR protocol for REV 0x10 is not supported*/ - if (data->rev == 0x10) { + /* MCA MSR protocol for REV 0x20 is supported*/ + if (data->rev != 0x20) { ret = -EOPNOTSUPP; goto exit_unlock; }