Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030494AbbD1QWw (ORCPT ); Tue, 28 Apr 2015 12:22:52 -0400 Received: from mail.skyhub.de ([78.46.96.112]:46103 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965916AbbD1QWs (ORCPT ); Tue, 28 Apr 2015 12:22:48 -0400 Date: Tue, 28 Apr 2015 18:22:29 +0200 From: Borislav Petkov To: Don Zickus Cc: Jiri Kosina , linux-edac , Borislav Petkov , "Rafael J. Wysocki" , Len Brown , Tony Luck , Tomasz Nowicki , "Chen, Gong" , Wolfram Sang , Lv Zheng , Naoya Horiguchi , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, Huang Ying Subject: Re: [RFC PATCH 5/5] GHES: Make NMI handler have a single reader Message-ID: <20150428162229.GH19025@pd.tnic> References: <1427448178-20689-1-git-send-email-bp@alien8.de> <1427448178-20689-6-git-send-email-bp@alien8.de> <20150428143009.GA98296@redhat.com> <20150428145548.GE19025@pd.tnic> <20150428153521.GE98296@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20150428153521.GE98296@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1454 Lines: 39 On Tue, Apr 28, 2015 at 11:35:21AM -0400, Don Zickus wrote: > Your solution seems much simpler. :-) ... and I love simpler :-) > I followed up in another email stating I mis-spoke. I forgot this still > uses the NMI_LOCAL shared NMI. So every perf NMI, will also call the GHES > handler to make sure NMIs did not piggy back each other. So I don't believe And this is something we should really fix - perf and RAS should not have anything to do with each other. But I don't know the NMI code to even have an idea how. I don't even know whether we can differentiate NMIs, hell, I can't imagine the hardware giving us a different NMI reason through get_nmi_reason(). Maybe that byte returned from NMI_REASON_PORT is too small and hangs on too much legacy crap to even be usable. Questions over questions... > the NMI reason lock is called a majority of the time (except when the NMI is > swallowed, but that is under heavy perf load...). .. > We both agree the mechanics of the spinlock are overkill here and cause much > cache contention. Simplifying it to just 'reads' and return removes most of > the problem. Right. -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply. -- -- 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/