Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755687Ab0FNPM5 (ORCPT ); Mon, 14 Jun 2010 11:12:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43187 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754533Ab0FNPMz (ORCPT ); Mon, 14 Jun 2010 11:12:55 -0400 Date: Mon, 14 Jun 2010 11:12:32 -0400 From: Don Zickus To: Andi Kleen Cc: Hidetoshi Seto , Ingo Molnar , Huang Ying , Fr??d??ric Weisbecker , Peter Zijlstra , "H. Peter Anvin" , linux-kernel@vger.kernel.org Subject: Re: [RFC 1/3] Unified NMI delayed call mechanism Message-ID: <20100614151232.GQ4894@redhat.com> References: <1276334896-7075-1-git-send-email-ying.huang@intel.com> <20100612102558.GA4000@elte.hu> <4C15A5D1.1040104@jp.fujitsu.com> <20100614135403.GH4894@redhat.com> <20100614144403.GA369@basil.fritz.box> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100614144403.GA369@basil.fritz.box> 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: 1214 Lines: 28 On Mon, Jun 14, 2010 at 04:44:03PM +0200, Andi Kleen wrote: > > I think the perf event subsytem can log events in NMI context already and > > deliver them to userspace when the NMI is done. This is why I think Ingo > > wants MCE to be updated to sit on top of the perf event subsytem to avoid > > re-invent everything again. > > perf is not solving the problem this is trying to solve. > > > Then again I do not know enough about the MCE stuff to understand what you > > mean when an event comes in but you can't handle it in an NMI-safe > > context. An example would be helpful. > > At least for MCE hwpoison recovery needs to sleep and you obviously cannot sleep in > NMI like context. The way it's done is to first do a self interrupt, then do a work queue > wakeup and finally the sleeping operations. > > perf does not fit into this because it has no way to process such an event > inside the kernel. Ah, makes sense. Thanks for the example. 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/