* [PATCH 1/2] kselftest/arm64: Remove the local NUM_VL definition
@ 2022-12-18 9:29 Zenghui Yu
2022-12-18 9:29 ` [PATCH 2/2] kselftest/arm64: Correct buffer size for SME ZA storage Zenghui Yu
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Zenghui Yu @ 2022-12-18 9:29 UTC (permalink / raw)
To: linux-arm-kernel, linux-kselftest, linux-kernel
Cc: catalin.marinas, will, shuah, broonie, wanghaibin.wang, Zenghui Yu
It was introduced in commit b77e995e3b96 ("kselftest/arm64: Add a test
program to exercise the syscall ABI") but never actually used. Remove it.
Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
---
tools/testing/selftests/arm64/abi/syscall-abi.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/tools/testing/selftests/arm64/abi/syscall-abi.c b/tools/testing/selftests/arm64/abi/syscall-abi.c
index 9800f9dc6b35..24a498029c78 100644
--- a/tools/testing/selftests/arm64/abi/syscall-abi.c
+++ b/tools/testing/selftests/arm64/abi/syscall-abi.c
@@ -20,8 +20,6 @@
#include "syscall-abi.h"
-#define NUM_VL ((SVE_VQ_MAX - SVE_VQ_MIN) + 1)
-
static int default_sme_vl;
extern void do_syscall(int sve_vl, int sme_vl);
--
2.33.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] kselftest/arm64: Correct buffer size for SME ZA storage
2022-12-18 9:29 [PATCH 1/2] kselftest/arm64: Remove the local NUM_VL definition Zenghui Yu
@ 2022-12-18 9:29 ` Zenghui Yu
2022-12-19 11:44 ` Mark Brown
2022-12-19 11:50 ` [PATCH 1/2] kselftest/arm64: Remove the local NUM_VL definition Mark Brown
2023-01-20 18:17 ` Catalin Marinas
2 siblings, 1 reply; 5+ messages in thread
From: Zenghui Yu @ 2022-12-18 9:29 UTC (permalink / raw)
To: linux-arm-kernel, linux-kselftest, linux-kernel
Cc: catalin.marinas, will, shuah, broonie, wanghaibin.wang, Zenghui Yu
It looks like a copy-paste error to describe the ZA buffer size using (the
number of P registers * the maximum size of a Z register). This doesn't
have practical impact though as we're always allocating enough space even
for the architectural maximum ZA storage, with SVL equals to 2048 bits.
Switch to use ZA_SIG_REGS_SIZE(SVE_VQ_MAX). setup_za() will need to
initialize two 64MB arraies with this change and can be optimized later (if
someone complain).
Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
---
tools/testing/selftests/arm64/abi/syscall-abi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/testing/selftests/arm64/abi/syscall-abi.c b/tools/testing/selftests/arm64/abi/syscall-abi.c
index 24a498029c78..4adeb21f500e 100644
--- a/tools/testing/selftests/arm64/abi/syscall-abi.c
+++ b/tools/testing/selftests/arm64/abi/syscall-abi.c
@@ -282,8 +282,8 @@ static int check_svcr(struct syscall_cfg *cfg, int sve_vl, int sme_vl,
return errors;
}
-uint8_t za_in[SVE_NUM_PREGS * __SVE_ZREG_SIZE(SVE_VQ_MAX)];
-uint8_t za_out[SVE_NUM_PREGS * __SVE_ZREG_SIZE(SVE_VQ_MAX)];
+uint8_t za_in[ZA_SIG_REGS_SIZE(SVE_VQ_MAX)];
+uint8_t za_out[ZA_SIG_REGS_SIZE(SVE_VQ_MAX)];
static void setup_za(struct syscall_cfg *cfg, int sve_vl, int sme_vl,
uint64_t svcr)
--
2.33.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] kselftest/arm64: Correct buffer size for SME ZA storage
2022-12-18 9:29 ` [PATCH 2/2] kselftest/arm64: Correct buffer size for SME ZA storage Zenghui Yu
@ 2022-12-19 11:44 ` Mark Brown
0 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2022-12-19 11:44 UTC (permalink / raw)
To: Zenghui Yu
Cc: linux-arm-kernel, linux-kselftest, linux-kernel, catalin.marinas,
will, shuah, wanghaibin.wang
[-- Attachment #1: Type: text/plain, Size: 407 bytes --]
On Sun, Dec 18, 2022 at 05:29:42PM +0800, Zenghui Yu wrote:
> It looks like a copy-paste error to describe the ZA buffer size using (the
> number of P registers * the maximum size of a Z register). This doesn't
> have practical impact though as we're always allocating enough space even
> for the architectural maximum ZA storage, with SVL equals to 2048 bits.
Reviewed-by: Mark Brown <broonie@kernel.org>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] kselftest/arm64: Remove the local NUM_VL definition
2022-12-18 9:29 [PATCH 1/2] kselftest/arm64: Remove the local NUM_VL definition Zenghui Yu
2022-12-18 9:29 ` [PATCH 2/2] kselftest/arm64: Correct buffer size for SME ZA storage Zenghui Yu
@ 2022-12-19 11:50 ` Mark Brown
2023-01-20 18:17 ` Catalin Marinas
2 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2022-12-19 11:50 UTC (permalink / raw)
To: Zenghui Yu
Cc: linux-arm-kernel, linux-kselftest, linux-kernel, catalin.marinas,
will, shuah, wanghaibin.wang
[-- Attachment #1: Type: text/plain, Size: 255 bytes --]
On Sun, Dec 18, 2022 at 05:29:41PM +0800, Zenghui Yu wrote:
> It was introduced in commit b77e995e3b96 ("kselftest/arm64: Add a test
> program to exercise the syscall ABI") but never actually used. Remove it.
Reviewed-by: Mark Brown <broonie@kernel.org>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] kselftest/arm64: Remove the local NUM_VL definition
2022-12-18 9:29 [PATCH 1/2] kselftest/arm64: Remove the local NUM_VL definition Zenghui Yu
2022-12-18 9:29 ` [PATCH 2/2] kselftest/arm64: Correct buffer size for SME ZA storage Zenghui Yu
2022-12-19 11:50 ` [PATCH 1/2] kselftest/arm64: Remove the local NUM_VL definition Mark Brown
@ 2023-01-20 18:17 ` Catalin Marinas
2 siblings, 0 replies; 5+ messages in thread
From: Catalin Marinas @ 2023-01-20 18:17 UTC (permalink / raw)
To: linux-arm-kernel, linux-kselftest, linux-kernel, Zenghui Yu
Cc: Will Deacon, shuah, broonie, wanghaibin.wang
On Sun, 18 Dec 2022 17:29:41 +0800, Zenghui Yu wrote:
> It was introduced in commit b77e995e3b96 ("kselftest/arm64: Add a test
> program to exercise the syscall ABI") but never actually used. Remove it.
>
>
Applied to arm64 (for-next/kselftest), thanks!
[1/2] kselftest/arm64: Remove the local NUM_VL definition
https://git.kernel.org/arm64/c/00598857e38f
[2/2] kselftest/arm64: Correct buffer size for SME ZA storage
https://git.kernel.org/arm64/c/daac835347a5
--
Catalin
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-01-20 18:18 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-18 9:29 [PATCH 1/2] kselftest/arm64: Remove the local NUM_VL definition Zenghui Yu
2022-12-18 9:29 ` [PATCH 2/2] kselftest/arm64: Correct buffer size for SME ZA storage Zenghui Yu
2022-12-19 11:44 ` Mark Brown
2022-12-19 11:50 ` [PATCH 1/2] kselftest/arm64: Remove the local NUM_VL definition Mark Brown
2023-01-20 18:17 ` Catalin Marinas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).