[PATCH v2] powerpc/32: Restore clearing of MSR[RI] at interrupt/syscall exit
Madhavan Srinivasan
maddy at linux.ibm.com
Fri Nov 21 13:53:45 AEDT 2025
On Thu, 11 Sep 2025 14:30:12 +0200, Christophe Leroy wrote:
> Commit 13799748b957 ("powerpc/64: use interrupt restart table to speed
> up return from interrupt") removed the inconditional clearing of
> MSR[RI] when returning from interrupt into kernel. But powerpc/32
> doesn't implement interrupt restart table hence still need MSR[RI]
> to be cleared.
>
> It could be added back in interrupt_exit_kernel_prepare() but it is
> easier and better to add it back in entry_32.S for following reasons:
> - Writing to MSR must be followed by a synchronising instruction
> - The smaller the non recoverable section is the better it is
>
> [...]
Applied to powerpc/next.
[1/1] powerpc/32: Restore clearing of MSR[RI] at interrupt/syscall exit
https://git.kernel.org/powerpc/c/2997876c4a1a5864baa13d7393c2b68cf5b51183
Thanks
More information about the Linuxppc-dev
mailing list