[PATCH 12/18] arm64: fpsimd: Move fpsimd save/restore inline
Mark Brown
broonie at kernel.org
Tue May 26 09:44:26 PDT 2026
On Thu, May 21, 2026 at 02:25:50PM +0100, Mark Rutland wrote:
> Note that I've used the SVE sequence for restoring FPCR, which uses an
> unconditional write to FPCR. The plain FPSIMD assembly sequence used a
> conditional write to FPCR since 2014 in commit:
> 5959e25729a5 ("arm64: fpsimd: avoid restoring fpcr if the contents haven't change")
> ... but this was not followed for the SVE assembly implemented in 2017
> in commit:
> 1fc5dce78ad1 ("arm64/sve: Low-level SVE architectural state manipulation functions")
> ... so I've assumed that this doesn't actually matter in practice, and
> I've erred in favour of the simpler sequence.
As I said on the earlier patch I'm a bit nervous about assuming this
doesn't matter for anyone without verifying (though I wouldn't be
surprised if that turned out to be the case) but that's internal to that
patch and this is obviously a great improvement so:
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/20260526/8e858e8c/attachment-0001.sig>
More information about the linux-arm-kernel
mailing list