Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751969AbbFBU0V (ORCPT ); Tue, 2 Jun 2015 16:26:21 -0400 Received: from mail-by2on0111.outbound.protection.outlook.com ([207.46.100.111]:22806 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751424AbbFBU0O (ORCPT ); Tue, 2 Jun 2015 16:26:14 -0400 Authentication-Results: spf=none (sender IP is 165.204.84.222) smtp.mailfrom=amd.com; alien8.de; dkim=none (message not signed) header.d=none; X-WSS-ID: 0NPC3FK-08-TL9-02 X-M-MSG: From: Aravind Gopalakrishnan To: , , CC: , , Subject: [PATCH V2 0/9] Updates to EDAC mce_amd_inj Date: Tue, 2 Jun 2015 15:35:53 -0500 Message-ID: <1433277362-10911-1-git-send-email-Aravind.Gopalakrishnan@amd.com> X-Mailer: git-send-email 2.4.0 MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11FD002;1:yyAlXDgkD2RiG0mbbW3x04d8U1uokre4NfIWnQXwA7bN/RkEbaJvddl7ynyKWIVYtDfXen/6YU7JnRzKigFbf/hrafbUkbyR3YL5zSMUwegylAnJ8gk2wN8Rc7js6e4mXMoyfksISD0XPofmdumjr3Ocytf4D670mDNZMkZF5YuSqoWRDX3zAB2wDhlWJ/Ht1LzlLHDCx5YJE6JrH4OXWxl9UsWW88luD0eqg/1Az4keC9ceUz9fll4STHQcaT2uzPoNdyRdWO39z3r+GlpiOw== X-Forefront-Antispam-Report: CIP:165.204.84.222;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(428002)(189002)(199003)(4001540100001)(50986999)(97736004)(86362001)(87936001)(62966003)(77156002)(48376002)(50226001)(64706001)(101416001)(5001830100001)(5001860100001)(47776003)(5001770100001)(50466002)(36756003)(2201001)(77096005)(53416004)(92566002)(68736005)(106466001)(189998001)(105586002)(46102003)(229853001);DIR:OUT;SFP:1102;SCL:1;SRVR:CO1PR02MB080;H:atltwp02.amd.com;FPR:;SPF:None;PTR:InfoDomainNonexistent;MX:1;A:1;LANG:en; X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CO1PR02MB080; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(520003)(5005006)(3002001);SRVR:CO1PR02MB080;BCL:0;PCL:0;RULEID:;SRVR:CO1PR02MB080; X-Forefront-PRVS: 05954A7C45 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jun 2015 20:26:11.8669 (UTC) X-MS-Exchange-CrossTenant-Id: fde4dada-be84-483f-92cc-e026cbee8e96 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fde4dada-be84-483f-92cc-e026cbee8e96;Ip=[165.204.84.222];Helo=[atltwp02.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR02MB080 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2606 Lines: 54 Patch 1, 2: Cleanups to the code. No functional change Patch 3: Modifying flags attribute to accept string arguments and have do_inject() recognize these changes before injecting a 'sw' or 'hw' error Patch 4: Extend flags attribute to accept values of 'dfr', 'thr'. These values will be used to trigger deferred error/threshold error apic interrupts respectively Patch 5: Include permissions for each file within struct dfs_node dfs_fls[] Patch 6: Add README file that describes the attributes Patch 7: Factor out number of nodes calculation from amd_get_topology(). No functional change. Patch 8: Provide accessor function to obtain the number of nodes per processor Patch 9: Modify injection mechanism for bank 4 errors. Since they are typically logged or reported only on NBC, we make sure that we inject on the correct core here. Changes in V2: (per Boris) - Remove arbitrary definition of MAX_FLAG_OPT_SIZE and define it to sizeof the flag option we are introducing in the patch (Patch 3) - Increase it later as needed (Patch 4) - Simplify string comparison loop in __set_inj() - Move return value assignment in flags_write() to after initial condition - Remove hardcoded numbers used to inject deferred/threshold interrupts and use respective macros instead - Use switch-case to decide between injecting apic interrupts and #MC - Add permissions to dfs_fls[] array in a separate patch (Patch 5) and README file in the following patch (Patch 6) - Remove CONFIG_X86_HT ifdefs and factor out number of nodes calculation - Provide accessor function in amd.c Aravind Gopalakrishnan (9): edac, mce_amd_inj: Use MCE_INJECT_GET for bank edac, mce_amd_inj: Rework sanity check for inj_bank_set edac, mce_amd_inj: Modify flags attrigute to use string arguments edac, mce_amd_inj: Add capability to trigger apic interrupts edac, mce_amd_inj: Add individual permissions field for dfs_node edac, mce_amd_inj: Add README file x86, amd: Factor out number of nodes calculation x86, amd: Provide accessor for number of nodes edac, mce_amd_inj: Inject errors on NBC for bank 4 errors arch/x86/include/asm/processor.h | 1 + arch/x86/kernel/cpu/amd.c | 42 ++++-- drivers/edac/mce_amd_inj.c | 270 ++++++++++++++++++++++++++++++++++----- 3 files changed, 275 insertions(+), 38 deletions(-) -- 2.4.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/