[PATCH v1 2/9] arm64/sysreg: Generate definitions for CLIDR_EL1

Mark Rutland mark.rutland at arm.com
Fri May 20 07:56:33 PDT 2022


On Tue, May 17, 2022 at 07:22:12PM +0100, Mark Brown wrote:
> Convert CLIDR_EL1 to be automatically generated with definition as per
> DDI0487H.a. No functional change.
> 
> Signed-off-by: Mark Brown <broonie at kernel.org>
> ---
>  arch/arm64/include/asm/sysreg.h |  1 -
>  arch/arm64/tools/sysreg         | 16 ++++++++++++++++
>  2 files changed, 16 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h
> index 45d29f34d9b3..d7a98dc62029 100644
> --- a/arch/arm64/include/asm/sysreg.h
> +++ b/arch/arm64/include/asm/sysreg.h
> @@ -456,7 +456,6 @@
>  
>  #define SYS_CNTKCTL_EL1			sys_reg(3, 0, 14, 1, 0)
>  
> -#define SYS_CLIDR_EL1			sys_reg(3, 1, 0, 0, 1)
>  #define SYS_GMID_EL1			sys_reg(3, 1, 0, 0, 4)
>  #define SYS_AIDR_EL1			sys_reg(3, 1, 0, 0, 7)
>  
> diff --git a/arch/arm64/tools/sysreg b/arch/arm64/tools/sysreg
> index db395dabc9e9..8b5788cbf099 100644
> --- a/arch/arm64/tools/sysreg
> +++ b/arch/arm64/tools/sysreg
> @@ -220,6 +220,22 @@ Field	23:3	Associativity
>  Field	2:0	LineSize
>  EndSysreg
>  
> +Sysreg	CLIDR_EL1	3	1	0	0	1
> +Res0	63:47
> +Field	46:33	Ttypen
> +Field	32:30	ICB
> +Field	29:27	LoUU
> +Field	26:24	LoC
> +Field	23:21	LoUIS
> +Field	20:18	Ctype7
> +Field	17:15	Ctype6
> +Field	14:12	Ctype5
> +Field	11:9	Ctype4
> +Field	8:6	Ctype3
> +Field	5:3	Ctype2
> +Field	2:0	Ctype1
> +EndSysreg

I've compared this to ARM DDI 0487H.a, pages D13-5302 to D13-5304,
and this all looks correct to me:

Reviewed-by: Mark Rutland <mark.rutland at arm.com>

Mark.

> +
>  Sysreg	SMIDR_EL1	3	1	0	0	6
>  Res0	63:32
>  Field	31:24	IMPLEMENTER
> -- 
> 2.30.2
> 



More information about the linux-arm-kernel mailing list