All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] arm64: sysreg: Fix and tidyup sysreg field definitions
@ 2025-08-08 12:37 Fuad Tabba
  2025-08-14  5:24 ` Anshuman Khandual
  0 siblings, 1 reply; 2+ messages in thread
From: Fuad Tabba @ 2025-08-08 12:37 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: catalin.marinas, will, maz, broonie, oliver.upton,
	anshuman.khandual, robh, james.morse, tabba

Fix the value of ID_PFR1_EL1.Security NSACR_RFR to be 0b0010, as per
DDI0601/2025-06, which wasn't correctly set when introduced in commit
1224308075f1 ("arm64/sysreg: Convert ID_PFR1_EL1 to automatic generation").

While at it, remove redundant definition of RCWSMASK_EL1, fix typos, and
convert the only instance of spacing with spaces to tabs.

Signed-off-by: Fuad Tabba <tabba@google.com>
---
Note that NSACR_RFR isn't used in the kernel as far as I could tell, so
I didn't add a 'Fixes' tag.

Based on Linux 6.16
---
 arch/arm64/tools/sysreg | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/arch/arm64/tools/sysreg b/arch/arm64/tools/sysreg
index 8a8cf6874298..475494d65306 100644
--- a/arch/arm64/tools/sysreg
+++ b/arch/arm64/tools/sysreg
@@ -31,7 +31,7 @@
 # Mapping	<name_EL1>
 # EndSysreg
 
-# Where multiple system regsiters are not VHE aliases but share a
+# Where multiple system registers are not VHE aliases but share a
 # common layout, a SysregFields block can be used to describe the
 # shared layout:
 
@@ -54,7 +54,7 @@
 #
 # In general it is recommended that new enumeration items be named for the
 # feature that introduces them (eg, FEAT_LS64_ACCDATA introduces enumeration
-# item ACCDATA) though it may be more taseful to do something else.
+# item ACCDATA) though it may be more tasteful to do something else.
 
 Sysreg	OSDTRRX_EL1	2	0	0	0	2
 Res0	63:32
@@ -377,8 +377,8 @@ Sysreg	SPMOVSCLR_EL0	2	3	9	12	3
 Field	63:0	P
 EndSysreg
 
-Sysreg	SPMZR_EL0       2	3	9	12	4
-Field   63:0      P
+Sysreg	SPMZR_EL0	2	3	9	12	4
+Field   63:0	P
 EndSysreg
 
 Sysreg	SPMSELR_EL0	2	3	9	12	5
@@ -474,7 +474,7 @@ EndEnum
 Enum	7:4	Security
 	0b0000	NI
 	0b0001	EL3
-	0b0001	NSACR_RFR
+	0b0010	NSACR_RFR
 EndEnum
 UnsignedEnum	3:0	ProgMod
 	0b0000	NI
@@ -2441,10 +2441,6 @@ Sysreg	PFAR_EL12	3	5	6	0	5
 Mapping	PFAR_EL1
 EndSysreg
 
-Sysreg	RCWSMASK_EL1	3	0	13	0	3
-Field	63:0	RCWSMASK
-EndSysreg
-
 Sysreg	SCTLR2_EL1      3	0	1	0	3
 Res0    63:13
 Field   12      CPTM0

base-commit: 038d61fd642278bab63ee8ef722c50d10ab01e8f
-- 
2.50.1.703.g449372360f-goog



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

* Re: [PATCH v1] arm64: sysreg: Fix and tidyup sysreg field definitions
  2025-08-08 12:37 [PATCH v1] arm64: sysreg: Fix and tidyup sysreg field definitions Fuad Tabba
@ 2025-08-14  5:24 ` Anshuman Khandual
  0 siblings, 0 replies; 2+ messages in thread
From: Anshuman Khandual @ 2025-08-14  5:24 UTC (permalink / raw)
  To: Fuad Tabba, linux-arm-kernel
  Cc: catalin.marinas, will, maz, broonie, oliver.upton, robh,
	james.morse

On 08/08/25 6:07 PM, Fuad Tabba wrote:
> Fix the value of ID_PFR1_EL1.Security NSACR_RFR to be 0b0010, as per
> DDI0601/2025-06, which wasn't correctly set when introduced in commit
> 1224308075f1 ("arm64/sysreg: Convert ID_PFR1_EL1 to automatic generation").

0b0010 checks out to be the value for NSACR_RFR in ID_PFR1_EL1.Security
sysreg field per ARM DDI 0487 L.b as well and the above mentioned commit
added the wrong value.

> 
> While at it, remove redundant definition of RCWSMASK_EL1, fix typos, and
> convert the only instance of spacing with spaces to tabs.
> > Signed-off-by: Fuad Tabba <tabba@google.com>
> ---
> Note that NSACR_RFR isn't used in the kernel as far as I could tell, so
> I didn't add a 'Fixes' tag.

Agreed - 'Fixes' tag is not required.

> 
> Based on Linux 6.16
> ---
>  arch/arm64/tools/sysreg | 14 +++++---------
>  1 file changed, 5 insertions(+), 9 deletions(-)
> 
> diff --git a/arch/arm64/tools/sysreg b/arch/arm64/tools/sysreg
> index 8a8cf6874298..475494d65306 100644
> --- a/arch/arm64/tools/sysreg
> +++ b/arch/arm64/tools/sysreg
> @@ -31,7 +31,7 @@
>  # Mapping	<name_EL1>
>  # EndSysreg
>  
> -# Where multiple system regsiters are not VHE aliases but share a
> +# Where multiple system registers are not VHE aliases but share a
>  # common layout, a SysregFields block can be used to describe the
>  # shared layout:
>  
> @@ -54,7 +54,7 @@
>  #
>  # In general it is recommended that new enumeration items be named for the
>  # feature that introduces them (eg, FEAT_LS64_ACCDATA introduces enumeration
> -# item ACCDATA) though it may be more taseful to do something else.
> +# item ACCDATA) though it may be more tasteful to do something else.
>  
>  Sysreg	OSDTRRX_EL1	2	0	0	0	2
>  Res0	63:32
> @@ -377,8 +377,8 @@ Sysreg	SPMOVSCLR_EL0	2	3	9	12	3
>  Field	63:0	P
>  EndSysreg
>  
> -Sysreg	SPMZR_EL0       2	3	9	12	4
> -Field   63:0      P
> +Sysreg	SPMZR_EL0	2	3	9	12	4
> +Field   63:0	P
>  EndSysreg

Is this the only instance in the file with spaces instead of tabs ?

>  
>  Sysreg	SPMSELR_EL0	2	3	9	12	5
> @@ -474,7 +474,7 @@ EndEnum
>  Enum	7:4	Security
>  	0b0000	NI
>  	0b0001	EL3
> -	0b0001	NSACR_RFR
> +	0b0010	NSACR_RFR
>  EndEnum
>  UnsignedEnum	3:0	ProgMod
>  	0b0000	NI
> @@ -2441,10 +2441,6 @@ Sysreg	PFAR_EL12	3	5	6	0	5
>  Mapping	PFAR_EL1
>  EndSysreg
>  
> -Sysreg	RCWSMASK_EL1	3	0	13	0	3
> -Field	63:0	RCWSMASK
> -EndSysreg
> -

RCWSMASK_EL1 was redundant here.

>  Sysreg	SCTLR2_EL1      3	0	1	0	3
>  Res0    63:13
>  Field   12      CPTM0
> 
> base-commit: 038d61fd642278bab63ee8ef722c50d10ab01e8f
LTGM

Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>


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

end of thread, other threads:[~2025-08-14  5:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-08 12:37 [PATCH v1] arm64: sysreg: Fix and tidyup sysreg field definitions Fuad Tabba
2025-08-14  5:24 ` Anshuman Khandual

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.