Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757218AbcCCPzG (ORCPT ); Thu, 3 Mar 2016 10:55:06 -0500 Received: from mail-bn1bon0062.outbound.protection.outlook.com ([157.56.111.62]:60128 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753256AbcCCPzD (ORCPT ); Thu, 3 Mar 2016 10:55:03 -0500 Authentication-Results: alien8.de; dkim=none (message not signed) header.d=none;alien8.de; dmarc=none action=none header.from=amd.com; From: Aravind Gopalakrishnan To: , , , , , , CC: , , , , , , , , , Subject: [PATCH V3 0/5] Updates to EDAC and AMD MCE driver Date: Thu, 3 Mar 2016 10:10:53 -0600 Message-ID: <1457021458-2522-1-git-send-email-Aravind.Gopalakrishnan@amd.com> X-Mailer: git-send-email 2.7.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: SN1PR0701CA0022.namprd07.prod.outlook.com (25.162.96.32) To BY1PR12MB0421.namprd12.prod.outlook.com (25.162.146.30) X-MS-Office365-Filtering-Correlation-Id: 96662d96-9e1c-4457-1f1a-08d3437c2afb X-Microsoft-Exchange-Diagnostics: 1;BY1PR12MB0421;2:Of+oFhi97Lpe60MucndIC4pTPcpF8vv3fmLIZeYk9uGFnNQ6QCb2V2ZUtphgQaufrrznV7V7jWhID+TGPwMNFR0xOoQTtBSgmNIX9ehEutp5Iq5MkXy60CupvhUmOjv6iukMpKGUgaaanHsrmKrYHzFN/KW8+/Wj2gltGCDydtYiiW2yx/YSP2uJgu9jCuDo;3:5jAEqm2z4XAtY7KazRx0yIQRtkj2VAtP87nMMMr6U8gFpCYTRKYyVu4To3a433r7Dzwm76VMvwrgtkFew/BvMfqieH4ckZbhSeU8Cw/kEoa1dFkoCLoEd0Nnyavg08ut;25:BCWHoj9HpSZtEvHR2yatl6NyurGuK87LgN6kQJMPUybwj7I/Qe4f7uWwAF4O0N59YrcEW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OTONwoT9pc1XfKFaX2CrIYXD2fK0gH955wYjquypVEsSDudAacvpK8RSlWX5DiVZ4ybLDVaZDJQe3xgxH4VARZOzNTklqjx/GF+m1/NxCv0aK7qSMmQ79JNzly/8Eperag76EXTnMWPglesPdlWH3aEydAA2PG+aPex2ohM4QS/IugEIBd4AXSpQKW49+FNlesrt X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046);SRVR:BY1PR12MB0421;BCL:0;PCL:0;RULEID:;SRVR:BY1PR12MB0421; X-Forefront-PRVS: 0870212862 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(209900001)(229853001)(2906002)(10710500007)(48376002)(40100003)(50986999)(92566002)(122386002)(4326007)(50226001)(7110500001)(189998001)(5001770100001)(15650500001)(42186005)(15975445007)(6116002)(50466002)(586003)(36756003)(2420400007)(1096002)(5008740100001)(81166005)(15395725005)(2201001)(86362001)(87976001)(53416004)(5004730100002)(66066001)(47776003)(19580395003)(77096005)(5003940100001)(217873001)(6606295002);DIR:OUT;SFP:1101;SCL:1;SRVR:BY1PR12MB0421;H:arav-dinar.amd.com;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY1PR12MB0421;23:FsHxuFrKkz2yV2mQEAPTV/vvTgvWLsVECoVo2Qo7I?= =?us-ascii?Q?9KBF4zm90pDX2G34CIYcK7yVJzzyn7c1kYr9hz1d5JloeO+s0BqvtNDzOr7R?= =?us-ascii?Q?uzULbqOhN1WvmZaSHmVfQp+7jyKiMQavPnFhmm6NA00cMu2O4gCVP0UWIzFt?= =?us-ascii?Q?abl18spiBx9QWbE7DWp6XfiDTLyLBb0ViOoa3ZTZvbSVql4FcsCRIzadc4/J?= =?us-ascii?Q?Ve8MLqUDmojAFlV3glnwEP2scGEYTjZ2yY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exchange-Diagnostics: 1;BY1PR12MB0421;5:+vGOHNY0monih2WHW2L9PrunqsRfIfEGHVtFAUDHpaX9opniFH2ytfWXLnvUjVcVjStXSMp8U1jYO3sD3q1Lh5BIDVuejXNS6wajDJbPdfQU7opJ8pJcA8lXTrE+JLMpGN4RK6xOQ2j2JgEX0yP2EA==;24:Pa0MBjBBk51w3M5t7GKAi2ia8Wjbf4wtK+0sO8OodfFLNBUJRhZRbs6e56UEnfYzEZ22h8uojHM4B2GlRUXweifdPwvPs7XFW4GOJ4xXA+4=;20:GB0DaUTVhl+8dOk8KlhKXi5MMsDrE9LHcnJC81EqxtdWI18/aJlWAuPhSomtp+wNe59DIvjfa5BARk2lNDOtW65MlI1MCo1bZIfg4EErBgjNpRKGStwWquh5WX6kGJ56x0wXto/Be2KcO541U3KqrdjQ7a6ytkyBK1htpc6r+jfp0drUeiQKerIxxL+NLDhBddOMSupZX/r9NwMupIXID8+EowKq25fphc/BDESzj4jeZRrlbcDVk68su7RG8vcU X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Mar 2016 15:54:54.7821 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR12MB0421 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2116 Lines: 51 This patchset mainly provides necessary EDAC bits to decode errors occuring on Scalable MCA enabled processors and also updates AMD MCE driver to program the correct MCx_MISC register address for upcoming processors. Patches 1, 2 and 3 are for upcoming processor. Patches 4 and 5 are either fixing or adding comments to help in understanding the code and do not introduce any functional changes. Patch 1: Move MSR definition to mce.h Patch 2: Updates to EDAC driver to decode the new error signatures Patch 3: Fix logic to obtain correct block address Patch 4: Fix deferred error comment Patch 5: Add comments to amd_nb.h to describe threshold_block structure Note 1: Introduced new patch for moving MCx_CONFIG MSR to mce.h Note 2: The enums, amd_hwids[], and string arrays amd_core_mcablock_names[], amd_df_mcablock_names[] are placed in arch/x86 as there are follow-up patches which use them here. Changes from V1: (per Boris suggestions) - Simplify error decoding routines - Move headers to mce.h - Rename enumerations and struct members (to be more descriptive) - Drop gerund usage - Remove comments that are spelling out the code Changes from V2: (per Boris suggestions) - Incorporated all changes as suggested by Boris from here- - http://marc.info/?l=linux-kernel&m=145691594921586&w=2 - http://marc.info/?l=linux-kernel&m=145691606221610&w=2 - http://marc.info/?l=linux-kernel&m=145691610421627&w=2 - No functional change is introduced Aravind Gopalakrishnan (5): x86/mce: Move MCx_CONFIG MSR definition EDAC, MCE, AMD: Enable error decoding of Scalable MCA errors x86/mce/AMD: Fix logic to obtain block address x86/mce: Clarify comments regarding deferred error x86/mce/AMD: Add comments for easier understanding arch/x86/include/asm/amd_nb.h | 18 +- arch/x86/include/asm/mce.h | 69 +++++++- arch/x86/include/asm/msr-index.h | 4 - arch/x86/kernel/cpu/mcheck/mce_amd.c | 127 +++++++++---- drivers/edac/mce_amd.c | 334 ++++++++++++++++++++++++++++++++++- 5 files changed, 501 insertions(+), 51 deletions(-) -- 2.7.0