[PATCH v2 02/12] arm64/mm: Add FEAT_LPA2 specific ID_AA64MMFR0.TGRAN[2]
Ryan Roberts
ryan.roberts at arm.com
Thu Apr 13 01:16:03 PDT 2023
On 12/04/2023 17:27, Catalin Marinas wrote:
> On Mon, Mar 06, 2023 at 07:54:28PM +0000, Ryan Roberts wrote:
>> diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h
>> index 9e3ecba3c4e6..7f708eecc3ad 100644
>> --- a/arch/arm64/include/asm/sysreg.h
>> +++ b/arch/arm64/include/asm/sysreg.h
>> @@ -609,10 +609,12 @@
>>
>> /* id_aa64mmfr0 */
>> #define ID_AA64MMFR0_EL1_TGRAN4_SUPPORTED_MIN 0x0
>> +#define ID_AA64MMFR0_EL1_TGRAN4_LPA2 ID_AA64MMFR0_EL1_TGRAN4_52_BIT
>> #define ID_AA64MMFR0_EL1_TGRAN4_SUPPORTED_MAX 0x7
>> #define ID_AA64MMFR0_EL1_TGRAN64_SUPPORTED_MIN 0x0
>> #define ID_AA64MMFR0_EL1_TGRAN64_SUPPORTED_MAX 0x7
>> #define ID_AA64MMFR0_EL1_TGRAN16_SUPPORTED_MIN 0x1
>> +#define ID_AA64MMFR0_EL1_TGRAN16_LPA2 ID_AA64MMFR0_EL1_TGRAN16_52_BIT
>> #define ID_AA64MMFR0_EL1_TGRAN16_SUPPORTED_MAX 0xf
>
> This patch evolved a bit since I first acked it in Anshuman's series. I
> can't find any trace of ID_AA64MMFR0_EL1_TGRAN4_52_BIT in the kernel. Is
> it introduced in a later patch?
>
It's autogenerated as part of the sysreg magic. Ends up in
arch/arm64/include/generated/asm/sysreg-defs.h.
More information about the linux-arm-kernel
mailing list