arm64/sme: Save and restore streaming mode over EFI runtime calls
authorMark Brown <broonie@kernel.org>
Tue, 19 Apr 2022 11:22:31 +0000 (12:22 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 22 Apr 2022 17:51:21 +0000 (18:51 +0100)
commite0838f6373e5cb72516fc4c26bba309097e2a80a
treedbd5716e33fbfbf7a53a01e6c83f449ae4ba58b8
parentd45d7ff7047f7f6c3221b0f028fade640812f931
arm64/sme: Save and restore streaming mode over EFI runtime calls

When saving and restoring the floating point state over an EFI runtime
call ensure that we handle streaming mode, only handling FFR if we are not
in streaming mode and ensuring that we are in normal mode over the call
into runtime services.

We currently assume that ZA will not be modified by runtime services, the
specification is not yet finalised so this may need updating if that
changes.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20220419112247.711548-24-broonie@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/fpsimd.c