[PATCH 04/14] arm64/fpsimd: Remove redundant SVE trap manipulation

Mark Brown broonie at kernel.org
Fri Apr 4 11:16:33 PDT 2025


On Fri, Apr 04, 2025 at 06:44:25PM +0100, Mark Rutland wrote:

> All calls to task_fpsimd_load() are followed by a call to
> fpsimd_bind_task_to_cpu(), where the latter configures traps for SVE and
> SME dependent upon the current values of TIF_SVE and TIF_SME, overriding
> any trap configuration performed by task_fpsimd_load().

> The calls to sve_user_{enable,disable}() calls in task_fpsimd_load()
> have been redundant (though benign) since they were introduced in
> commit:

>   a0136be443d51803 ("arm64/fpsimd: Load FP state based on recorded data type")

> Remove the unnecessary and confusing SVE trap manipulation.

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/20250404/5cbb2101/attachment.sig>


More information about the linux-arm-kernel mailing list