diff mbox series

kselftest/arm64: Enumerate SME rather than SVE vector lengths for za_regs

Message ID 20220804182606.255728-1-broonie@kernel.org (mailing list archive)
State Accepted
Commit 647d0933809a3e894a9cf989bc32e28244cb2c5d
Headers show
Series kselftest/arm64: Enumerate SME rather than SVE vector lengths for za_regs | expand

Commit Message

Mark Brown Aug. 4, 2022, 6:26 p.m. UTC
The za_regs signal test was enumerating the SVE vector lengths rather than
the SVE vector lengths through cut'n'paste error when determining what to
test. Enumerate the SME vector lengths instead.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 tools/testing/selftests/arm64/signal/testcases/za_regs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Mark Brown Aug. 4, 2022, 6:41 p.m. UTC | #1
On Thu, Aug 04, 2022 at 07:26:06PM +0100, Mark Brown wrote:
> The za_regs signal test was enumerating the SVE vector lengths rather than
> the SVE vector lengths through cut'n'paste error when determining what to

*sigh*  SME.

> test. Enumerate the SME vector lengths instead.
> 
> Signed-off-by: Mark Brown <broonie@kernel.org>
> ---
>  tools/testing/selftests/arm64/signal/testcases/za_regs.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tools/testing/selftests/arm64/signal/testcases/za_regs.c b/tools/testing/selftests/arm64/signal/testcases/za_regs.c
> index b94e4f99fcac..9f1dd70289be 100644
> --- a/tools/testing/selftests/arm64/signal/testcases/za_regs.c
> +++ b/tools/testing/selftests/arm64/signal/testcases/za_regs.c
> @@ -22,10 +22,10 @@ static bool sme_get_vls(struct tdescr *td)
>  	int vq, vl;
>  
>  	/*
> -	 * Enumerate up to SVE_VQ_MAX vector lengths
> +	 * Enumerate up to SME_VQ_MAX vector lengths
>  	 */
>  	for (vq = SVE_VQ_MAX; vq > 0; --vq) {
> -		vl = prctl(PR_SVE_SET_VL, vq * 16);
> +		vl = prctl(PR_SME_SET_VL, vq * 16);
>  		if (vl == -1)
>  			return false;
>  
> -- 
> 2.30.2
> 
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
diff mbox series

Patch

diff --git a/tools/testing/selftests/arm64/signal/testcases/za_regs.c b/tools/testing/selftests/arm64/signal/testcases/za_regs.c
index b94e4f99fcac..9f1dd70289be 100644
--- a/tools/testing/selftests/arm64/signal/testcases/za_regs.c
+++ b/tools/testing/selftests/arm64/signal/testcases/za_regs.c
@@ -22,10 +22,10 @@  static bool sme_get_vls(struct tdescr *td)
 	int vq, vl;
 
 	/*
-	 * Enumerate up to SVE_VQ_MAX vector lengths
+	 * Enumerate up to SME_VQ_MAX vector lengths
 	 */
 	for (vq = SVE_VQ_MAX; vq > 0; --vq) {
-		vl = prctl(PR_SVE_SET_VL, vq * 16);
+		vl = prctl(PR_SME_SET_VL, vq * 16);
 		if (vl == -1)
 			return false;