[PATCH v1 10/12] arm64/sme: Generate SMPRI_EL1 definitions

Mark Rutland mark.rutland at arm.com
Fri May 13 07:39:43 PDT 2022


On Tue, May 10, 2022 at 05:12:06PM +0100, Mark Brown wrote:
> Convert SMPRI_EL1 to be generated. No functional change.
> 
> Signed-off-by: Mark Brown <broonie at kernel.org>
> ---
>  arch/arm64/include/asm/sysreg.h | 3 ---
>  arch/arm64/tools/sysreg         | 5 +++++
>  2 files changed, 5 insertions(+), 3 deletions(-)
> 
> diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h
> index 2a9468d449fa..b4affc3fd569 100644
> --- a/arch/arm64/include/asm/sysreg.h
> +++ b/arch/arm64/include/asm/sysreg.h
> @@ -215,7 +215,6 @@
>  
>  #define SYS_ZCR_EL1			sys_reg(3, 0, 1, 2, 0)
>  #define SYS_TRFCR_EL1			sys_reg(3, 0, 1, 2, 1)
> -#define SYS_SMPRI_EL1			sys_reg(3, 0, 1, 2, 4)
>  
>  #define SYS_TCR_EL1			sys_reg(3, 0, 2, 0, 2)
>  
> @@ -406,8 +405,6 @@
>  #define TRBIDR_ALIGN_MASK		GENMASK(3, 0)
>  #define TRBIDR_ALIGN_SHIFT		0
>  
> -#define SMPRI_EL1_PRIORITY_MASK		0xf
> -
>  #define SYS_PMINTENSET_EL1		sys_reg(3, 0, 9, 14, 1)
>  #define SYS_PMINTENCLR_EL1		sys_reg(3, 0, 9, 14, 2)
>  
> diff --git a/arch/arm64/tools/sysreg b/arch/arm64/tools/sysreg
> index 2cdcdac0465e..d29bc429f504 100644
> --- a/arch/arm64/tools/sysreg
> +++ b/arch/arm64/tools/sysreg
> @@ -185,6 +185,11 @@ Field	1	A
>  Field	0	M
>  EndSysreg
>  
> +Sysreg	SMPRI_EL1	3	0	1	2	4
> +Res0	63:4
> +Field	3:0	PRIORITY
> +EndSysreg

These all look right to me per ARM DDI 0487H.a, section D13.2.130, pages
D13-5943 to D13-5945.

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

Mark.

> +
>  SysregFields	SMCR_ELx
>  Res0	63:32
>  Field	31	FA64
> -- 
> 2.30.2
> 



More information about the linux-arm-kernel mailing list