From 28ea956acc2dab7c18b4701f9657afb9ab3ddc79 Mon Sep 17 00:00:00 2001 From: Muralidhara M K Date: Mon, 12 Jul 2021 05:18:43 -0500 Subject: [PATCH] rasdaemon: set SMCA maximum number of banks to 64 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 Signed-off-by: Mauro Carvalho Chehab --- mce-amd-smca.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mce-amd-smca.c b/mce-amd-smca.c index e0cf512..3c346f4 100644 --- a/mce-amd-smca.c +++ b/mce-amd-smca.c @@ -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[] = { -- 2.50.1