From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ingo Molnar Subject: Re: lockdep and threaded IRQs (was: ...) Date: Tue, 3 Mar 2009 12:19:03 +0100 Message-ID: <20090303111903.GA21902@elte.hu> References: <1235762883-20870-1-git-send-email-me@felipebalbi.com> <200903021633.08736.david-b@pacbell.net> <20090303004427.GA8638@elte.hu> <200903021837.08635.david-b@pacbell.net> <1236072446.18955.44.camel@twins> <20090303094743.030b2507@lxorguk.ukuu.org.uk> <20090303100329.GA5050@elte.hu> <20090303103041.0ba4aebd@lxorguk.ukuu.org.uk> <20090303104836.GA11532@elte.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mx3.mail.elte.hu ([157.181.1.138]:44771 "EHLO mx3.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751335AbZCCLTf (ORCPT ); Tue, 3 Mar 2009 06:19:35 -0500 Content-Disposition: inline In-Reply-To: <20090303104836.GA11532@elte.hu> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Alan Cox Cc: Peter Zijlstra , David Brownell , Andrew Morton , me@felipebalbi.com, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, felipe.balbi@nokia.com, dmitry.torokhov@gmail.com, sameo@openedhand.com, tglx@linutronix.de * Ingo Molnar wrote: > > * Alan Cox wrote: > > > > _without_ IRQF_ENABLED: where an IRQ handler can take a long > > > time to execute, the handler can be converted to a threaded > > > IRQ handler - where it's fine to enable IRQs as there are no > > > stack nesting issues. > > > > Only if you can mask the interrupt on the APIC without > > losing it or having the APIC throw a fit. > > Hm, that reads like the boot IRQ erratas of certain chipsets - > the APIC could throw a fit essentially locking up the system. > FYI, we have fixes for that upstream already. > > Do you have any description about that problem, which hardware > it affects, whether it's manufactured today and any (ballpark > figure) estimation about the Linux installed base on it? Can > they live with the quirk flag? btw., i definitely do not say that threaded IRQ handlers will work in each an every case (it changes the hardware programming pattern and as such it can bring out new erratas) so i definitely agree with the argument that the conversion has to be careful and case by case. The plan Peter outlined looks sane. In case you worry about a forced removal of irq-enable - you should not. Ingo