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 lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (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 9447ED64072 for ; Wed, 17 Dec 2025 04:14:11 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4dWL5s6NbWz2ySB; Wed, 17 Dec 2025 15:14:09 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=172.234.252.31 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1765944849; cv=none; b=KVs0mCd5lPPKnymrSslCFW2aCVf4pt5HWTv6kFnHCx3mGTGQhdqjp8PoJdbgnxfZq+TM4y2AmN1Eg5BN//OK9l/AtMJsknNfdX3cmoWgLciifxzAVfgj3RmZUGf3CP+9drr0XH07WHMrXMR4KXmP5RvnaPdjZBC/9h6U1oSUB8KPigW3HZVx1aSbHg1RpYv4NgG9HqWD2l1WvQ3GEQd0UgUgN892KVxIOCkSw7wVQcLWTOQ35dYr3nduFUBpe6/bbY5QMG+iJS8ljahzIGrWyNMV/YJxdRI75nh6cnW9xcbplfPt4qYz11swZIyYT08fAuh/zkgCp8ERLLvXZvEcBg== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1765944849; c=relaxed/relaxed; bh=tIvslDrd3vRyKntdo1TKclAc08m0jxGuja83vYWFMz0=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=MaCoPABqItYvaWBEKKU4hW3sr/1Qlf6C8X6o9teWIzV/3PUPXFQ2M/zVb6yrENf6YmwBb4YCc5sPCWcdtfnd6p/akY9h6OMhMYDFuHafPp9B4kA9cCqVmOr+j6UvuClUuRN6LNU0f/RygoZXlWb+QpcnLw9ZwxY6fQXIQ0XoRYppEmQuyYRZ4cW0rX7Uwijt1pg53iuNV9CJHaSq/hq1uMGRAh1K7veYh6YPIJZ1DjX/B17+QE55lODFhZcu71XKs2FSNzKyW7GEkeW35mXYP/iRjLPVsGAC2VW+oxx8zoBTK0zPHJimbVhWCXdWJvPPD9ykLPK7HCm8Y/4B4hsZzA== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org; dkim=pass (1024-bit key; unprotected) header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=mObMGKaH; dkim-atps=neutral; spf=pass (client-ip=172.234.252.31; helo=sea.source.kernel.org; envelope-from=akpm@linux-foundation.org; receiver=lists.ozlabs.org) smtp.mailfrom=linux-foundation.org Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=mObMGKaH; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linux-foundation.org (client-ip=172.234.252.31; helo=sea.source.kernel.org; envelope-from=akpm@linux-foundation.org; receiver=lists.ozlabs.org) Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4dWL5r3DR8z2yRF for ; Wed, 17 Dec 2025 15:14:07 +1100 (AEDT) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 07C734021D; Wed, 17 Dec 2025 04:14:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BB41EC4CEFB; Wed, 17 Dec 2025 04:14:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1765944844; bh=xU2trvapXnk7g5CtACkCj5ikoDQ/txcQUif1mO1cIY8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=mObMGKaHzs+oIi98uFJNPKFjcIbwG14MyPdinNriP9aRfBOmrP9YgUR0U5RY50Jcg MRZ/eN62bquBtMDDTcWo7ge5Ui+mwLmddzDbSz+GfDkXxY71DhMOB9iezvOgCfm+sh F57lldv0D0XP5sN73LEmpLArzoS8Y23dHH7bFz7M= Date: Tue, 16 Dec 2025 20:14:03 -0800 From: Andrew Morton To: Kevin Brodsky Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Alexander Gordeev , Andreas Larsson , Anshuman Khandual , Boris Ostrovsky , Borislav Petkov , Catalin Marinas , Christophe Leroy , Dave Hansen , David Hildenbrand , "David S. Miller" , David Woodhouse , "H. Peter Anvin" , Ingo Molnar , Jann Horn , Juergen Gross , "Liam R. Howlett" , Lorenzo Stoakes , Madhavan Srinivasan , Michael Ellerman , Michal Hocko , Mike Rapoport , Nicholas Piggin , Peter Zijlstra , "Ritesh Harjani (IBM)" , Ryan Roberts , Suren Baghdasaryan , Thomas Gleixner , Venkat Rao Bagalkote , Vlastimil Babka , Will Deacon , Yeoreum Yun , linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org, xen-devel@lists.xenproject.org, x86@kernel.org Subject: Re: [PATCH v6 14/14] mm: Add basic tests for lazy_mmu Message-Id: <20251216201403.4647a4f9861d3122ee9e90d7@linux-foundation.org> In-Reply-To: <20251215150323.2218608-15-kevin.brodsky@arm.com> References: <20251215150323.2218608-1-kevin.brodsky@arm.com> <20251215150323.2218608-15-kevin.brodsky@arm.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: Precedence: list Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 15 Dec 2025 15:03:23 +0000 Kevin Brodsky wrote: > Add basic KUnit tests for the generic aspects of the lazy MMU mode: > ensure that it appears active when it should, depending on how > enable/disable and pause/resume pairs are nested. I needed this for powerpc allmodconfig; --- a/arch/powerpc/mm/book3s64/hash_tlb.c~mm-add-basic-tests-for-lazy_mmu-fix +++ a/arch/powerpc/mm/book3s64/hash_tlb.c @@ -30,6 +30,7 @@ #include DEFINE_PER_CPU(struct ppc64_tlb_batch, ppc64_tlb_batch); +EXPORT_SYMBOL_GPL(ppc64_tlb_batch); /* * A linux PTE was changed and the corresponding hash table entry @@ -154,6 +155,7 @@ void __flush_tlb_pending(struct ppc64_tl flush_hash_range(i, local); batch->index = 0; } +EXPORT_SYMBOL_GPL(__flush_tlb_pending); void hash__tlb_flush(struct mmu_gather *tlb) { _