[PATCH] arm64: suspend: Save and restore TPIDR2_EL0 across CPU suspend
Mark Brown
broonie at kernel.org
Tue Nov 3 05:56:31 PST 2026
On Mon, Nov 02, 2026 at 11:48:13PM +0000, Wei Wang wrote:
> On systems with FEAT_SME, TPIDR2_EL0 is part of userspace thread state:
> the AAPCS64 SME ABI uses it as the ZA lazy-save pointer, and the kernel
> context-switches it eagerly in tls_thread_switch(). While a task is
> running, the live register is the only copy of its value.
Thanks for catching this:
Reviewed-by: Mark Brown <broonie at kernel.org>
but I think we're missing some other registers, I made the same mistake
for GCS with GCSPR_EL0 and GCSCRE0_EL1 and I'm not seeing where POR_EL0
is handled either but possibly it's somewhere I didn't spot. I can look
into those incrementally once this gets applied (or if you do a v2 and
roll them in that'd also be great!).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20261103/b0d4a107/attachment.sig>
More information about the linux-arm-kernel
mailing list