]> www.infradead.org Git - users/mchehab/rasdaemon.git/commitdiff
rasdaemon: set SMCA maximum number of banks to 64
authorMuralidhara M K <muralimk@amd.com>
Mon, 12 Jul 2021 10:18:43 +0000 (05:18 -0500)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 17 Aug 2021 10:59:49 +0000 (12:59 +0200)
Newer AMD systems with SMCA banks support up to 64 MCA banks per CPU.

This patch is based on the commit below upstremed into the kernel:
a0bc32b3cacf ("x86/mce: Increase maximum number of banks to 64")

Signed-off-by: Muralidhara M K <muralimk@amd.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
mce-amd-smca.c

index e0cf512a4841dc6c396ddfa807d83808d7e8f58e..3c346f4714bbf6d8b1f0149efedab8e3c095052d 100644 (file)
@@ -75,6 +75,9 @@ enum smca_bank_types {
        N_SMCA_BANK_TYPES
 };
 
+/* Maximum number of MCA banks per CPU. */
+#define MAX_NR_BANKS   64
+
 /* SMCA Extended error strings */
 /* Load Store */
 static const char * const smca_ls_mce_desc[] = {