arm64/sve: Skip flushing Z registers with 128 bit vectors
authorMark Brown <broonie@kernel.org>
Wed, 12 May 2021 15:11:31 +0000 (16:11 +0100)
committerWill Deacon <will@kernel.org>
Wed, 26 May 2021 19:04:28 +0000 (20:04 +0100)
commitad4711f962e08eff8d6e9b03f9670b1af6ea9395
treebb1979f64369118ce873375598f7f0bfc3115b86
parentc9f6890bca111a879a8af1f2390ac49cf05b11df
arm64/sve: Skip flushing Z registers with 128 bit vectors

When the SVE vector length is 128 bits then there are no bits in the Z
registers which are not shared with the V registers so we can skip them
when zeroing state not shared with FPSIMD, this results in a minor
performance improvement.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Dave Martin <Dave.Martin@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20210512151131.27877-4-broonie@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/fpsimd.h
arch/arm64/kernel/entry-fpsimd.S
arch/arm64/kernel/fpsimd.c