Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751462AbbEAEQm (ORCPT ); Fri, 1 May 2015 00:16:42 -0400 Received: from mail-by2on0131.outbound.protection.outlook.com ([207.46.100.131]:51904 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750728AbbEAEQk (ORCPT ); Fri, 1 May 2015 00:16:40 -0400 X-Greylist: delayed 30251 seconds by postgrey-1.27 at vger.kernel.org; Fri, 01 May 2015 00:16:40 EDT 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: 0NNNL7G-08-D7I-02 X-M-MSG: Message-ID: <5542FE1E.2090209@amd.com> Date: Thu, 30 Apr 2015 23:16:30 -0500 From: Aravind Gopalakrishnan User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 MIME-Version: 1.0 To: Andy Lutomirski CC: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Tony Luck , "Borislav Petkov" , Jiang Liu , Yinghai Lu , X86 ML , Denys Vlasenko , Jan Beulich , , Dave Hansen , Oleg Nesterov , Steven Rostedt , Rusty Russell , Prarit Bhargava , Rasmus Villemoes , , Andy Shevchenko , "Maciej W. Rozycki" , Wang Nan , "linux-kernel@vger.kernel.org" , linux-edac Subject: Re: [PATCH 2/4] x86/mce/amd: Introduce deferred error interrupt handler References: <1430405365-4473-1-git-send-email-Aravind.Gopalakrishnan@amd.com> <1430405365-4473-3-git-send-email-Aravind.Gopalakrishnan@amd.com> In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:165.204.84.222;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(428002)(377454003)(189002)(24454002)(164054003)(479174004)(199003)(105586002)(106466001)(87936001)(101416001)(64126003)(19580405001)(83506001)(110136002)(92566002)(62966003)(2950100001)(33656002)(50466002)(86362001)(77096005)(77156002)(4001350100001)(54356999)(76176999)(65816999)(65956001)(47776003)(50986999)(65806001)(46102003)(59896002)(23676002)(19580395003)(80316001)(36756003);DIR:OUT;SFP:1102;SCL:1;SRVR:CO1PR02MB079;H:atltwp02.amd.com;FPR:;SPF:None;MLV:sfv;MX:1;A:1;LANG:en; X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CO1PR02MB079;UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CO1PR02MB110; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:CO1PR02MB079;BCL:0;PCL:0;RULEID:;SRVR:CO1PR02MB079; X-Forefront-PRVS: 0563F2E8B7 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 May 2015 04:16:34.4160 (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: CO1PR02MB079 X-OriginatorOrg: amd4.onmicrosoft.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1509 Lines: 34 On 4/30/15 3:41 PM, Andy Lutomirski wrote: > On Thu, Apr 30, 2015 at 7:49 AM, Aravind Gopalakrishnan > wrote: >> Changes introduced in the patch- >> - Assign vector number 0xf4 for Deferred errors >> - Declare deferred_interrupt, allocate gate and bind it >> to DEFERRED_APIC_VECTOR. >> - Declare smp_deferred_interrupt to be used as the >> entry point for the interrupt in mce_amd.c >> - Define trace_deferred_interrupt for tracing >> - Enable deferred error interrupt selectively upon detection >> of 'succor' bitfield >> - Setup amd_deferred_error_interrupt() to handle the interrupt >> and assign it to def_int_vector if feature is present in HW. >> Else, let default handler deal with it. >> - Provide Deferred error interrupt stats on >> /proc/interrupts by incrementing irq_deferred_count > You're calling these "deferred interrupts" all over (e.g. > irq_deferred_count, deferred_int_handler, etc). That seems like it'll > be confusing. They're deferred errors, not deferred interrupts. > I used the term as it is an interrupt due to the deferred error. Would 'deferred_err_interrupt' be more apt? Maybe 'irq_deferred_error_count' for the counter? Thanks, -Aravind. -- 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/