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