Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755943Ab0HFOWF (ORCPT ); Fri, 6 Aug 2010 10:22:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57348 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755198Ab0HFOWA (ORCPT ); Fri, 6 Aug 2010 10:22:00 -0400 Date: Fri, 6 Aug 2010 10:21:31 -0400 From: Don Zickus To: Robert Richter Cc: Cyrill Gorcunov , Peter Zijlstra , Lin Ming , Ingo Molnar , "fweisbec@gmail.com" , "linux-kernel@vger.kernel.org" , "Huang, Ying" , Yinghai Lu , Andi Kleen Subject: Re: A question of perf NMI handler Message-ID: <20100806142131.GA1874@redhat.com> References: <20100804145203.GP3353@redhat.com> <1280934161.1923.1294.camel@laptop> <20100804151858.GB5130@lenovo> <20100804155002.GS3353@redhat.com> <20100804161046.GC5130@lenovo> <20100804162026.GU3353@redhat.com> <20100804163930.GE5130@lenovo> <20100804184806.GL26154@erda.amd.com> <20100804192634.GG5130@lenovo> <20100806065203.GR26154@erda.amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100806065203.GR26154@erda.amd.com> User-Agent: Mutt/1.5.20 (2009-08-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1602 Lines: 38 On Fri, Aug 06, 2010 at 08:52:03AM +0200, Robert Richter wrote: > On 04.08.10 15:26:34, Cyrill Gorcunov wrote: > > > yes, that is what I meant by nmi_sc register. I think we need to restucturize > > current default_do_nmi handler but how to be with perfs I don't know at moment > > if perf register gets overflowed (ie already has pedning nmi) but we handle > > it in early nmi cycle this would lead to strange results. Need to think. > > > > > > > > So you can decide to either get an unrecovered nmi panic triggered by > > > a perfctr or losing unknown nmis from other sources. Maybe this can be > > > fixed by implementing handlers for those sources. > > I was playing around with it yesterday trying to fix this. My idea is > to skip an unkown nmi if the privious nmi was a *handled* perfctr You might want to add a little more logic that says *handled* _and_ had more than one perfctr trigger. Most of the time only one perfctr is probably triggering, so you might be eating unknown_nmi's needlessly. Just a thought. > nmi. I will probably post an rfc patch early next week. > > Another problem I encountered is that unknown nmis from the chipset > are not reenabled, thus when hitting the nmi button I only see one > unknown nmi message per boot, if I reenable it, I get an nmi > storm firing nmi_watchdog. Uhh.... Interesting. Cheers, Don -- 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/