krishnanadh / rpms / rasdaemon

Forked from rpms/rasdaemon a year ago
Clone

Blame SOURCES/28ea956acc2dab7c18b4701f9657afb9ab3ddc79.patch

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