From: Andreas Larsson <andreas@gaisler.com>
To: Kevin Brodsky <kevin.brodsky@arm.com>,
Andrew Morton <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org,
"David Hildenbrand (Red Hat)" <david@kernel.org>,
sparclinux@vger.kernel.org
Subject: Re: [PATCH] sparc/mm: export symbols for lazy_mmu_mode KUnit tests
Date: Wed, 14 Jan 2026 08:25:35 +0100 [thread overview]
Message-ID: <8cddb02c-6bc0-4c1b-85c5-a00e3e75b63a@gaisler.com> (raw)
In-Reply-To: <3ae6e07c-c99e-476e-b9d8-49b999e87197@arm.com>
On 2026-01-12 11:09, Kevin Brodsky wrote:
> On 18/12/2025 11:05, Kevin Brodsky wrote:
>> Upcoming KUnit tests will call lazy_mmu_mode_{enable,disable}.
>> These tests may be built as a module, and because of inlining this
>> means that arch_{enter,flush,leave}_lazy_mmu_mode need to be
>> exported.
>>
>> Signed-off-by: Kevin Brodsky <kevin.brodsky@arm.com>
>> ---
>>
>> The CI reports that sparc needs pretty much the same time treatment as
>> powerpc... Here's another patch to take care of that.
>>
>> Andrew, could you please add it after the powerpc one? At this point it's
>> probably best to remove the comment above MODULE_IMPORT_NS() in
>> mm/tests/lazy_mmu_mode_kunit.c. Thank you and sorry for the noise!
>
> Gentle ping - I think we need this patch in mm-unstable, the CI has been
> complaining as well. Thanks!
I get this problem as well, which is solved by this patch.
>> ---
>> arch/sparc/mm/tlb.c | 6 ++++++
>> 1 file changed, 6 insertions(+)
>>
>> diff --git a/arch/sparc/mm/tlb.c b/arch/sparc/mm/tlb.c
>> index 3a852071d260..6d9dd5eb1328 100644
>> --- a/arch/sparc/mm/tlb.c
>> +++ b/arch/sparc/mm/tlb.c
>> @@ -11,6 +11,8 @@
>> #include <linux/preempt.h>
>> #include <linux/pagemap.h>
>>
>> +#include <kunit/visibility.h>
>> +
>> #include <asm/tlbflush.h>
>> #include <asm/cacheflush.h>
>> #include <asm/mmu_context.h>
>> @@ -54,6 +56,8 @@ void arch_enter_lazy_mmu_mode(void)
>> {
>> preempt_disable();
>> }
>> +/* For lazy_mmu_mode KUnit tests */
>> +EXPORT_SYMBOL_IF_KUNIT(arch_enter_lazy_mmu_mode);
>>
>> void arch_flush_lazy_mmu_mode(void)
>> {
>> @@ -62,12 +66,14 @@ void arch_flush_lazy_mmu_mode(void)
>> if (tb->tlb_nr)
>> flush_tlb_pending();
>> }
>> +EXPORT_SYMBOL_IF_KUNIT(arch_flush_lazy_mmu_mode);
>>
>> void arch_leave_lazy_mmu_mode(void)
>> {
>> arch_flush_lazy_mmu_mode();
>> preempt_enable();
>> }
>> +EXPORT_SYMBOL_IF_KUNIT(arch_leave_lazy_mmu_mode);
>>
>> static void tlb_batch_add_one(struct mm_struct *mm, unsigned long vaddr,
>> bool exec, unsigned int hugepage_shift)
>>
>> base-commit: 8f0b4cce4481fb22653697cced8d0d04027cb1e8
Regardless of if it becomes a patch of its own in the end, or is
folded into another:
Acked-by: Andreas Larsson <andreas@gaisler.com>
Cheers,
Andreas
next prev parent reply other threads:[~2026-01-14 7:25 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-15 15:03 [PATCH v6 00/14] Nesting support for lazy MMU mode Kevin Brodsky
2025-12-15 15:03 ` [PATCH v6 01/14] powerpc/64s: Do not re-activate batched TLB flush Kevin Brodsky
2025-12-15 15:03 ` [PATCH v6 02/14] x86/xen: simplify flush_lazy_mmu() Kevin Brodsky
2025-12-15 15:03 ` [PATCH v6 03/14] powerpc/mm: implement arch_flush_lazy_mmu_mode() Kevin Brodsky
2025-12-16 5:14 ` Ritesh Harjani
2025-12-15 15:03 ` [PATCH v6 04/14] sparc/mm: " Kevin Brodsky
2026-01-14 7:20 ` Andreas Larsson
2025-12-15 15:03 ` [PATCH v6 05/14] mm: clarify lazy_mmu sleeping constraints Kevin Brodsky
2026-01-09 15:03 ` David Hildenbrand (Red Hat)
2025-12-15 15:03 ` [PATCH v6 06/14] mm: introduce CONFIG_ARCH_HAS_LAZY_MMU_MODE Kevin Brodsky
2026-01-14 7:27 ` Andreas Larsson
2025-12-15 15:03 ` [PATCH v6 07/14] mm: introduce generic lazy_mmu helpers Kevin Brodsky
2025-12-15 15:03 ` [PATCH v6 08/14] mm: bail out of lazy_mmu_mode_* in interrupt context Kevin Brodsky
2025-12-15 15:03 ` [PATCH v6 09/14] mm: enable lazy_mmu sections to nest Kevin Brodsky
2025-12-15 15:03 ` [PATCH v6 10/14] arm64: mm: replace TIF_LAZY_MMU with is_lazy_mmu_mode_active() Kevin Brodsky
2025-12-15 15:03 ` [PATCH v6 11/14] powerpc/mm: replace batch->active " Kevin Brodsky
2025-12-15 15:03 ` [PATCH v6 12/14] sparc/mm: " Kevin Brodsky
2026-01-14 7:21 ` Andreas Larsson
2025-12-15 15:03 ` [PATCH v6 13/14] x86/xen: use lazy_mmu_state when context-switching Kevin Brodsky
2025-12-15 15:03 ` [PATCH v6 14/14] mm: Add basic tests for lazy_mmu Kevin Brodsky
2025-12-17 4:14 ` Andrew Morton
2025-12-17 9:26 ` Kevin Brodsky
2025-12-17 10:01 ` Ryan Roberts
2025-12-17 15:37 ` Kevin Brodsky
2025-12-17 15:46 ` Ritesh Harjani
2025-12-17 16:10 ` Kevin Brodsky
2025-12-17 16:38 ` [PATCH] powerpc/mm: export symbols for lazy_mmu_mode KUnit tests Kevin Brodsky
2025-12-17 16:45 ` Ritesh Harjani
2025-12-17 17:30 ` Andrew Morton
2025-12-17 17:37 ` Kevin Brodsky
2025-12-21 23:42 ` kernel test robot
2025-12-17 16:38 ` [PATCH] mm: Add basic tests for lazy_mmu - fix for powerpc Kevin Brodsky
2025-12-18 10:05 ` [PATCH] sparc/mm: export symbols for lazy_mmu_mode KUnit tests Kevin Brodsky
2026-01-12 10:09 ` Kevin Brodsky
2026-01-14 7:25 ` Andreas Larsson [this message]
2026-01-09 15:07 ` [PATCH v6 14/14] mm: Add basic tests for lazy_mmu David Hildenbrand (Red Hat)
2026-01-12 9:45 ` Kevin Brodsky
2025-12-15 16:52 ` [PATCH v6 00/14] Nesting support for lazy MMU mode Yeoreum Yun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8cddb02c-6bc0-4c1b-85c5-a00e3e75b63a@gaisler.com \
--to=andreas@gaisler.com \
--cc=akpm@linux-foundation.org \
--cc=david@kernel.org \
--cc=kevin.brodsky@arm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=sparclinux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox