2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-06 20:53:54 +08:00
linux-next/arch/powerpc/platforms/embedded6xx
Jonathan Neuschäfer 9dcb3df428 powerpc/embedded6xx/hlwd-pic: Prevent interrupts from being handled by Starlet
The interrupt controller inside the Wii's Hollywood chip is connected to
two masters, the "Broadway" PowerPC and the "Starlet" ARM926, each with
their own interrupt status and mask registers.

When booting the Wii with mini[1], interrupts from the SD card
controller (IRQ 7) are handled by the ARM, because mini provides SD
access over IPC. Linux however can't currently use or disable this IPC
service, so both sides try to handle IRQ 7 without coordination.

Let's instead make sure that all interrupts that are unmasked on the PPC
side are masked on the ARM side; this will also make sure that Linux can
properly talk to the SD card controller (and potentially other devices).

If access to a device through IPC is desired in the future, interrupts
from that device should not be handled by Linux directly.

[1]: https://github.com/lewurm/mini

Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2018-05-15 22:34:41 +10:00
..
c2k.c powerpc: Get rid of ppc_md.init_early() 2016-07-21 19:07:26 +10:00
flipper-pic.c powerpc/embedded6xx/flipper-pic: Don't match all IRQ domains 2018-05-15 22:34:26 +10:00
flipper-pic.h powerpc: gamecube/wii: flipper interrupt controller support 2009-12-12 22:24:28 -07:00
gamecube.c powerpc: Get rid of ppc_md.init_early() 2016-07-21 19:07:26 +10:00
hlwd-pic.c powerpc/embedded6xx/hlwd-pic: Prevent interrupts from being handled by Starlet 2018-05-15 22:34:41 +10:00
hlwd-pic.h powerpc: wii: hollywood interrupt controller support 2009-12-12 22:24:30 -07:00
holly.c powerpc: Add support for relative exception tables 2016-11-14 11:11:51 +11:00
Kconfig License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
linkstation.c powerpc: Convert to using %pOF instead of full_name 2017-08-23 22:27:04 +10:00
ls_uart.c [POWERPC] 82xx and embedded6xx: Use machine_*_initcall() hooks in platform code 2008-01-28 08:30:41 -06:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mpc10x.h powerpc32: remove ioremap_base 2016-03-11 17:18:02 -06:00
mpc7448_hpc2.c powerpc: Add support for relative exception tables 2016-11-14 11:11:51 +11:00
mvme5100.c powerpc: Convert to using %pOF instead of full_name 2017-08-23 22:27:04 +10:00
storcenter.c powerpc: Convert to using %pOF instead of full_name 2017-08-23 22:27:04 +10:00
usbgecko_udbg.c powerpc/embedded6xx: Make functions flipper_pic_init() & ug_udbg_putc() static 2018-03-13 15:50:34 +11:00
usbgecko_udbg.h powerpc: gamecube/wii: early debugging using usbgecko 2009-12-12 22:24:31 -07:00
wii.c powerpc/wii: Don't rely on the reserved memory hack 2018-04-01 00:47:43 +11:00