kselftest/arm64: Add tests for SVE vector configuration
authorMark Brown <broonie@kernel.org>
Tue, 3 Aug 2021 14:04:49 +0000 (15:04 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 3 Aug 2021 15:20:05 +0000 (16:20 +0100)
commit95cf3f23877b682c56899aa34f9cdd2f910b8924
treeeedfb866a3813be2559042ae2644c9767437f686
parentb43ab36a6d86f6c693f5919ee2cf25c543446213
kselftest/arm64: Add tests for SVE vector configuration

We provide interfaces for configuring the SVE vector length seen by
processes using prctl and also via /proc for configuring the default
values. Provide tests that exercise all these interfaces and verify that
they take effect as expected, though at present no test fully enumerates
all the possible vector lengths.

A subset of this is already tested via sve-probe-vls but the /proc
interfaces are not currently covered at all.

In preparation for the forthcoming support for SME, the Scalable Matrix
Extension, which has separately but similarly configured vector lengths
which we expect to offer similar userspace interfaces for, all the actual
files and prctls used are parameterised and we don't validate that the
architectural minimum vector length is the minimum we see.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Dave Martin <Dave.Martin@arm.com>
Link: https://lore.kernel.org/r/20210803140450.46624-4-broonie@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/arm64/fp/.gitignore
tools/testing/selftests/arm64/fp/Makefile
tools/testing/selftests/arm64/fp/vec-syscfg.c [new file with mode: 0644]