From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9460AC982FA for ; Wed, 23 Sep 2026 11:37:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=YMgb0+1Cgkx4KIMQSDEhb0+ZMoeDQaZpHMra+2dnrvc=; b=lm6P78OJaQIWSu uNvpPo4dnFEbHL2mYOvlNCYtqbw6ZHEdvpu89KSh6S1ZU3z2wyHTY6nVR4Iw58GrkMnOz3NcSAV94 d2fv0jEqS1Q5BDqohyv3lie5j9/ER8UC66yczW2C8avI1KH1mubgb9CkhFXAC6L9MQVUZ2j9TWtvy ifzS5x4sHfA5oSSACnnz7IDonNHFP6oszDnqNB57AsLQ5G2HNhmWlekZ/Ez69U72FadnJVDyuYtHI fqCIASksFPDCs46mgX8rZgDHDcTaIwXgZUq4CP9qhZnZmCvx9Z1lXvwatNpeHmJ8gZWavTeisux0K uAmnw4+4BumCadA/wZ/g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x9LHc-00000008641-105B; Wed, 23 Sep 2026 11:37:04 +0000 Received: from tor.source.kernel.org ([172.105.4.254]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x9LHa-0000000863a-2cCI; Wed, 23 Sep 2026 11:37:02 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 814F3601F0; Wed, 23 Sep 2026 11:37:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4DD421F000FF; Wed, 23 Sep 2026 11:36:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1790163421; bh=T7sdWnYxMHXupf7TleaKj2/jZn70aUNOMLwBt1Gu25I=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=MUYdtQ/rOOsFntGNDCU8gVljiX41ZOOjVjIa1/R6mHvqEVrHdCvUW00s158m6Rhfr lrTfdsDZHHM+8coQufhdItKT2U0f3KpSO1bXFVK65E8hdX7jqTg0RCXs6dbA/rOsE3 hj+OXHPR25h/T+zpUP1sxEFBKfBfbEPENxxtH4NpPA1FC6zBNzSnYJzOsanm0vWeX8 zL3hunrW3+GWyBjkcp7ZV4TlKp8Hz5f+x0SToekr1cuh3sa+lEbvI9mBqvMu2yTtr5 AR51Ti0FikS+Z02shyQHn9y3MNOVB+cU717LR/sppvi3rpyZsF2wIvQXXwZp2C/8Bt 8Q399dOg4bqJA== Date: Wed, 23 Sep 2026 12:36:43 +0100 From: "Lorenzo Stoakes (ARM)" To: Greg Ungerer Cc: Andrew Morton , David Hildenbrand , Zi Yan , Baolin Wang , "Liam R. Howlett" , Nico Pache , Ryan Roberts , Dev Jain , Barry Song , Lance Yang , Usama Arif , Kiryl Shutsemau , Guo Ren , Brian Cain , Geert Uytterhoeven , Dinh Nguyen , Simon Schuster , Jonas Bonn , Stefan Kristiansson , Stafford Horne , Rich Felker , John Paul Adrian Glaubitz , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Russell King , Vineet Gupta , Michal Simek , Chris Zankel , Max Filippov , Will Deacon , "Aneesh Kumar K.V" , Nick Piggin , Peter Zijlstra , "David S. Miller" , Andreas Larsson , Richard Henderson , Matt Turner , Magnus Lindholm , Catalin Marinas , Mark Rutland , Huacai Chen , WANG Xuerui , Thomas Bogendoerfer , "James E.J. Bottomley" , Helge Deller , Madhavan Srinivasan , Michael Ellerman , "Christophe Leroy (CS GROUP)" , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Richard Weinberger , Anton Ivanov , Johannes Berg , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Arnd Bergmann , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Jason Gunthorpe , John Hubbard , Peter Xu , Yoshinori Sato , Shakeel Butt , Jonathan Corbet , Randy Dunlap , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-csky@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-openrisc@vger.kernel.org, linux-sh@vger.kernel.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-snps-arc@lists.infradead.org, linux-arch@vger.kernel.org, sparclinux@vger.kernel.org, linux-alpha@vger.kernel.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-um@lists.infradead.org, Hugh Dickins , Qi Zheng , linux-doc@vger.kernel.org Subject: Re: [PATCH v4 07/12] mm: enable MMU_GATHER_RCU_TABLE_FREE for m68k-coldfire Message-ID: References: <20260922-rcu-pagetable-freeing-v4-0-fe1ad1f1e303@kernel.org> <20260922-rcu-pagetable-freeing-v4-7-fe1ad1f1e303@kernel.org> <3e6740e3-0515-4e29-9627-f554261daddb@polyxeno.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <3e6740e3-0515-4e29-9627-f554261daddb@polyxeno.com> X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org On Wed, Sep 23, 2026 at 09:31:47PM +1000, Greg Ungerer wrote: > Hi Lorenzo, > > On 23/9/26 01:35, Lorenzo Stoakes (ARM) wrote: > > Similar to sun3, the coldfire variant of m68k uses 2-level page tables. > > > > Update its __pte_free_tlb() function to use tlb_remove_ptdesc() in order > > that, with CONFIG_MMU_GATHER_RCU_TABLE_FREE, page tables are freed under > > RCU. > > > > The page tables occupy a page each and have no odd semantics, so this > > change suffices to allow enabling of CONFIG_MMU_GATHER_RCU_TABLE_FREE for > > m68k-coldfire, so do so. > > > > This forms part of an overall effort to switch every architecture to this > > mode. > > > > Acked-by: Kiryl Shutsemau (Meta) > > Signed-off-by: Lorenzo Stoakes (ARM) > > Looks good to me for ColdFire, so: > > Acked-by: Greg Ungerer > > Tested and run with no issues I could see on a M5475 ColdFire system, so: > > Tested-by: Greg Ungerer Thanks, much appreciated! :) > > Regards > Greg > > > > > --- > > arch/m68k/Kconfig | 2 +- > > arch/m68k/include/asm/mcf_pgalloc.h | 5 +---- > > 2 files changed, 2 insertions(+), 5 deletions(-) > > > > diff --git a/arch/m68k/Kconfig b/arch/m68k/Kconfig > > index e29610fd1240..6b8ec67c86fd 100644 > > --- a/arch/m68k/Kconfig > > +++ b/arch/m68k/Kconfig > > @@ -36,7 +36,7 @@ config M68K > > select HAVE_MOD_ARCH_SPECIFIC > > select HAVE_UID16 > > select MMU_GATHER_NO_RANGE if MMU > > - select MMU_GATHER_RCU_TABLE_FREE if MMU && SUN3 > > + select MMU_GATHER_RCU_TABLE_FREE if MMU && (SUN3 || COLDFIRE) > > select MODULES_USE_ELF_REL > > select MODULES_USE_ELF_RELA > > select NO_DMA if !MMU && !COLDFIRE > > diff --git a/arch/m68k/include/asm/mcf_pgalloc.h b/arch/m68k/include/asm/mcf_pgalloc.h > > index fc5454d37da3..b53ff0950db2 100644 > > --- a/arch/m68k/include/asm/mcf_pgalloc.h > > +++ b/arch/m68k/include/asm/mcf_pgalloc.h > > @@ -39,10 +39,7 @@ extern inline pmd_t *pmd_alloc_kernel(pgd_t *pgd, unsigned long address) > > static inline void __pte_free_tlb(struct mmu_gather *tlb, pgtable_t pgtable, > > unsigned long address) > > { > > - struct ptdesc *ptdesc = virt_to_ptdesc(pgtable); > > - > > - pagetable_dtor(ptdesc); > > - pagetable_free(ptdesc); > > + tlb_remove_ptdesc(tlb, virt_to_ptdesc(pgtable)); > > } > > > > static inline pgtable_t pte_alloc_one(struct mm_struct *mm) > > > -- Cheers, Lorenzo _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv