d77db6
commit 28ea956acc2dab7c18b4701f9657afb9ab3ddc79
d77db6
Author: Muralidhara M K <muralimk@amd.com>
d77db6
Date:   Mon Jul 12 05:18:43 2021 -0500
d77db6
d77db6
    rasdaemon: set SMCA maximum number of banks to 64
d77db6
    
d77db6
    Newer AMD systems with SMCA banks support up to 64 MCA banks per CPU.
d77db6
    
d77db6
    This patch is based on the commit below upstremed into the kernel:
d77db6
    a0bc32b3cacf ("x86/mce: Increase maximum number of banks to 64")
d77db6
    
d77db6
    Signed-off-by: Muralidhara M K <muralimk@amd.com>
d77db6
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
d77db6
d77db6
diff --git a/mce-amd-smca.c b/mce-amd-smca.c
d77db6
index e0cf512..3c346f4 100644
d77db6
--- a/mce-amd-smca.c
d77db6
+++ b/mce-amd-smca.c
d77db6
@@ -75,6 +75,9 @@ enum smca_bank_types {
d77db6
 	N_SMCA_BANK_TYPES
d77db6
 };
d77db6
 
d77db6
+/* Maximum number of MCA banks per CPU. */
d77db6
+#define MAX_NR_BANKS	64
d77db6
+
d77db6
 /* SMCA Extended error strings */
d77db6
 /* Load Store */
d77db6
 static const char * const smca_ls_mce_desc[] = {