From: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
To: axp-list@redhat.com
Cc: Richard Henderson <rth@twiddle.net>
Subject: Re: irq 7 on AlphaBIOS machines
Date: Fri, 24 Mar 2000 18:54:14 +0300 [thread overview]
Message-ID: <20000324185414.A7532@jurassic.park.msu.ru> (raw)
In-Reply-To: <Pine.GSO.3.96.1000322190327.12978G-100000@delta.ds2.pg.gda.pl>; 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.
next prev parent reply other threads:[~2000-03-24 15:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-03-22 17:31 irq 7 on AlphaBIOS machines Ivan Kokshaysky
2000-03-22 18:24 ` Maciej W. Rozycki
2000-03-24 15:54 ` Ivan Kokshaysky [this message]
2000-03-24 18:31 ` Maciej W. Rozycki
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox