powerpc/embedded6xx/hlwd-pic: Prevent interrupts from being handled by Starlet
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>
Thu, 10 May 2018 21:59:19 +0000 (23:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Aug 2018 05:50:34 +0000 (07:50 +0200)
commit83eef34c65f179af463924e34fc687426ac2f705
tree9ce2bf0ebd7ed4515d7af85a5b3fbf129a3af229
parentb42848b2a819ae2fd310080bfb32221fde9e084d
powerpc/embedded6xx/hlwd-pic: Prevent interrupts from being handled by Starlet

[ Upstream commit 9dcb3df4281876731e4e8bff7940514d72375154 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/platforms/embedded6xx/hlwd-pic.c