From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 3B33A2727EB for ; Sun, 5 Jul 2026 20:36:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783283788; cv=none; b=YUq94ODdt9Modwz9VafPsEKKycIkOPuxtCJEheFbKNEQQcXODLAJFyPLQU7V2sxaEMKE5nyRPTvNw+vohaEeeIF/UJWIIfXA42J+IhQXLDOfzp3kWKwyBQ3Otx7E6gMnehfkid6GjAOrZb9v/K2V0lfIo3tIdbnCmW/zJhiKbQQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783283788; c=relaxed/simple; bh=j7wMSI1G964hHxQnZOj85J++iJO0yK08WBoy9T6Jr4c=; h=Date:To:From:Subject:Message-Id; b=os1Vcu7g8dhyqAjDLoE1VufHWAm9jKEBoAZwXz9L3o6wxqq+x6KryNpsy2Hff9Pvu0E+y91qEssAvNtofifb47KWWJijjcIbjNokKDLVuAExiQLDiQESGhp2nLJsbjntzfG7g7278vpG9xjW5fanrrc7YIjXANEYD3QObz181vk= 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=ojTP4dCU; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="ojTP4dCU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC8BF1F00A3A; Sun, 5 Jul 2026 20:36:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=korg; t=1783283787; bh=9D8XjiUHSQbnqtBCO2/Bb7YnSVsNupfQsCovtIuanIo=; h=Date:To:From:Subject; b=ojTP4dCUcgkPBui6MkSeFe/mon9yakrMn6/L6O2ro93UflORC28N1spXXZlOedkAK xm5w94nFbl72EtfvNOp2ma37eMbBWjOTa3wpkO/mQdg97hL9nEak24QdFbZMoLP0Ip MgcDrMuBPKPJ+40Jg91NP5z8lA9IKNEqaWfdC8GQ= Date: Sun, 05 Jul 2026 13:36:26 -0700 To: mm-commits@vger.kernel.org,baohua@kernel.org,akpm@linux-foundation.org From: Andrew Morton Subject: [to-be-updated] arm64-vmalloc-allow-arch_vmap_pte_range_map_size-to-batch-multiple-cont_pte.patch removed from -mm tree Message-Id: <20260705203626.EC8BF1F00A3A@smtp.kernel.org> Precedence: bulk X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The quilt patch titled Subject: arm64/vmalloc: allow arch_vmap_pte_range_map_size to batch multiple CONT_PTE has been removed from the -mm tree. Its filename was arm64-vmalloc-allow-arch_vmap_pte_range_map_size-to-batch-multiple-cont_pte.patch This patch was dropped because an updated version will be issued ------------------------------------------------------ From: "Barry Song (Xiaomi)" Subject: arm64/vmalloc: allow arch_vmap_pte_range_map_size to batch multiple CONT_PTE Date: Thu, 18 Jun 2026 16:47:22 +0800 Allow arch_vmap_pte_range_map_size to batch across multiple CONT_PTE blocks, reducing both PTE setup and TLB flush iterations. Link: https://lore.kernel.org/20260618084726.1070022-3-jiangwen6@xiaomi.com Signed-off-by: Barry Song (Xiaomi) Signed-off-by: Wen Jiang Tested-by: Xueyuan Chen Tested-by: Leo Yan Cc: Andrew Donnellan Cc: Anshuman Khandual Cc: Catalin Marinas Cc: David Hildenbrand Cc: Dev Jain Cc: Mike Rapoport Cc: Ryan Roberts Cc: Uladzislau Rezki Cc: Wen Jiang Cc: Will Deacon Signed-off-by: Andrew Morton --- arch/arm64/include/asm/vmalloc.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) --- a/arch/arm64/include/asm/vmalloc.h~arm64-vmalloc-allow-arch_vmap_pte_range_map_size-to-batch-multiple-cont_pte +++ a/arch/arm64/include/asm/vmalloc.h @@ -23,6 +23,8 @@ static inline unsigned long arch_vmap_pt unsigned long end, u64 pfn, unsigned int max_page_shift) { + unsigned long size; + /* * If the block is at least CONT_PTE_SIZE in size, and is naturally * aligned in both virtual and physical space, then we can pte-map the @@ -40,7 +42,9 @@ static inline unsigned long arch_vmap_pt if (!IS_ALIGNED(PFN_PHYS(pfn), CONT_PTE_SIZE)) return PAGE_SIZE; - return CONT_PTE_SIZE; + size = min3(end - addr, 1UL << max_page_shift, PMD_SIZE >> 1); + size = 1UL << __fls(size); + return size; } #define arch_vmap_pte_range_unmap_size arch_vmap_pte_range_unmap_size _ Patches currently in -mm which might be from baohua@kernel.org are mm-vmalloc-extend-page-table-walk-to-support-larger-page_shift-sizes-and-eliminate-page-table-rewalk.patch mm-vmalloc-map-contiguous-pages-in-batches-for-vmap-if-possible.patch mm-vmalloc-align-vm_area-so-vmap-can-batch-mappings.patch