[PATCH v2 4/4] arm64/sme: Don't flush SVE register state when handling SME traps

Catalin Marinas catalin.marinas at arm.com
Wed Aug 17 07:28:19 PDT 2022


On Mon, Aug 15, 2022 at 02:28:34PM +0100, Mark Brown wrote:
> Currently as part of handling a SME access trap we flush the SVE register
> state. This is not needed and would corrupt register state if the task has
> access to the SVE registers already. For non-streaming mode accesses the
> required flushing will be done in the SVE access trap. For streaming
> mode SVE register accesses the architecture guarantees that the register
> state will be flushed when streaming mode is entered or exited so there is
> no need for us to do so. Simply remove the register initialisation.
> 
> Fixes: 8bd7f91c03d88 ("arm64/sme: Implement traps and syscall handling for SME")
> Signed-off-by: Mark Brown <broonie at kernel.org>

Reviewed-by: Catalin Marinas <catalin.marinas at arm.com>



More information about the linux-arm-kernel mailing list