Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762400AbXK2PeV (ORCPT ); Thu, 29 Nov 2007 10:34:21 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756230AbXK2PeF (ORCPT ); Thu, 29 Nov 2007 10:34:05 -0500 Received: from rv-out-0910.google.com ([209.85.198.185]:15138 "EHLO rv-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755115AbXK2PeC (ORCPT ); Thu, 29 Nov 2007 10:34:02 -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=jWpXJciGz3fqlPQS+XeMKO9oWPBSksd01SHZP05QlWZY6Vp+2jIUtVhdvZgJobh6ZZxb9rBFLeOerztoCFZ7bMVckZCmxfpSRGcMm23yN4e5V5HallX/2wObyebDH5TYXczHz9Evl7mfuHRc7swxd9CYW9rRg/9Fq2F9dX7C7Fc= Message-ID: <3efb10970711290733m59e30b5eyf96b914d63a72058@mail.gmail.com> Date: Thu, 29 Nov 2007 16:33:39 +0100 From: "Remy Bohmer" To: "Russell King - ARM Linux" Subject: Re: [PATCH PREEMPT_RT]: On AT91 ARM: GPIO Interrupt handling can/will stall forever Cc: "Steven Rostedt" , "Daniel Walker" , RT , linux-kernel , "ARM Linux Mailing List" , "Thomas Gleixner" , "Ingo Molnar" In-Reply-To: <20071129142920.GB23845@flint.arm.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3efb10970711280638l3f57104y8cf9f2e58235c3@mail.gmail.com> <20071128200550.GA3494@flint.arm.linux.org.uk> <3efb10970711290214v37d85a27k9a84876d9099d7c5@mail.gmail.com> <20071129102506.GB22793@flint.arm.linux.org.uk> <3efb10970711290327s3c60da1ey3b6fae738090ca5@mail.gmail.com> <20071129133604.GA23845@flint.arm.linux.org.uk> <3efb10970711290618v2bd93edfrbc53d9df4b73b33b@mail.gmail.com> <20071129142920.GB23845@flint.arm.linux.org.uk> X-Google-Sender-Auth: dc90ff9b00866c52 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1436 Lines: 39 Hello Russell, > While I realise that, I'm telling you that the _problem_ is being > caused by the wrong handler being used. Okay, I believe you... (someone told me once, Russell is right, and if you do not believe him, he is still right ;-) > SA1100 and PXA have exactly the same setup. They use the correct > handler. Why is AT91 special? This remark is what convinced me :-)) I changed the interrupt handler from the simple_irq to the edge_irq, and it works...!! (I added a noop routine for that .ack part, because there is no ack) I believe I was too focussed on the masking bug in the RT kernel on the simple_irq() that I did not see that for the AT91 series the edge type interrupt handler also works... (even better...) What I thought was 1 single bug in the RT-kernel turned out to be a number of things together that aren't correct, even for mainline. So, to come to a conclusion: The masking bug in RT is still there in the simple_irq path, and masking has to be removed from the simple_irq code. Also for mainline. AT91 can live without simple_irq. I think we are in sync again... I will post a patch for the AT91 later on, after some more testing. 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/