powerpc/rtas: Leave MSR[RI] enabled over RTAS call
authorNicholas Piggin <npiggin@gmail.com>
Tue, 8 Mar 2022 13:50:42 +0000 (23:50 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 19 May 2022 13:11:27 +0000 (23:11 +1000)
commit014b2e896cc8445fcc04636e69bf5f9e24281daa
tree966be50851bfc85c523b452dcf867480e2e2d849
parent5c86bd02b3c3ef68a109fa7e690ad62d3091f6d4
powerpc/rtas: Leave MSR[RI] enabled over RTAS call

PAPR specifies that RTAS may be called with MSR[RI] enabled if the
calling context is recoverable, and RTAS will manage RI as necessary.
Call the rtas entry point with RI enabled, and add a check to ensure
the caller has RI enabled.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220308135047.478297-10-npiggin@gmail.com
arch/powerpc/kernel/rtas_entry.S