diff options
| author | Ard Biesheuvel <ardb@kernel.org> | 2025-10-15 22:56:38 +0200 |
|---|---|---|
| committer | Catalin Marinas <catalin.marinas@arm.com> | 2025-11-11 18:59:22 +0000 |
| commit | 1d038e801833f6dcfd4b18d59f96eca5a963a816 (patch) | |
| tree | 4910caac173e0aaa1575aaf92e4826bcf8b7025d | |
| parent | a2860501203cf7a2116adf3bb4e4c456c5750872 (diff) | |
arm64/fpsimd: Don't warn when EFI execution context is preemptible
Kernel mode FP/SIMD no longer requires preemption to be disabled, so
only warn on uses of FP/SIMD from preemptible context if the fallback
path is taken for cases where kernel mode NEON would not be allowed
otherwise.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
| -rw-r--r-- | arch/arm64/kernel/fpsimd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm64/kernel/fpsimd.c b/arch/arm64/kernel/fpsimd.c index e3f8f51748bc..3d848c89604e 100644 --- a/arch/arm64/kernel/fpsimd.c +++ b/arch/arm64/kernel/fpsimd.c @@ -1934,11 +1934,11 @@ void __efi_fpsimd_begin(void) if (!system_supports_fpsimd()) return; - WARN_ON(preemptible()); - if (may_use_simd()) { kernel_neon_begin(); } else { + WARN_ON(preemptible()); + /* * If !efi_sve_state, SVE can't be in use yet and doesn't need * preserving: |
