From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794910057; b=oj08S4NHZOP1kNAivxOhiw70KAyUngXldK3P6LIMbnSTTDRcBJZiomba9V6UHVyYKuHW d0h6+20+RdB+EfTLHb+xiv5fiabPDfbjnpqBjxsStXuIo/phbVWhTbTXe/1+KHGFu2ONv ps9jrp6hRf0Y6K19yqg80TlZcqyiQ9QvP9+hGyHX41DF7i45grsM3Lk7v/JeLHJH+bU9L yjkI8vGGUj/gt47A83cBrMrK2G7XHlQxTRNGvPmXiVL+hyP+8owr4F7Y+ISoWR+cbhPSP 3BY5dNBg3SmysWdHY5iFm8wN1MZ9cC2Z9HcXzzeae0tHfLqGza+Z0Aj8hqBVAWRlcTA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794910057; h=Received:DKIM-Signature:Message-ID:Date:MIME-Version:User-Agent: Subject:To:Cc:References:From:Content-Language:Autocrypt:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=bxF8qOjp6vNnHdNjUJYc2p7+hCu25MaSOgalSgx9SVs=; b=pv7uYovb1D+5II8ZqI2tf+uVqe+1+1E8wy+ERHmC0MzTTQoJmfIrdLcOTxvZActyofvY BfBd16NMZsf8tZw4Of9rUtFrmA3XWB0cqd5L2UfIq5tYhrE8tJAt3MgEOi45xOzLEMJPV 0DtMRDy49f7nDq/sLJLAaJEtYbmYELB3IOfoo66aBdL0fGbpOeiu6zHn5r8aMxuqbEX17 Bd1EG4tFA3bS7TDULUTxb+FTTFVnoGuljhsAnr6VYbb+6IKw9R5wjOITn8efVt8dMjSLt aHsEp6JsZrBs+85ruZXYO55lHRNgbiN21ZGx+HErEPsXn0OzTZEDV3hFQNtZGL+SUeA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="l/ijzxwQ"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2F4F5606A31C for ; Tue, 17 Nov 2026 10:07:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=l/ijzxwQ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 638F41F000C5; Tue, 17 Nov 2026 10:07:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794910057; bh=bxF8qOjp6vNnHdNjUJYc2p7+hCu25MaSOgalSgx9SVs=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=l/ijzxwQfcB+E2ocstph6eagwrpNqABEfE7SvWSCOkDKaUalJtZdDmiAgLI2bJoaE CtC6S1E5swy7wP86FmjYf1ioj8udPqnMn25Iqjhp9sfCMmBsUF7l686s06ksbXhONk j5SrmpfasYM7nlnNPG6KxnGdoWyyI3ZUQ0U66uLEK232hFRTEhm0UELjKeYCoNf0qg CJJX4Y6+9vkc6r15BapCVJyj5xukbfCRqte5s1XC4rkuaCV3Tn1PI/15a9jSTtvU8y QDKg3RAO1MSO7fHT96seDCFonUjcAzGnArvi3F1j4T54NmNJoKmbCyFa0DnrnEdXUq pGXMHHxTAPzRw== Message-ID: Date: Tue, 17 Nov 2026 11:07:27 +0100 X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 00/10] mm: highmem cleanups To: Arnd Bergmann , linux-mm@kvack.org Cc: Arnd Bergmann , Andreas Larsson , Andrew Morton , "Christophe Leroy (CS GROUP)" , Dave Hansen , "H. Peter Anvin" , Ingo Molnar , Jason Gunthorpe , Linus Walleij , "Lorenzo Stoakes (ARM)" , Lucas Stach , Madhavan Srinivasan , Malin Jonsson , Matthew Wilcox , Michael Ellerman , Michal Simek , Mike Rapoport , Nicholas Piggin , Nishanth Menon , Richard Weinberger , Russell King , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, linux-fsdevel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, x86@kernel.org References: <20261116124832.662455-1-arnd@kernel.org> From: "David Hildenbrand (Arm)" Content-Language: en-US Autocrypt: addr=david@kernel.org; keydata= xsFNBFXLn5EBEAC+zYvAFJxCBY9Tr1xZgcESmxVNI/0ffzE/ZQOiHJl6mGkmA1R7/uUpiCjJ dBrn+lhhOYjjNefFQou6478faXE6o2AhmebqT4KiQoUQFV4R7y1KMEKoSyy8hQaK1umALTdL QZLQMzNE74ap+GDK0wnacPQFpcG1AE9RMq3aeErY5tujekBS32jfC/7AnH7I0v1v1TbbK3Gp XNeiN4QroO+5qaSr0ID2sz5jtBLRb15RMre27E1ImpaIv2Jw8NJgW0k/D1RyKCwaTsgRdwuK Kx/Y91XuSBdz0uOyU/S8kM1+ag0wvsGlpBVxRR/xw/E8M7TEwuCZQArqqTCmkG6HGcXFT0V9 PXFNNgV5jXMQRwU0O/ztJIQqsE5LsUomE//bLwzj9IVsaQpKDqW6TAPjcdBDPLHvriq7kGjt WhVhdl0qEYB8lkBEU7V2Yb+SYhmhpDrti9Fq1EsmhiHSkxJcGREoMK/63r9WLZYI3+4W2rAc UucZa4OT27U5ZISjNg3Ev0rxU5UH2/pT4wJCfxwocmqaRr6UYmrtZmND89X0KigoFD/XSeVv jwBRNjPAubK9/k5NoRrYqztM9W6sJqrH8+UWZ1Idd/DdmogJh0gNC0+N42Za9yBRURfIdKSb B3JfpUqcWwE7vUaYr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BQeLVCH0mw3RAQg r7xDAYKIrAwfHHmMTnBQDPJwVqxJjVNr7yBic4yfzVWGCGNE4DnOW0vcIeoyhy9vnIa3w1uZ 3iyY2Nsd7JxfKu1PRhCGwXzRw5TlfEsoRI7V9A8isUCoqE2Dzh3FvYHVeX4Us+bRL/oqareJ CIFqgYMyvHj7Q06kTKmauOe4Nf0l0qEkIuIzfoLJ3qr5UyXc2hLtWyT9Ir+lYlX9efqh7mOY qIws/H2t In-Reply-To: <20261116124832.662455-1-arnd@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 11/16/26 13:48, Arnd Bergmann wrote: > From: Arnd Bergmann > > This is an updated series from what I posted last year [1] and > last week[2]. > > At LPC 2025 [3], we got rough consensus on the plan to keep the > funcationality present for the time being but instead reduce the scope > of highmem in the kernel as much as we can without hurting users. > > The short summary is a three stage process: > > 1. Nudge users towards using a larger lowmem zone with the > CONFIG_VMSPLIT_* options if at all possible. > > 2. Drop most __GFP_HIGHMEM allocations and corresponding kmap() > calls from the kernel, leaving only the subset that is likely > to contain the majority of the actual allocations. > Specifically we will keep anonymous and regular file backed > user mappings, zsmalloc, and huge pages. > > 3. In a few years, also drop the page cache allocations and leave > perhaps only zsmalloc using a much simpler interface. I suggested > five years as the time until we do this, but the timing depends a > lot on how the first two stages work out in practice, and how long > the remaining highmem users plan to keep updating their kernels. > > This series implements stage 1, mostly using Kconfig changes to the > default settings but leaving the traditional behavior as a CONFIG_EXPERT > choice in Kconfig. With the new defaults, most installations that use > highmem today with 1 GiB or 2 GiB of system RAM will see all of their > RAM in the lowmem zone after upgrading their kernels. My estimate is > that instead of 80% to 90% of maintained embedded 32-bit systems, this > should cover over 98%. > > As I don't actually have hardware in the category that still needs > highmem, I tested this using a qemu-system for Armv7 and PPC6xx running a > Debian userland with all combinations of VMSPLIT and HIGHMEM options. I > ran some kernel builds on the Arm guest to ensure that the new options > don't cause functional or performance regressions for regular workloads > that don't exceed the virtual address space. I also ran some tests > with Firefox and was positively surprised to see that this still works > on the VMSPLIT_2G_OPT configuration without highmem, though it gets > close to both the address space and lowmem size limits. > > The change to use VMSPLIT_3G_OPT by default on Armv5 means that I could > include a patch to no longer support highmem at all on VIVT caches, > as suggested by Jason Gunthorpe. I also included the patch to drop > HIGHPTE support now, as suggested by David Hildenbrand. > > The patches from this series are available in [4] for testing. > > Once there are no further concerns about the contents, I would > suggest merging this through the asm-generic tree, as it touches > mostly architecture specific code and that is not easily split > from the core mm/* code. Merging everything through the mm > tree would of course also work. > > Arnd > > [1] https://lore.kernel.org/all/20251219161559.556737-1-arnd@kernel.org/ # v1 > [2] https://lore.kernel.org/all/20261112112528.1116405-1-arnd@kernel.org/ # v2 > [3] https://lwn.net/Articles/1051010/ > [4] https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git/log/?h=highmem-7.4 > > Changes since v2: > > - Add preparation patch for Arm PXA [sashiko-bot] > - Add preparation patch for powerpc32/kvm [sashiko-bot] > - Fix Arm ARCH_MMAP_RND_BITS_MAX calculation [sashiko-bot] > - Simplification for pte_alloc_one() [Mike Rapoport] > - Drop stale references to highpte [David Hildenbrand] > - improve __print_bad_page_map_pgtable() > - Split out Arm changes for CONFIG_VMSPLIT_2G_OPT > > Changes since v1: > - rebase to v7.4-rc > - add patch to drop highpte > > Arnd Bergmann (10): > ARM: remove support for highmem on VIVT > ARM: drop CONFIG_HIGHPTE support > ARM: pxa: support arbitrary PAGE_OFFSET > powerpc: kvm: allow flexible PAGE_OFFSET > arch/*: increase lowmem size to avoid highmem use > ARM: add CONFIG_VMSPLIT_2G_OPT option > ARM: defconfig: turn off highmem in favor of CONFIG_VMSPLIT_2G_OPT > mm: remove ARCH_NEEDS_KMAP_HIGH_GET > mm: drop HIGHPTE support altogether > mm: print pte in __print_bad_page_map_pgtable() > > arch/arm/Kconfig | 27 +++--- > arch/arm/configs/aspeed_g5_defconfig | 3 +- > arch/arm/configs/gemini_defconfig | 1 - > arch/arm/configs/lpae.config | 1 + > arch/arm/configs/multi_v5_defconfig | 1 - > arch/arm/configs/multi_v7_defconfig | 1 + > arch/arm/configs/mvebu_v5_defconfig | 1 - > arch/arm/configs/omap2plus_defconfig | 1 + > arch/arm/configs/u8500_defconfig | 1 - > arch/arm/configs/vt8500_v6_v7_defconfig | 2 - > arch/arm/include/asm/highmem.h | 56 +---------- > arch/arm/include/asm/pgalloc.h | 13 +-- > arch/arm/mach-omap2/Kconfig | 1 - > arch/arm/mach-pxa/pxa3xx.c | 2 +- > arch/arm/mm/cache-feroceon-l2.c | 31 +----- > arch/arm/mm/cache-xsc3l2.c | 47 +-------- > arch/arm/mm/dma-mapping.c | 12 +-- > arch/arm/mm/flush.c | 19 +--- > arch/microblaze/Kconfig | 9 +- > arch/microblaze/configs/mmu_defconfig | 1 - > arch/powerpc/Kconfig | 24 +++-- > arch/powerpc/configs/44x/akebono_defconfig | 1 - > arch/powerpc/configs/85xx/ksi8560_defconfig | 1 - > arch/powerpc/configs/85xx/stx_gp3_defconfig | 1 - > arch/powerpc/kvm/book3s_32_sr.S | 4 +- > arch/powerpc/kvm/booke_interrupts.S | 4 +- > arch/powerpc/kvm/e500_mmu_host.c | 3 +- > arch/x86/Kconfig | 4 +- > include/linux/hugetlb.h | 5 +- > include/linux/mm.h | 1 - > include/linux/pgtable.h | 13 --- > mm/highmem.c | 100 ++------------------ > mm/memory.c | 21 ++-- > mm/pgtable-generic.c | 25 +++-- > mm/userfaultfd.c | 6 +- I can pick up the MM patches after the ARM stuff upstream, or the MM patches can go upstream in the same go as the ARM stuff. I don't expect conflicts in that area. Just let me know what you+people prefer. -- Cheers, David