All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kselftest/arm64: signal: Skip SVE signal test if not enough VLs supported
@ 2022-05-24 10:31 ` Cristian Marussi
  0 siblings, 0 replies; 6+ messages in thread
From: Cristian Marussi @ 2022-05-24 10:31 UTC (permalink / raw)
  To: linux-kselftest
  Cc: linux-kernel, linux-arm-kernel, skhan, Cristian Marussi,
	Andre Przywara, Mark Brown

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: Andre Przywara <andre.przywara@arm.com>
Tested-by: Andre Przywara <andre.przywara@arm.com>
Cc: Mark Brown <broonie@kernel.org>
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
---
 .../arm64/signal/testcases/fake_sigreturn_sve_change_vl.c       | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/testing/selftests/arm64/signal/testcases/fake_sigreturn_sve_change_vl.c b/tools/testing/selftests/arm64/signal/testcases/fake_sigreturn_sve_change_vl.c
index bb50b5adbf10..915821375b0a 100644
--- a/tools/testing/selftests/arm64/signal/testcases/fake_sigreturn_sve_change_vl.c
+++ b/tools/testing/selftests/arm64/signal/testcases/fake_sigreturn_sve_change_vl.c
@@ -6,6 +6,7 @@
  * supported and is expected to segfault.
  */
 
+#include <kselftest.h>
 #include <signal.h>
 #include <ucontext.h>
 #include <sys/prctl.h>
@@ -40,6 +41,7 @@ static bool sve_get_vls(struct tdescr *td)
 	/* We need at least two VLs */
 	if (nvls < 2) {
 		fprintf(stderr, "Only %d VL supported\n", nvls);
+		td->result = KSFT_SKIP;
 		return false;
 	}
 
-- 
2.36.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH] kselftest/arm64: signal: Skip SVE signal test if not enough VLs supported
@ 2022-05-24 10:31 ` Cristian Marussi
  0 siblings, 0 replies; 6+ messages in thread
From: Cristian Marussi @ 2022-05-24 10:31 UTC (permalink / raw)
  To: linux-kselftest
  Cc: linux-kernel, linux-arm-kernel, skhan, Cristian Marussi,
	Andre Przywara, Mark Brown

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: Andre Przywara <andre.przywara@arm.com>
Tested-by: Andre Przywara <andre.przywara@arm.com>
Cc: Mark Brown <broonie@kernel.org>
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
---
 .../arm64/signal/testcases/fake_sigreturn_sve_change_vl.c       | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/testing/selftests/arm64/signal/testcases/fake_sigreturn_sve_change_vl.c b/tools/testing/selftests/arm64/signal/testcases/fake_sigreturn_sve_change_vl.c
index bb50b5adbf10..915821375b0a 100644
--- a/tools/testing/selftests/arm64/signal/testcases/fake_sigreturn_sve_change_vl.c
+++ b/tools/testing/selftests/arm64/signal/testcases/fake_sigreturn_sve_change_vl.c
@@ -6,6 +6,7 @@
  * supported and is expected to segfault.
  */
 
+#include <kselftest.h>
 #include <signal.h>
 #include <ucontext.h>
 #include <sys/prctl.h>
@@ -40,6 +41,7 @@ static bool sve_get_vls(struct tdescr *td)
 	/* We need at least two VLs */
 	if (nvls < 2) {
 		fprintf(stderr, "Only %d VL supported\n", nvls);
+		td->result = KSFT_SKIP;
 		return false;
 	}
 
-- 
2.36.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] kselftest/arm64: signal: Skip SVE signal test if not enough VLs supported
  2022-05-24 10:31 ` Cristian Marussi
@ 2022-05-24 10:43   ` Mark Brown
  -1 siblings, 0 replies; 6+ messages in thread
From: Mark Brown @ 2022-05-24 10:43 UTC (permalink / raw)
  To: Cristian Marussi
  Cc: linux-kselftest, linux-kernel, linux-arm-kernel, skhan, Andre Przywara

[-- Attachment #1: Type: text/plain, Size: 256 bytes --]

On Tue, May 24, 2022 at 11:31:49AM +0100, Cristian Marussi wrote:
> 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.

Reviewed-by: Mark Brown <broonie@kernel.org>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 484 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] kselftest/arm64: signal: Skip SVE signal test if not enough VLs supported
@ 2022-05-24 10:43   ` Mark Brown
  0 siblings, 0 replies; 6+ messages in thread
From: Mark Brown @ 2022-05-24 10:43 UTC (permalink / raw)
  To: Cristian Marussi
  Cc: linux-kselftest, linux-kernel, linux-arm-kernel, skhan, Andre Przywara


[-- Attachment #1.1: Type: text/plain, Size: 256 bytes --]

On Tue, May 24, 2022 at 11:31:49AM +0100, Cristian Marussi wrote:
> 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.

Reviewed-by: Mark Brown <broonie@kernel.org>

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 484 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] kselftest/arm64: signal: Skip SVE signal test if not enough VLs supported
  2022-05-24 10:31 ` Cristian Marussi
@ 2022-06-02 19:41   ` Catalin Marinas
  -1 siblings, 0 replies; 6+ messages in thread
From: Catalin Marinas @ 2022-06-02 19:41 UTC (permalink / raw)
  To: linux-kselftest, Cristian Marussi
  Cc: Will Deacon, skhan, linux-arm-kernel, linux-kernel,
	Andre Przywara, Mark Brown

On Tue, 24 May 2022 11:31:49 +0100, Cristian Marussi wrote:
> 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.
> 
> 

Applied to arm64 (for-next/core), thanks!

[1/1] kselftest/arm64: signal: Skip SVE signal test if not enough VLs supported
      https://git.kernel.org/arm64/c/78c09c0f4df8

-- 
Catalin


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] kselftest/arm64: signal: Skip SVE signal test if not enough VLs supported
@ 2022-06-02 19:41   ` Catalin Marinas
  0 siblings, 0 replies; 6+ messages in thread
From: Catalin Marinas @ 2022-06-02 19:41 UTC (permalink / raw)
  To: linux-kselftest, Cristian Marussi
  Cc: Will Deacon, skhan, linux-arm-kernel, linux-kernel,
	Andre Przywara, Mark Brown

On Tue, 24 May 2022 11:31:49 +0100, Cristian Marussi wrote:
> 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.
> 
> 

Applied to arm64 (for-next/core), thanks!

[1/1] kselftest/arm64: signal: Skip SVE signal test if not enough VLs supported
      https://git.kernel.org/arm64/c/78c09c0f4df8

-- 
Catalin


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-06-02 19:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-24 10:31 [PATCH] kselftest/arm64: signal: Skip SVE signal test if not enough VLs supported Cristian Marussi
2022-05-24 10:31 ` Cristian Marussi
2022-05-24 10:43 ` Mark Brown
2022-05-24 10:43   ` Mark Brown
2022-06-02 19:41 ` Catalin Marinas
2022-06-02 19:41   ` Catalin Marinas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.