mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] arm64: Delete the zero_za macro
@ 2023-12-05 16:01 Zenghui Yu
  2023-12-05 16:56 ` Mark Brown
  2023-12-11 20:27 ` Will Deacon
  0 siblings, 2 replies; 3+ messages in thread
From: Zenghui Yu @ 2023-12-05 16:01 UTC (permalink / raw)
  To: linux-arm-kernel, linux-kernel
  Cc: catalin.marinas, will, broonie, wanghaibin.wang, Zenghui Yu

zero_za was introduced in commit ca8a4ebcff44 ("arm64/sme: Manually encode
SME instructions") but doesn't appear to have any in kernel user. Drop it.

Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
---
 arch/arm64/include/asm/fpsimdmacros.h | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/arch/arm64/include/asm/fpsimdmacros.h b/arch/arm64/include/asm/fpsimdmacros.h
index cdf6a35e3994..cda81d009c9b 100644
--- a/arch/arm64/include/asm/fpsimdmacros.h
+++ b/arch/arm64/include/asm/fpsimdmacros.h
@@ -242,14 +242,6 @@
 		| (\nx << 5)
 .endm
 
-/*
- * Zero the entire ZA array
- *	ZERO ZA
- */
-.macro zero_za
-	.inst 0xc00800ff
-.endm
-
 .macro __for from:req, to:req
 	.if (\from) == (\to)
 		_for__body %\from
-- 
2.33.0


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

* Re: [PATCH] arm64: Delete the zero_za macro
  2023-12-05 16:01 [PATCH] arm64: Delete the zero_za macro Zenghui Yu
@ 2023-12-05 16:56 ` Mark Brown
  2023-12-11 20:27 ` Will Deacon
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2023-12-05 16:56 UTC (permalink / raw)
  To: Zenghui Yu
  Cc: linux-arm-kernel, linux-kernel, catalin.marinas, will, wanghaibin.wang

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

On Wed, Dec 06, 2023 at 12:01:40AM +0800, Zenghui Yu wrote:
> zero_za was introduced in commit ca8a4ebcff44 ("arm64/sme: Manually encode
> SME instructions") but doesn't appear to have any in kernel user. Drop it.
> 
> Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>

You're right that this isn't used, though OTOH it's not exactly doing
any harm either and as a macro doesn't inflate the image or anything.

Acked-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: Delete the zero_za macro
  2023-12-05 16:01 [PATCH] arm64: Delete the zero_za macro Zenghui Yu
  2023-12-05 16:56 ` Mark Brown
@ 2023-12-11 20:27 ` Will Deacon
  1 sibling, 0 replies; 3+ messages in thread
From: Will Deacon @ 2023-12-11 20:27 UTC (permalink / raw)
  To: linux-arm-kernel, linux-kernel, Zenghui Yu
  Cc: catalin.marinas, kernel-team, Will Deacon, broonie, wanghaibin.wang

On Wed, 6 Dec 2023 00:01:40 +0800, Zenghui Yu wrote:
> zero_za was introduced in commit ca8a4ebcff44 ("arm64/sme: Manually encode
> SME instructions") but doesn't appear to have any in kernel user. Drop it.
> 
> 

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

[1/1] arm64: Delete the zero_za macro
      https://git.kernel.org/arm64/c/86d1921c9d5a

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-12-11 20:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-05 16:01 [PATCH] arm64: Delete the zero_za macro Zenghui Yu
2023-12-05 16:56 ` Mark Brown
2023-12-11 20:27 ` 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®