[PATCH v2 2/4] arm64: fpsimd: Preserve/restore kernel mode NEON at context switch

Mark Brown broonie at kernel.org
Fri Nov 24 04:28:32 PST 2023


On Thu, Nov 23, 2023 at 06:44:36PM +0100, Ard Biesheuvel wrote:
> From: Ard Biesheuvel <ardb at kernel.org>
> 
> Currently, the FPSIMD register file is not preserved and restored along
> with the general registers on exception entry/exit or context switch.
> For this reason, we disable preemption when enabling FPSIMD for kernel
> mode use in task context, and suspend the processing of softirqs so that
> there are no concurrent uses in the kernel. (Kernel mode FPSIMD may not
> be used at all in other contexts).

With Eric's comment addressed:

Reviewed-by: Mark Brown <broonie at kernel.org>
-------------- 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/20231124/7909a222/attachment.sig>


More information about the linux-arm-kernel mailing list