[PATCH] powerpc/mpic: Fix MPIC_BROKEN_REGREAD on non broken MPICs

Olof Johansson olof at lixom.net
Mon Jul 20 01:08:17 EST 2009


On Mon, Jul 06, 2009 at 12:08:52PM +1000, Michael Ellerman wrote:
> The workaround enabled by CONFIG_MPIC_BROKEN_REGREAD does not work
> on non-broken MPICs. The symptom is no interrupts being received.
> 
> The fix is twofold. Firstly the code was broken for multiple isus,
> we need to index into the shadow array with the src_no, not the idx.
> Secondly, we always do the read, but only use the VECPRI_MASK and
> VECPRI_ACTIVITY bits from the hardware, the rest of "val" comes
> from the shadow.
> 
> Signed-off-by: Michael Ellerman <michael at ellerman.id.au>

Signed-off-by: Olof Johansson <olof at lixom.net>

Tested OK here on an electra. Thanks for fixing this!


-Olof



More information about the Linuxppc-dev mailing list