Skip to content

Commit 95cf3f2

Browse files
brooniectmarinas
authored andcommitted
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 <[email protected]> Reviewed-by: Dave Martin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent b43ab36 commit 95cf3f2

File tree

3 files changed

+596
-1
lines changed

3 files changed

+596
-1
lines changed

tools/testing/selftests/arm64/fp/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ rdvl-sve
33
sve-probe-vls
44
sve-ptrace
55
sve-test
6+
vec-syscfg
67
vlset

tools/testing/selftests/arm64/fp/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0
22

33
CFLAGS += -I../../../../../usr/include/
4-
TEST_GEN_PROGS := sve-ptrace sve-probe-vls
4+
TEST_GEN_PROGS := sve-ptrace sve-probe-vls vec-syscfg
55
TEST_PROGS_EXTENDED := fpsimd-test fpsimd-stress \
66
rdvl-sve \
77
sve-test sve-stress \
@@ -16,6 +16,7 @@ sve-ptrace: sve-ptrace.o sve-ptrace-asm.o
1616
sve-probe-vls: sve-probe-vls.o rdvl.o
1717
sve-test: sve-test.o
1818
$(CC) -nostdlib $^ -o $@
19+
vec-syscfg: vec-syscfg.o rdvl.o
1920
vlset: vlset.o
2021

2122
include ../../lib.mk

0 commit comments

Comments
 (0)