powerpc/rtas: Serialize firmware activation sequences
authorNathan Lynch <nathanl@linux.ibm.com>
Tue, 12 Dec 2023 17:01:54 +0000 (11:01 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 13 Dec 2023 10:38:20 +0000 (21:38 +1100)
commitdc7637c402b90a197d3f21a3d78f2b00b67ea22a
treea303e55f764c0c57591b8cef049465b6236df4ce
parentadf7a019e5f82607fc0f0079926d0178afe8f4ef
powerpc/rtas: Serialize firmware activation sequences

Use rtas_ibm_activate_firmware_lock to prevent interleaving call
sequences of the ibm,activate-firmware RTAS function, which typically
requires multiple calls to complete the update. While the spec does
not specifically prohibit interleaved sequences, there's almost
certainly no advantage to allowing them.

Reviewed-by: "Aneesh Kumar K.V (IBM)" <aneesh.kumar@kernel.org>
Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231212-papr-sys_rtas-vs-lockdown-v6-7-e9eafd0c8c6c@linux.ibm.com
arch/powerpc/kernel/rtas.c