Skip to content

kselftest/arm64: vec-syscfg exit status and VL inheritance coverage

Abdalla Eldoumani linux-arm-kernel linux-kselftest lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2kselftest/arm64: Report test failures in vec-syscfg's exit statustools/testing/selftests/arm64/fp/vec-syscfg.c+1 -11 reply
2/2kselftest/arm64: Check that PR_SVE_VL_INHERIT survives a second exectools/testing/selftests/arm64/fp/TODO tools/testing/selftests/arm64/fp/vec-syscfg.c+59 -40 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchMark Brown
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] kselftest/arm64: vec-syscfg exit status and VL inheritance coverage

From: Abdalla Eldoumani <[email protected]>

Two small changes to the vector length configuration test.

The first makes vec-syscfg report failures through its exit status. It currently always exits 0, so a kernel that fails its checks still shows as passing in the kselftest runner.

The second implements the "Test PR_SVE_VL_INHERIT after a double fork" item from the fp TODO list by also checking the VL in a grandchild, two fork() and exec() generations down.

Tested under QEMU (-cpu max, -cpu max,sme=off and -cpu cortex-a57) on mainline (58161ead2, after v7.3-rc7). To check that the new test can fail, it was also run on a kernel modified to clear the inherit flag on exec(): the existing check passed, the new check failed for SVE and SME, and vec-syscfg exited 1.

Assisted-by LLM

Abdalla Eldoumani (2):
kselftest/arm64: Report test failures in vec-syscfg's exit status kselftest/arm64: Check that PR_SVE_VL_INHERIT survives a second exec

 tools/testing/selftests/arm64/fp/TODO         |  1 -
 tools/testing/selftests/arm64/fp/vec-syscfg.c | 64 +++++++++++++++++--
 2 files changed, 60 insertions(+), 5 deletions(-)

base-commit: 58161ead29e50d70a317ea26b472e0c7508e69da

Signature · 1 line
2.49.0.windows.1