From: Muralidhara M K Date: Mon, 12 Jul 2021 10:18:43 +0000 (-0500) Subject: rasdaemon: set SMCA maximum number of banks to 64 X-Git-Tag: v0.6.8~22 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=28ea956acc2dab7c18b4701f9657afb9ab3ddc79;p=users%2Fmchehab%2Frasdaemon.git 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 --- 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[] = {