linux_old1/arch/m68k/mac
Finn Thain cd713ddc93 m68k: Mac nubus IRQ fixes (plan E)
Some Macs lack a slot interrupt enable register. So the existing code makes
disabled and unregistered slot IRQ lines outputs set high. This seems to work
on quadras, but does not work on genuine VIAs (perhaps the card still succeeds
in pulling the line low, or perhaps because this increases the settle time on
the port A input, meaning that the CA1 IRQ could fire before the slot line
reads active).

Because of this, the nubus_active flags were used to mask IRQs, which is
actually worse than the problem it tries to solve. Any interrupt masked by
nubus_active will remain asserted and prevent further transitions on CA1. And
so the nubus gets wedged regardless of hardware (emulated VIA ASIC, real VIA
chip or RBV).

The best solution to this hardware limitation of genuine VIAs is to disable the
umbrella SLOTS IRQ when disabling a slot on those machines. Unfortunately, this
means all slot IRQs get disabled when any slot IRQ is disabled. But it is only
a problem when there's more than 1 device using nubus interrupts.

Another potential problem for genuine VIAs is an unregistered nubus IRQ.
Eventually it will be possible to enable the CA1 interrupt by installing its
handler only _after_ all nubus drivers have loaded but _before_ the kernel
needs them, at which time this last problem can be fixed. For now it can be
worked around:

  - disable MacOS extensions
  - don't boot MacOS (use the Emile bootloader instead)
  - get the bootloaders to disable ROM drivers (Penguin does this for video
    cards already, don't know about Emile)
  - physically remove unsupported cards

Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-04 17:59:07 -07:00
..
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
baboon.c m68k: Mac IRQ prep 2007-05-04 17:59:07 -07:00
bootparse.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
config.c m68k: early parameter support 2007-05-04 17:59:06 -07:00
debug.c m68k: early parameter support 2007-05-04 17:59:06 -07:00
iop.c [PATCH] m68k pt_regs fixes 2006-10-07 10:51:14 -07:00
mac_ksyms.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mac_penguin.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
macboing.c [PATCH] timer initialization cleanup: DEFINE_TIMER 2005-09-09 14:03:48 -07:00
macints.c [PATCH] m68k pt_regs fixes 2006-10-07 10:51:14 -07:00
misc.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
oss.c m68k: Mac IRQ prep 2007-05-04 17:59:07 -07:00
psc.c m68k: Mac IRQ prep 2007-05-04 17:59:07 -07:00
via.c m68k: Mac nubus IRQ fixes (plan E) 2007-05-04 17:59:07 -07:00