From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751871AbbIXEuE (ORCPT ); Thu, 24 Sep 2015 00:50:04 -0400 Received: from mga01.intel.com ([192.55.52.88]:21096 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750868AbbIXEuC (ORCPT ); Thu, 24 Sep 2015 00:50:02 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,579,1437462000"; d="scan'208";a="811764585" From: Ashok Raj To: linux-kernel@vger.kernel.org Cc: Ashok Raj , Boris Petkov , linux-edac@vger.kernel.org, Tony Luck Subject: [Patch V1 1/3] x86, mce: MCE log size not enough for high core parts Date: Thu, 24 Sep 2015 01:48:38 -0400 Message-Id: <1443073720-3940-1-git-send-email-ashok.raj@intel.com> X-Mailer: git-send-email 2.4.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org MCE_LOG_LEN appears to be short for high core count parts. Especially when handling fatal errors, we don't clear MCE banks. Socket level MC banks are visible to all CPUs that share banks. Assuming 18 core part, 2 threads per core 2 banks per thread and couple uncore MSRs. Rounding to 128 with some fudge to grow in future. Signed-off-by: Ashok Raj Suggested-by: Tony Luck --- arch/x86/include/asm/mce.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/mce.h b/arch/x86/include/asm/mce.h index 2dbc0bf..4293ae7 100644 --- a/arch/x86/include/asm/mce.h +++ b/arch/x86/include/asm/mce.h @@ -88,7 +88,7 @@ #define MCE_EXTENDED_BANK 128 #define MCE_THERMAL_BANK (MCE_EXTENDED_BANK + 0) -#define MCE_LOG_LEN 32 +#define MCE_LOG_LEN 128 #define MCE_LOG_SIGNATURE "MACHINECHECK" /* -- 2.4.3