[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9040b9ee-88c9-4347-b8b6-5894b45e62b8@bytedance.com>
Date: Tue, 7 Jan 2025 20:34:22 +0800
From: Qi Zheng <zhengqi.arch@...edance.com>
To: Andreas Larsson <andreas@...sler.com>
Cc: peterz@...radead.org, agordeev@...ux.ibm.com, kevin.brodsky@....com,
palmer@...belt.com, tglx@...utronix.de, david@...hat.com, jannh@...gle.com,
hughd@...gle.com, yuzhao@...gle.com, willy@...radead.org,
muchun.song@...ux.dev, vbabka@...nel.org, lorenzo.stoakes@...cle.com,
akpm@...ux-foundation.org, rientjes@...gle.com, vishal.moola@...il.com,
arnd@...db.de, will@...nel.org, aneesh.kumar@...nel.org, npiggin@...il.com,
dave.hansen@...ux.intel.com, rppt@...nel.org, ryan.roberts@....com,
linux-mm@...ck.org, linux-arm-kernel@...ts.infradead.org,
linuxppc-dev@...ts.ozlabs.org, linux-riscv@...ts.infradead.org,
linux-s390@...r.kernel.org, sparclinux@...r.kernel.org,
linux-kernel@...r.kernel.org, x86@...nel.org, linux-arch@...r.kernel.org,
linux-csky@...r.kernel.org, linux-hexagon@...r.kernel.org,
loongarch@...ts.linux.dev, linux-m68k@...ts.linux-m68k.org,
linux-mips@...r.kernel.org, linux-openrisc@...r.kernel.org,
linux-sh@...r.kernel.org, linux-um@...ts.infradead.org
Subject: Re: [PATCH v4 13/15] mm: pgtable: introduce generic
__tlb_remove_table()
On 2025/1/7 20:32, Andreas Larsson wrote:
> On 2024-12-30 10:07, Qi Zheng wrote:
>> diff --git a/arch/sparc/include/asm/tlb_32.h b/arch/sparc/include/asm/tlb_32.h
>> index 5cd28a8793e39..910254867dfbd 100644
>> --- a/arch/sparc/include/asm/tlb_32.h
>> +++ b/arch/sparc/include/asm/tlb_32.h
>> @@ -2,6 +2,7 @@
>> #ifndef _SPARC_TLB_H
>> #define _SPARC_TLB_H
>>
>> +#define __HAVE_ARCH_TLB_REMOVE_TABLE
>
> sparc32 does not select MMU_GATHER_TABLE_FREE, and therefore does not
> have (nor need) __tlb_remove_table, so this define should not be added.
Got it. Will remove it in v5.
>
>
>> #include <asm-generic/tlb.h>
>>
>> #endif /* _SPARC_TLB_H */
>> diff --git a/arch/sparc/include/asm/tlb_64.h b/arch/sparc/include/asm/tlb_64.h
>> index 3037187482db7..1a6e694418e39 100644
>> --- a/arch/sparc/include/asm/tlb_64.h
>> +++ b/arch/sparc/include/asm/tlb_64.h
>> @@ -33,6 +33,7 @@ void flush_tlb_pending(void);
>> #define tlb_needs_table_invalidate() (false)
>> #endif
>>
>> +#define __HAVE_ARCH_TLB_REMOVE_TABLE
>> #include <asm-generic/tlb.h>
>>
>> #endif /* _SPARC64_TLB_H */
> LGTM.
>
>
> With the removal of the define for sparc32 in v5:
>
> Acked-by: Andreas Larsson <andreas@...sler.com> # sparc
Thanks!
>
> Thanks,
> Andreas
>
Powered by blists - more mailing lists