diff options
author | Suzuki K Poulose <suzuki.poulose@arm.com> | 2020-01-14 02:30:18 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2020-01-14 20:11:21 +0300 |
commit | 0cd82feb017e282b29e725801b7c90da69316734 (patch) | |
tree | 8fa671cbbfc5b22230e56e80c0b23de3b6753455 /arch/arm64/kernel/cpufeature.c | |
parent | b51c6ac220f77eb246e940442d970b4065c197b0 (diff) | |
download | linux-0cd82feb017e282b29e725801b7c90da69316734.tar.xz |
arm64: fpsimd: Make sure SVE setup is complete before SIMD is used
In-kernel users of NEON rely on may_use_simd() to check if the SIMD
can be used. However, we must initialize the SVE before SIMD can
be used. Add a sanity check to make sure that we have completed the
SVE setup before anyone uses the SIMD.
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Will Deacon <will@kernel.org>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/kernel/cpufeature.c')
0 files changed, 0 insertions, 0 deletions