From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752433Ab0CZEzc (ORCPT ); Fri, 26 Mar 2010 00:55:32 -0400 Received: from out02.mta.xmission.com ([166.70.13.232]:51742 "EHLO out02.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751939Ab0CZEzb (ORCPT ); Fri, 26 Mar 2010 00:55:31 -0400 To: Andi Kleen Cc: Ingo Molnar , Linus Torvalds , Thomas Gleixner , x86@kernel.org, LKML , jesse.brandeburg@intel.com Subject: Re: [PATCH] Prevent nested interrupts when the IRQ stack is near overflowing v2 References: <20100324190150.GA18803@basil.fritz.box> <20100325003652.GG20695@one.firstfloor.org> <20100325093744.GH20695@one.firstfloor.org> <20100325162737.GA5276@elte.hu> <20100325182702.GR20695@one.firstfloor.org> From: ebiederm@xmission.com (Eric W. Biederman) Date: Thu, 25 Mar 2010 21:55:19 -0700 In-Reply-To: <20100325182702.GR20695@one.firstfloor.org> (Andi Kleen's message of "Thu\, 25 Mar 2010 19\:27\:02 +0100") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-XM-SPF: eid=;;;mid=;;;hst=in02.mta.xmission.com;;;ip=76.21.114.89;;;frm=ebiederm@xmission.com;;;spf=neutral X-SA-Exim-Connect-IP: 76.21.114.89 X-SA-Exim-Rcpt-To: andi@firstfloor.org, jesse.brandeburg@intel.com, linux-kernel@vger.kernel.org, x86@kernel.org, tglx@linutronix.de, torvalds@linux-foundation.org, mingo@elte.hu X-SA-Exim-Mail-From: ebiederm@xmission.com X-SA-Exim-Scanned: No (on in02.mta.xmission.com); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Andi Kleen writes: >> I think the patch as posted solves a real problem, but also perpetuates a bad >> situation. >> >> At minimum we should print a (one-time) warning that some badness occured. >> That would push us either in the direction of improving drivers, or towards >> improving the generic code. > > What should a driver do to prevent that? I don't see what it could do > short of castrating itself (like refusing to use multiple ports) > As Linus says the driver doesn't know if setting IRQF_DISABLED is safe. As an aside this is happening on MSI irqs. They can never be shared. So in fact the driver can know it is safe. Should we perhaps make all MSI irqs automatically set IRQF_DISABLED? Eric