Blame SOURCES/28ea956acc2dab7c18b4701f9657afb9ab3ddc79.patch

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