]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/rtas: enture rtas_call is called with MMU enabled
authorNicholas Piggin <npiggin@gmail.com>
Tue, 8 Mar 2022 13:50:46 +0000 (23:50 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 19 May 2022 13:11:27 +0000 (23:11 +1000)
commit4d44b1dbb4b35013315f2fd71836d55ea7e5383b
treece80ffed707d98661c28b31b4be35a6226d2cf84
parent0aee23d0ad9905583d8bdd56ff5b2fd6d8418f33
powerpc/rtas: enture rtas_call is called with MMU enabled

rtas_call must not be called with the MMU disabled because in case
of rtas error, log_error is called which requires MMU enabled. Add
a test and warning for this.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Laurent Dufour <ldufour@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220308135047.478297-14-npiggin@gmail.com
arch/powerpc/kernel/rtas.c