]> www.infradead.org Git - users/jedix/linux-maple.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)
commitaf7167d6d2675f3343eff3ad6c9b4a8e30122e2c
tree3078283fea103457faec6f0aa8caa1d611a04b93
parentb40c559b45bec736f588c57dd5be967fe573058b
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