[PATCH v2 3/6 update] mm: pgtable: convert some architectures to use tlb_remove_ptdesc()

2025-03-02 Thread Qi Zheng
Now, the nine architectures of csky, hexagon, loongarch, m68k, mips, nios2, openrisc, sh and um do not select CONFIG_MMU_GATHER_RCU_TABLE_FREE, and just call pagetable_dtor() + tlb_remove_page_ptdesc() (the wrapper of tlb_remove_page()). This is the same as the implementation of tlb_remove_{ptdesc|

Re: [PATCH v2 4/6] riscv: pgtable: unconditionally use tlb_remove_ptdesc()

2025-03-02 Thread Qi Zheng
On 3/3/25 9:45 AM, yunhui cui wrote: Hi Qi, [...] This set of patches mainly refactors the remove page table function interfaces. The comment "riscv_ipi_for_rfence" has been removed, as it was no longer needed, and this patch handles that. Additionally, whether riscv_use_sbi_for_rfen

Re: [External] [PATCH v2 4/6] riscv: pgtable: unconditionally use tlb_remove_ptdesc()

2025-03-02 Thread yunhui cui
Hi Qi, On Tue, Feb 25, 2025 at 11:48 AM Qi Zheng wrote: > > To support fast gup, the commit 69be3fb111e7 ("riscv: enable > MMU_GATHER_RCU_TABLE_FREE for SMP && MMU") did the following: > > 1) use tlb_remove_page_ptdesc() for those platforms which use IPI to >perform TLB shootdown > > 2) use t