Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: David Mosberger-Tang <davidm@AZStarNet.com>
Subject: ncr810 disconnect fix?
Date: Sat, 29 Jun 1996 21:08:35 -0700	[thread overview]
Message-ID: <199606300408.VAA07137@panda.azstarnet.com> (raw)

Well, for those of you who don't want to switch to a whole new driver
because of the ncr810 DISCONNECT bug, here is something to try: just
delete the following lines in linux/arch/alpha/kernel/irq.c:device_interrupt:

	if (action) {
		/* quick interrupts get executed with no extra overhead */
		if (action->flags & SA_INTERRUPT) {
			while (action) {
				action->handler(irq, action->dev_id, regs);
				action = action->next;
			}
			ack_irq(ack);
			return;
		}
	}

I have tried this on a Cabriolet with disconnect enabled and have not
been able to crash the machine anymore.  Not proof positive, but it
looks good.  Could other people try this and let me know whether it
works?  In particular hearing from people with SCSI tape drives would
be interesting.

Linus found this bug while we were discussing how to best fix a bug in
_another_ driver (qlogicisp1020).  Turns out that both the Alpha
version and the x86 version had seemingly sane interpretation of what
the SA_INTERRUPT flag meant.  Problem is: the two interpretations were
different!  Overall, this had the effect of leading to race conditions
in certain drivers (notably the qlogicisp).  Now that everything is in
sync, it works much better.  It also means that for the Alpha, the
setting of SA_INTERRUPT has no effect whatsoever.

	--david

PS: I have some other (cleanup) patches for irq.c, so if you plan on
    changing that code very soon, give a holler.

             reply	other threads:[~1996-06-30  4:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-06-30  4:08 David Mosberger-Tang [this message]
1996-06-30 15:55 ` ncr810 disconnect fix? Gerard Roudier
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