Commit 78c09c0f authored by Cristian Marussi's avatar Cristian Marussi Committed by Catalin Marinas

kselftest/arm64: signal: Skip SVE signal test if not enough VLs supported

On platform where SVE is supported but there are less than 2 VLs available
the signal SVE change test should be skipped instead of failing.
Reported-by: default avatarAndre Przywara <andre.przywara@arm.com>
Tested-by: default avatarAndre Przywara <andre.przywara@arm.com>
Cc: Mark Brown <broonie@kernel.org>
Signed-off-by: default avatarCristian Marussi <cristian.marussi@arm.com>
Reviewed-by: default avatarMark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220524103149.2802-1-cristian.marussi@arm.comSigned-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent 73e2d827
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
* supported and is expected to segfault. * supported and is expected to segfault.
*/ */
#include <kselftest.h>
#include <signal.h> #include <signal.h>
#include <ucontext.h> #include <ucontext.h>
#include <sys/prctl.h> #include <sys/prctl.h>
...@@ -40,6 +41,7 @@ static bool sve_get_vls(struct tdescr *td) ...@@ -40,6 +41,7 @@ static bool sve_get_vls(struct tdescr *td)
/* We need at least two VLs */ /* We need at least two VLs */
if (nvls < 2) { if (nvls < 2) {
fprintf(stderr, "Only %d VL supported\n", nvls); fprintf(stderr, "Only %d VL supported\n", nvls);
td->result = KSFT_SKIP;
return false; return false;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment