Commit 1d038e80 authored by Ard Biesheuvel's avatar Ard Biesheuvel Committed by Catalin Marinas
Browse files

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: default avatarArd Biesheuvel <ardb@kernel.org>
Acked-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent a2860501
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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: