From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 19058 invoked from network); 24 Mar 2000 15:52:18 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 24 Mar 2000 15:52:18 -0000 Received: from jurassic.park.msu.ru (jurassic.park.msu.ru [195.208.223.243]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id KAA07550 for ; Fri, 24 Mar 2000 10:52:15 -0500 Received: (from ink@localhost) by jurassic.park.msu.ru (8.9.3/8.9.3) id SAA07543; Fri, 24 Mar 2000 18:54:14 +0300 Date: Fri, 24 Mar 2000 18:54:14 +0300 From: Ivan Kokshaysky To: axp-list@redhat.com Cc: Richard Henderson Subject: Re: irq 7 on AlphaBIOS machines Message-ID: <20000324185414.A7532@jurassic.park.msu.ru> References: <20000322203113.A3330@jurassic.park.msu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from macro@ds2.pg.gda.pl on Wed, Mar 22, 2000 at 07:24:33PM +0100 On Wed, Mar 22, 2000 at 07:24:33PM +0100, Maciej W. Rozycki wrote: > It looks like a spurious 8259A interrupt detection, i.e. it checks if bit > 7 of ISR is set. An 8259A feeds a default IRQ 7 to the host whenever no > IRQ is active upon receipt of an interrupt acknowledge. No ISR bit is set > in this case. > Anyway, it won't detect spurious interrupts from PIC 2 (IRQ 15). > The code looks right provided the 8259A is configured to return the > contents of ISR (Interrupt Service Register) on read by default. It _is_ configured to IRR at least on lx164 and sx164, so that code is wrong. And a generic kernel code seems to be relying on the status read returning IRR - see isa_no_iack_sc_device_interrupt(). So I think the patch I posted is correct because - spurious interrupts should be harmless for current kernels - duplicating i386 code for spurious interrupt detection would buy nothing except the warning about broken hardware - it would be a pain checking such code on an each possible platform/firmware/kernel combination Ivan.