From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F1D1D288C96 for ; Wed, 17 Dec 2025 18:24:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765995895; cv=none; b=dTQqY94h2K7gTUAwocsJywoDML0LgNjdbQ8pRmoR8RlDDqc16n5XDms5yagkH2dP/bLHVCYjDDr9iir9cnChFwD4QwHz1c42cj2Zln84RFrQIYtBsLXzVhJZtwz9r0iJVe4hflglV5qFkdfqt++jBvGFlkV/sJZY73i8dJZXS7Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765995895; c=relaxed/simple; bh=emb3GhriXVkrK83bac1GRF6ajdhZg5E+WTod1CuB8As=; h=Date:To:From:Subject:Message-Id; b=rDwYdPqCjpEol++lq66UiktDTOF4MpnoFtd/1wdiwgCOLDhqkI5r8wGPjOeojhEzGN/dC/OQ52bBQtz/kOyT7XVMuuz9UHvP9d8tBckWxV9OTQJ9Dh2XtsIGJnmEXmDDKLScSADHWMIWusdizNyZGfc5oXMwN4l0GSPsWbbqzQk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=o4fB+8fu; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="o4fB+8fu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7851FC4CEF5; Wed, 17 Dec 2025 18:24:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1765995894; bh=emb3GhriXVkrK83bac1GRF6ajdhZg5E+WTod1CuB8As=; h=Date:To:From:Subject:From; b=o4fB+8fuoaDnK32c6cizYk7L82olTLAo0HGMu0QinjNIXfgwAM/y49KerG9x0Mttv ReukUwNaOs3bKeTty0lijHpiirFjK+6oEe8A+5XEBq/K5XVB5Xiac81Nb6Qr2vRiJH dJHYmLEds1qHyhYRES0eU/YTkiIeJFmKi0FpagTU= Date: Wed, 17 Dec 2025 10:24:53 -0800 To: mm-commits@vger.kernel.org,will@kernel.org,tsbogend@alpha.franken.de,richard@nod.at,richard.henderson@linaro.org,peterz@infradead.org,npiggin@gmail.com,mattst88@gmail.com,linmag7@gmail.com,kernel@xen0n.name,johannes@sipsolutions.net,James.Bottomley@HansenPartnership.com,ioworker0@gmail.com,dev.jain@arm.com,deller@gmx.de,david@kernel.org,chenhuacai@kernel.org,anton.ivanov@cambridgegreys.com,aneesh.kumar@kernel.org,zhengqi.arch@bytedance.com,akpm@linux-foundation.org From: Andrew Morton Subject: + parisc-mm-enable-mmu_gather_rcu_table_free.patch added to mm-new branch Message-Id: <20251217182454.7851FC4CEF5@smtp.kernel.org> Precedence: bulk X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The patch titled Subject: parisc: mm: enable MMU_GATHER_RCU_TABLE_FREE has been added to the -mm mm-new branch. Its filename is parisc-mm-enable-mmu_gather_rcu_table_free.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/parisc-mm-enable-mmu_gather_rcu_table_free.patch This patch will later appear in the mm-new branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Note, mm-new is a provisional staging ground for work-in-progress patches, and acceptance into mm-new is a notification for others take notice and to finish up reviews. Please do not hesitate to respond to review feedback and post updated versions to replace or incrementally fixup patches in mm-new. The mm-new branch of mm.git is not included in linux-next Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via various branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there most days ------------------------------------------------------ From: Qi Zheng Subject: parisc: mm: enable MMU_GATHER_RCU_TABLE_FREE Date: Wed, 17 Dec 2025 17:45:46 +0800 On a 64-bit system, madvise(MADV_DONTNEED) may cause a large number of empty PTE page table pages (such as 100GB+). To resolve this problem, first enable MMU_GATHER_RCU_TABLE_FREE to prepare for enabling the PT_RECLAIM feature, which resolves this problem. Link: https://lkml.kernel.org/r/e0445acf2c267f060e888a090cdd94cbf7f52dd3.1765963770.git.zhengqi.arch@bytedance.com Signed-off-by: Qi Zheng Cc: "James E.J. Bottomley" Cc: Helge Deller Cc: "Aneesh Kumar K.V" Cc: Anton Ivanov Cc: David Hildenbrand (Red Hat) Cc: Dev Jain Cc: Huacai Chen Cc: Johannes Berg Cc: Lance Yang Cc: Magnus Lindholm Cc: Matt Turner Cc: Nicholas Piggin Cc: Peter Zijlstra Cc: Richard Henderson Cc: Richard Weinberger Cc: Thomas Bogendoerfer Cc: WANG Xuerui Cc: Will Deacon Signed-off-by: Andrew Morton --- arch/parisc/Kconfig | 1 + arch/parisc/include/asm/tlb.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) --- a/arch/parisc/include/asm/tlb.h~parisc-mm-enable-mmu_gather_rcu_table_free +++ a/arch/parisc/include/asm/tlb.h @@ -5,8 +5,8 @@ #include #if CONFIG_PGTABLE_LEVELS == 3 -#define __pmd_free_tlb(tlb, pmd, addr) pmd_free((tlb)->mm, pmd) +#define __pmd_free_tlb(tlb, pmd, addr) tlb_remove_ptdesc((tlb), virt_to_ptdesc(pmd)) #endif -#define __pte_free_tlb(tlb, pte, addr) pte_free((tlb)->mm, pte) +#define __pte_free_tlb(tlb, pte, addr) tlb_remove_ptdesc((tlb), page_ptdesc(pte)) #endif --- a/arch/parisc/Kconfig~parisc-mm-enable-mmu_gather_rcu_table_free +++ a/arch/parisc/Kconfig @@ -79,6 +79,7 @@ config PARISC select GENERIC_CLOCKEVENTS select CPU_NO_EFFICIENT_FFS select THREAD_INFO_IN_TASK + select MMU_GATHER_RCU_TABLE_FREE select NEED_DMA_MAP_STATE select NEED_SG_DMA_LENGTH select HAVE_ARCH_KGDB _ Patches currently in -mm which might be from zhengqi.arch@bytedance.com are mm-change-mm-pt_reclaimc-to-use-asm-tlbh-instead-of-asm-generic-tlbh.patch alpha-mm-enable-mmu_gather_rcu_table_free.patch loongarch-mm-enable-mmu_gather_rcu_table_free.patch mips-mm-enable-mmu_gather_rcu_table_free.patch parisc-mm-enable-mmu_gather_rcu_table_free.patch um-mm-enable-mmu_gather_rcu_table_free.patch mm-make-pt_reclaim-depends-on-mmu_gather_rcu_table_free.patch