From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759436Ab1DNT6I (ORCPT ); Thu, 14 Apr 2011 15:58:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44780 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755381Ab1DNT6F (ORCPT ); Thu, 14 Apr 2011 15:58:05 -0400 Date: Thu, 14 Apr 2011 15:57:48 -0400 From: Don Zickus To: Cyrill Gorcunov Cc: Ingo Molnar , Lin Ming , Shaun Ruffell , Maciej Rutecki , Peter Zijlstra , Stephane Eranian , Robert Richter , lkml Subject: Re: [PATCH -tip] perf, x86: fix unknown NMIs on a Pentium4 box Message-ID: <20110414195748.GO16939@redhat.com> References: <4DA70950.3060102@openvz.org> <20110414174327.GA8863@elte.hu> <20110414183231.GN16939@redhat.com> <20110414184606.GD16064@elte.hu> <4DA74E5D.4060002@openvz.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4DA74E5D.4060002@openvz.org> 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 On Thu, Apr 14, 2011 at 11:43:25PM +0400, Cyrill Gorcunov wrote: > On 04/14/2011 10:46 PM, Ingo Molnar wrote: > > > > btw., the bug went away once i removed your patch so it's 100% sure caused by > > this change. > > > > Thanks, > > > > Ingo > > Ingo if you have a chance mind to give this patch a shot please? Seems we might miss unmasking > for inflight nmis. I don't think this patch will work. It would make sense if the unmasking happened _after_ the "if (!handled)" path, but that is not the path Ingo wanted for v1. Cheers, Don > - apic_write(APIC_LVTPC, APIC_DM_NMI); > > handled = x86_pmu.handle_irq(args->regs); > + apic_write(APIC_LVTPC, APIC_DM_NMI); ^^^^ all handled/unhandled NMIs hit that apic_write > if (!handled) > return NOTIFY_DONE; >