Blame SOURCES/28ea956acc2dab7c18b4701f9657afb9ab3ddc79.patch

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