]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/cell/axon-msi: Fix MSI after kexec
authorArnd Bergmann <arnd@arndb.de>
Fri, 12 Dec 2008 09:19:50 +0000 (09:19 +0000)
committerPaul Mackerras <paulus@samba.org>
Tue, 16 Dec 2008 02:48:18 +0000 (13:48 +1100)
commitcdb7fbce561f14adfdfcd01324e19c8d6863ff63
tree2bbc2c95e49687be2f499096ccc7c94ddecb823b
parent00867a10ccbb4cafee648177c136d7391159aebb
powerpc/cell/axon-msi: Fix MSI after kexec

Commit 9b8b0e81c 'powerpc/cell/axon-msi: Retry on missing interrupt'
has turned a rare failure to kexec on QS22 into a reproducible
error, which we have now analysed.

The problem is that after a kexec, the MSIC hardware still points
into the middle of the old ring buffer.  We set up the ring buffer
during reboot, but not the offset into it.  On older kernels, this
would cause a storm of thousands of spurious interrupts after a
kexec, which would most of the time get dropped silently.

With the new code, we time out on each interrupt, waiting for
it to become valid.  If more interrupts come in that we time
out on, this goes on indefinitely, which eventually leads to
a hard crash.

The solution in this commit is to read the current offset from
the MSIC when reinitializing it.  This now works correctly, as
expected.

Reported-by: Dirk Herrendoerfer <d.herrendoerfer@de.ibm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/axon_msi.c