]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64: interrupt soft-enable race fix
authorNicholas Piggin <npiggin@gmail.com>
Thu, 17 Jun 2021 15:51:09 +0000 (01:51 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 24 Jun 2021 14:06:56 +0000 (00:06 +1000)
commit21c84d9692a8787aa96c54b346af3dfeadcd3bc0
treec7f75465c50546df29531924bd0e993bd5e62e83
parentb1398641437b82e71627e5766946ebe2d211c53d
powerpc/64: interrupt soft-enable race fix

Prevent interrupt restore from allowing racing hard interrupts going
ahead of previous soft-pending ones, by using the soft-masked restart
handler to allow a store to clear the soft-mask while knowing nothing
is soft-pending.

This probably doesn't matter much in practice, but it's a simple
demonstrator / test case to exercise the restart table logic.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210617155116.2167984-11-npiggin@gmail.com
arch/powerpc/kernel/irq.c