* [PATCH] arm64: ptrace: Use ARM64_SME to guard the SME register enumerations
@ 2022-12-14 13:59 Zenghui Yu
2022-12-14 14:55 ` Mark Brown
2023-01-05 18:04 ` Will Deacon
0 siblings, 2 replies; 3+ messages in thread
From: Zenghui Yu @ 2022-12-14 13:59 UTC (permalink / raw)
To: linux-arm-kernel, linux-kernel
Cc: oleg, catalin.marinas, will, broonie, wanghaibin.wang,
zhouquan65, sundongxu3, Zenghui Yu
We currently guard REGSET_{SSVE, ZA} using ARM64_SVE for no good reason.
Both enumerations would be pointless without ARM64_SME and create two empty
entries in aarch64_regsets[] which would then become part of a process's
native regset view (they should be ignored though).
Switch to use ARM64_SME instead.
Fixes: e12310a0d30f ("arm64/sme: Implement ptrace support for streaming mode SVE registers")
Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
---
arch/arm64/kernel/ptrace.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/kernel/ptrace.c b/arch/arm64/kernel/ptrace.c
index 2686ab157601..0c321ad23cd3 100644
--- a/arch/arm64/kernel/ptrace.c
+++ b/arch/arm64/kernel/ptrace.c
@@ -1357,7 +1357,7 @@ enum aarch64_regset {
#ifdef CONFIG_ARM64_SVE
REGSET_SVE,
#endif
-#ifdef CONFIG_ARM64_SVE
+#ifdef CONFIG_ARM64_SME
REGSET_SSVE,
REGSET_ZA,
#endif
--
2.33.0
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] arm64: ptrace: Use ARM64_SME to guard the SME register enumerations
2022-12-14 13:59 [PATCH] arm64: ptrace: Use ARM64_SME to guard the SME register enumerations Zenghui Yu
@ 2022-12-14 14:55 ` Mark Brown
2023-01-05 18:04 ` Will Deacon
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2022-12-14 14:55 UTC (permalink / raw)
To: Zenghui Yu
Cc: linux-arm-kernel, linux-kernel, oleg, catalin.marinas, will,
wanghaibin.wang, zhouquan65, sundongxu3
[-- Attachment #1: Type: text/plain, Size: 435 bytes --]
On Wed, Dec 14, 2022 at 09:59:43PM +0800, Zenghui Yu wrote:
> We currently guard REGSET_{SSVE, ZA} using ARM64_SVE for no good reason.
> Both enumerations would be pointless without ARM64_SME and create two empty
> entries in aarch64_regsets[] which would then become part of a process's
> native regset view (they should be ignored though).
>
> Switch to use ARM64_SME instead.
Reviewed-by: Mark Brown <broonie@kernel.org>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] arm64: ptrace: Use ARM64_SME to guard the SME register enumerations
2022-12-14 13:59 [PATCH] arm64: ptrace: Use ARM64_SME to guard the SME register enumerations Zenghui Yu
2022-12-14 14:55 ` Mark Brown
@ 2023-01-05 18:04 ` Will Deacon
1 sibling, 0 replies; 3+ messages in thread
From: Will Deacon @ 2023-01-05 18:04 UTC (permalink / raw)
To: linux-kernel, linux-arm-kernel, Zenghui Yu
Cc: catalin.marinas, kernel-team, Will Deacon, zhouquan65, oleg,
sundongxu3, broonie, wanghaibin.wang
On Wed, 14 Dec 2022 21:59:43 +0800, Zenghui Yu wrote:
> We currently guard REGSET_{SSVE, ZA} using ARM64_SVE for no good reason.
> Both enumerations would be pointless without ARM64_SME and create two empty
> entries in aarch64_regsets[] which would then become part of a process's
> native regset view (they should be ignored though).
>
> Switch to use ARM64_SME instead.
>
> [...]
Applied to arm64 (for-next/fixes), thanks!
[1/1] arm64: ptrace: Use ARM64_SME to guard the SME register enumerations
https://git.kernel.org/arm64/c/eb9a85261e29
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-01-05 18:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-14 13:59 [PATCH] arm64: ptrace: Use ARM64_SME to guard the SME register enumerations Zenghui Yu
2022-12-14 14:55 ` Mark Brown
2023-01-05 18:04 ` Will Deacon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®