* Solution for IRQ problems on 2nd Controller
@ 2000-01-03 19:53 Alois Fertl
0 siblings, 0 replies; only message in thread
From: Alois Fertl @ 2000-01-03 19:53 UTC (permalink / raw)
To: LinuxppcDev; +Cc: Cort Dougan
[-- Attachment #1: Type: text/plain, Size: 849 bytes --]
Some time ago there was a message on the list discussing problems
if more than one irq is pending from the second 8259. On the Blackhawk
I suffer this problem very badly, scsi, network and mouse are all via
the second controller. The problem is with 2.3.x kernels. 2.2 versions
had it fixed doing a loop until no more irqs are present on the second
controller.
The attached patch implements a workaround for the problem by disabling
all irqs from the second chip for a very short time
(in i8259_mask_and_ack_irq()) and than re-enabling the usual ones. Doing
so seems to re-issue the required edge on the line going to the first
controller.
It is probably nor the cleanest way of handling the problem but up
to now the one which solves the problem on my Blackhawk.
The patch is relative the the 2.3.35 version from cvs.on.openprojects.net
Alois.
[-- Attachment #2: i8259.patch --]
[-- Type: text/plain, Size: 1056 bytes --]
--- arch/ppc/kernel/i8259.c.dist Sat Jan 1 20:30:53 2000
+++ arch/ppc/kernel/i8259.c Mon Jan 3 20:17:00 2000
@@ -52,9 +52,10 @@
if (irq_nr > 7) {
cached_A1 |= 1 << (irq_nr-8);
inb(0xA1); /* DUMMY */
+ outb(0xff,0xA1);
outb(cached_A1,0xA1);
- outb(0x20,0xA0); /* Non-specific EOI */
- outb(0x20,0x20); /* Non-specific EOI to cascade */
+ outb(0x20,0xA0); /* Non-specific EOI to cascade */
+ outb(0x20,0x20); /* Non-specific EOI */
} else {
cached_21 |= 1 << irq_nr;
inb(0x21); /* DUMMY */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-01-03 19:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-01-03 19:53 Solution for IRQ problems on 2nd Controller Alois Fertl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).