[PATCH v2 07/19] arm64: cpufeature: add Permission Indirection Extension cpucap

Mark Brown broonie at kernel.org
Thu Apr 13 04:30:26 PDT 2023


On Thu, Apr 13, 2023 at 12:05:01PM +0100, Joey Gouly wrote:
> This indicates if the system supports PIE. This is a CPUCAP_BOOT_CPU_FEATURE
> as the boot CPU will enable PIE if it has it, so secondary CPUs must also
> have this feature.

Reviewed-by: Mark Brown <broonie at kernel.org>

> +	{
> +		.desc = "Permission Indirection Extension (PIE)",
> +		.capability = ARM64_HAS_PIE,
> +		.type = ARM64_CPUCAP_BOOT_CPU_FEATURE,
> +		.sys_reg = SYS_ID_AA64MMFR3_EL1,
> +		.sign = FTR_UNSIGNED,
> +		.field_pos = ID_AA64MMFR3_EL1_S1PIE_SHIFT,
> +		.field_width = 4,
> +		.min_field_value = ID_AA64MMFR3_EL1_S1PIE_IMP,
> +		.matches = has_cpuid_feature,
> +	},

It might avoid some future confusion to label this as being stage 1, but
that's just bikeshedding.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20230413/2e501f16/attachment.sig>


More information about the linux-arm-kernel mailing list