kselftest/arm64: Size sycall-abi buffers for the actual maximum VL
authorMark Brown <broonie@kernel.org>
Thu, 10 Aug 2023 11:39:19 +0000 (12:39 +0100)
committerWill Deacon <will@kernel.org>
Fri, 11 Aug 2023 11:24:51 +0000 (12:24 +0100)
commit358b763ee64b11f45287c286e1f6145729ed49ab
tree8fadbb28992eba88a4b622ca3e30b76da3afd906
parent82e7882b141c177b1b09ae66e1b2ae791a9a3918
kselftest/arm64: Size sycall-abi buffers for the actual maximum VL

Our ABI opts to provide future proofing by defining a much larger
SVE_VQ_MAX than the architecture actually supports.  Since we use
this define to control the size of our vector data buffers this results
in a lot of overhead when we initialise which can be a very noticable
problem in emulation, we fill buffers that are orders of magnitude
larger than we will ever actually use even with virtual platforms that
provide the full range of architecturally supported vector lengths.

Define and use the actual architecture maximum to mitigate this.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230810-arm64-syscall-abi-perf-v1-1-6a0d7656359c@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
tools/testing/selftests/arm64/abi/syscall-abi.c