[PATCH] kselftest/arm64: Include kernel mode NEON in fp-stress

Catalin Marinas catalin.marinas at arm.com
Wed Jun 12 09:08:28 PDT 2024


On Tue, 21 May 2024 19:18:26 +0100, Mark Brown wrote:
> Currently fp-stress only covers userspace use of floating point, it does
> not cover any kernel mode uses.  Since currently kernel mode floating
> point usage can't be preempted and there are explicit preemption points in
> the existing implementations this isn't so important for fp-stress but
> when we readd preemption it will be good to try to exercise it.
> 
> When the arm64 accelerated crypto operations are implemented we can
> relatively straightforwardly trigger kernel mode floating point usage by
> using the crypto userspace API to hash data, using the splice() support
> in an effort to minimise copying.  We use /proc/crypto to check which
> accelerated implementations are available, picking the first symmetric
> hash we find.  We run the kernel mode test unconditionally, replacing the
> second copy of the FPSIMD testcase for systems with FPSIMD only. If we
> don't think there are any suitable kernel mode implementations we fall back
> to running another copy of fpsimd-stress.
> 
> [...]

Applied to arm64 (for-next/kselftest), thanks!

[1/1] kselftest/arm64: Include kernel mode NEON in fp-stress
      https://git.kernel.org/arm64/c/d5859510d35d

-- 
Catalin




More information about the linux-arm-kernel mailing list