Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761802AbXK1Oih (ORCPT ); Wed, 28 Nov 2007 09:38:37 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760899AbXK1OiQ (ORCPT ); Wed, 28 Nov 2007 09:38:16 -0500 Received: from rv-out-0910.google.com ([209.85.198.189]:32191 "EHLO rv-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759804AbXK1OiN (ORCPT ); Wed, 28 Nov 2007 09:38:13 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=NLbhgOxFa9oDEEdk5zTD3CO0+imaKi5VGxpfRfLsicxXA7+7wx7+g14QKmm9V2TQTWO0IB0VeVdvY+hIjwQIhiJ5Q5VXAXWHGXpw/ZeqZYsy+DPoGLXMT8B4RfFlMX2A4UNMC60yPkRNbmcY+StUVdWJQU8DwmzPq4tLo5HzbUI= Message-ID: <3efb10970711280638l3f57104y8cf9f2e58235c3@mail.gmail.com> Date: Wed, 28 Nov 2007 15:38:11 +0100 From: "Remy Bohmer" To: "Daniel Walker" Subject: Re: [PATCH PREEMPT_RT]: On AT91 ARM: GPIO Interrupt handling can/will stall forever Cc: "Steven Rostedt" , "Thomas Gleixner" , "Ingo Molnar" , "ARM Linux Mailing List" , RT , linux-kernel In-Reply-To: <1196178834.23808.11.camel@imap.mvista.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3efb10970711260531x5e9f05acgfabdfa885a220192@mail.gmail.com> <3efb10970711260545i419a8352o4ca5248b10d81db5@mail.gmail.com> <1196176294.13982.58.camel@localhost.localdomain> <1196177122.23808.7.camel@imap.mvista.com> <1196178834.23808.11.camel@imap.mvista.com> X-Google-Sender-Auth: 29776a516e021e1d Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1699 Lines: 40 Hello Daniel, > * Note: The caller is expected to handle the ack, clear, mask and > * unmask issues if necessary. > So we shouldn't need any flow control unless there is some other > factors.. This comment can be misinterpreted, I think. Who is assumed to be the caller in this context? The 2 other routines in the driver that actually do the unmasking stuff besides only calling this routine? Is it allowed to call it directly or should it always be done through a wrapper that does all these special things? Either way, only masking interrupts, and never unmasking it, is a bug. If interrupts come and go slow enough you never run into this problem, and if this type is not used often, nobody will notice it. Usually interrupts needs clearence of the source before the hardware can generate a new one. GPIO interrupts are different, they are generated whenever a IO-level changes, there is no acknowledge or clearing of the interupt needed. These types of interrupts are never 'pending' from hardware point of view. So, with these type of interrupts, a new one can occur while the interrupt handler has not handled the previous one yet, and therefor these interrupt-types will show this bug. > > Additionally, we have a patch in the real time tree called > "irq-mask-fix.patch" which adds an "unmask" to handle_simple_irq, but as > the note says we don't need flow control.. You mean the Montavista real time tree? Kind Regards, Remy - 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/