Re: [RFC V2 13/14] arm64/mm: Add an abstraction level for tlbi_op
From: Anshuman Khandual
Date: Mon Jun 01 2026 - 01:37:21 EST
On 29/05/26 9:32 AM, Linu Cherian wrote:
> Hi Ryan,
>
> On Wed, May 27, 2026 at 03:50:10PM +0100, Ryan Roberts wrote:
>> On 13/05/2026 05:45, Anshuman Khandual wrote:
>>> From: Linu Cherian <linu.cherian@xxxxxxx>
>>>
>>> With FEAT_D128, a new instruction aka TLBIP is being introduced for the TLB
>>> range operations which has an argument size of 128 bit.
>>
>> nit: TLB range operations -> TLBI-by-range operations ?
>
> Ack.
>
>>
>>>
>>> Add an abstraction level to void (*tlbi_op)(u64 arg) helpers to support the
>>> D128 variations when applicable.
>>>
>>> No functional changes are introduced with this patch.
>>>
>>> Signed-off-by: Linu Cherian <linu.cherian@xxxxxxx>
>>> Signed-off-by: Anshuman Khandual <anshuman.khandual@xxxxxxx>
>>> ---
>>> arch/arm64/include/asm/tlbflush.h | 70 ++++++++++++++++---------------
>>> 1 file changed, 37 insertions(+), 33 deletions(-)
>>>
>>> diff --git a/arch/arm64/include/asm/tlbflush.h b/arch/arm64/include/asm/tlbflush.h
>>> index c0bf5b398041..361d74ef8016 100644
>>> --- a/arch/arm64/include/asm/tlbflush.h
>>> +++ b/arch/arm64/include/asm/tlbflush.h
>>> @@ -162,49 +162,53 @@ static inline void sme_dvmsync_batch(struct arch_tlbflush_unmap_batch *batch)
>>>
>>> #define TLBI_TTL_UNKNOWN INT_MAX
>>>
>>> -typedef void (*tlbi_op)(u64 arg);
>>> +typedef u64 tlbi_args_t;
>>
>> nit: tlbi_args_t -> tlbi_arg_t ?
>
> Ack.
Accommodated both the changes.