]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0aee23d0ad9905583d8bdd56ff5b2fd6d8418f33
tree966be50851bfc85c523b452dcf867480e2e2d849
parent69ed910124a6cdc13104a2c881a6e22b6f1f54a6
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