]> git.baikalelectronics.ru Git - kernel.git/commit
arm64/sme: Implement streaming SVE context switching
authorMark Brown <broonie@kernel.org>
Tue, 19 Apr 2022 11:22:22 +0000 (12:22 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 22 Apr 2022 17:51:00 +0000 (18:51 +0100)
commita0d8a3499d6073c91254c83572dd37497df4bee7
tree3078283fea103457faec6f0aa8caa1d611a04b93
parented1d4ab4801c3d6d59b1f33815d463bd3197a7c5
arm64/sme: Implement streaming SVE context switching

When in streaming mode we need to save and restore the streaming mode
SVE register state rather than the regular SVE register state. This uses
the streaming mode vector length and omits FFR but is otherwise identical,
if TIF_SVE is enabled when we are in streaming mode then streaming mode
takes precedence.

This does not handle use of streaming SVE state with KVM, ptrace or
signals. This will be updated in further patches.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20220419112247.711548-15-broonie@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/fpsimd.h
arch/arm64/include/asm/fpsimdmacros.h
arch/arm64/include/asm/processor.h
arch/arm64/kernel/entry-fpsimd.S
arch/arm64/kernel/fpsimd.c
arch/arm64/kvm/fpsimd.c