Re: [PATCH V2 04/46] arm64/sysreg: Update register fields for TRBIDR_EL1

From: Anshuman Khandual
Date: Wed Dec 18 2024 - 21:49:43 EST




On 12/18/24 20:10, Eric Auger wrote:
> Hi Anshuman
>
> On 12/10/24 06:52, Anshuman Khandual wrote:
>> This adds register fields for TRBIDR_EL1 as per the definitions based
>> on DDI0601 2024-09.
>>
>> Cc: Catalin Marinas <catalin.marinas@xxxxxxx>
>> Cc: Will Deacon <will@xxxxxxxxxx>
>> Cc: Mark Brown <broonie@xxxxxxxxxx>
>> Cc: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx
>> Cc: linux-kernel@xxxxxxxxxxxxxxx
>> Signed-off-by: Anshuman Khandual <anshuman.khandual@xxxxxxx>
>> ---
>> arch/arm64/tools/sysreg | 15 +++++++++++++--
>> 1 file changed, 13 insertions(+), 2 deletions(-)
>>
>> diff --git a/arch/arm64/tools/sysreg b/arch/arm64/tools/sysreg
>> index 59351931d907..10b1a0998d99 100644
>> --- a/arch/arm64/tools/sysreg
>> +++ b/arch/arm64/tools/sysreg
>> @@ -3295,13 +3295,24 @@ Field 31:0 TRG
>> EndSysreg
>>
>> Sysreg TRBIDR_EL1 3 0 9 11 7
>> -Res0 63:12
>> +Res0 63:48
>> +Field 47:32 MaxBuffSize
>> +Res0 31:16
>> +UnsignedEnum 15:12 MPAM
>> + 0b0000 NI
>> + 0b0001 PMG
> Out of curiosity how did you choose the PMG terminology?
> I see "MPAM implemented by the Trace Buffer Unit, using default PARTID
> and PMG values in External mode". Wouldn't be TBU more meaningful?

Right, TBU seems better. Unless Mark thinks otherwise, will change.