Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030417AbVIAVrW (ORCPT ); Thu, 1 Sep 2005 17:47:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030419AbVIAVrW (ORCPT ); Thu, 1 Sep 2005 17:47:22 -0400 Received: from fed1rmmtao05.cox.net ([68.230.241.34]:40151 "EHLO fed1rmmtao05.cox.net") by vger.kernel.org with ESMTP id S1030417AbVIAVrV (ORCPT ); Thu, 1 Sep 2005 17:47:21 -0400 Date: Thu, 1 Sep 2005 14:47:20 -0700 From: Tom Rini To: Alan Cox Cc: Kernel Mailing List , Andrew Morton , Russell King , Bjorn Helgaas Subject: Re: [PATCH 1/1] 8250_kgdb driver reworked Message-ID: <20050901214720.GU3966@smtp.west.cox.net> References: <20050901190251.GS3966@smtp.west.cox.net> <1125611874.15768.79.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1125611874.15768.79.camel@localhost.localdomain> User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1271 Lines: 42 On Thu, Sep 01, 2005 at 10:57:54PM +0100, Alan Cox wrote: > > +static irqreturn_t > > +kgdb8250_interrupt(int irq, void *dev_id, struct pt_regs *regs) > > +{ > > + char iir; > > + > > + if (irq != KGDB8250_IRQ) > > + return IRQ_NONE; > > How can this occur - you gave the IRQ number in the register_irq. WHy > test for it, and if it occurs why not BUG() Early sanity tests, dropped. > > + /* > > + * If there is some other CPU in KGDB then this is a > > + * spurious interrupt. so return without even checking a byte > > + */ > > + if (atomic_read(&debugger_active)) > > + return IRQ_NONE; > > + > > Shared IRQ -> hung box. Can you elaborate a bit more please? When we're actually in KGDB and working on stuff we're polling so it's really just the GDB-is-interrupting case. > Also lose the ugly confusing macros like CURRENTPORT please to follow > kernel style better. In fact why not keep a pointer to the 'current' > uart to get tighter code too ? Sure, why not. -- Tom Rini http://gate.crashing.org/~trini/ - 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/