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 EA9F93E8326 for ; Mon, 1 Jun 2026 18:17:00 +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=1780337829; cv=none; b=c/eZwQfPRYadO1LkeRhuuE0ayZSvzCUvLH+MaGSQon1j02oPGxOVcvc8CZyK4LeB3wxXL+PTrAHuodag6H0NKV2LOkyZ2E84Pbl91Ht90tM6yhYUJgiJF6VfeejYvy0Kezx4IXzPg8JC/7ZE67dw4269QvWYggvWgUwa7PFKu/k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780337829; c=relaxed/simple; bh=HKV5nmNdY03hM/8V53OdKM19KJ9AJRIYWnp4pEqvTx8=; h=Date:To:From:Subject:Message-Id; b=ppSMRbL2THBK0Qs8FG2B7Ks9pF0coO8zqwi8KJA0JwH1WdGUNlEggZYSNi93r3QLl9cQuUZU1pwkLquGrYmK3viOr9+b34kVVMMgKyp7U/UU6FLjKyzbLEPa647RmhK+8Bmw6d4Ce9DlmTQ/wHQ+XUJBTyocV2gp/TddbyPx6M8= 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=PqKIRlPE; 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="PqKIRlPE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 407EF1F00899; Mon, 1 Jun 2026 18:17:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=korg; t=1780337820; bh=R6/h0XvK9pJafTtqMTvw+HxCSju1se/UTWk7nepsQh0=; h=Date:To:From:Subject; b=PqKIRlPEa8pEnUgVs9JdHff7Pf7mKphbsX1QgW+JvoAwZwr7ZKLpYrnrXwyLufgpb k1QRhfKnQYTvG2SvRs20vDUil/EzV56d81736UBGsV7XO88wbpFPJAV5Xbt7f1v09I C7CXjxYgNZBS9S71Wg4davESuDryzyEyeVl2DvD4= Date: Mon, 01 Jun 2026 11:16:59 -0700 To: mm-commits@vger.kernel.org,will@kernel.org,vbabka@kernel.org,surenb@google.com,rppt@kernel.org,palmer@dabbelt.com,mhocko@suse.com,ljs@kernel.org,liam@infradead.org,kernel@xen0n.name,david@kernel.org,davem@davemloft.net,chenhuacai@kernel.org,catalin.marinas@arm.com,aou@eecs.berkeley.edu,andreas@gaisler.com,alex@ghiti.fr,songmuchun@bytedance.com,akpm@linux-foundation.org From: Andrew Morton Subject: + riscv-mm-drop-vmemmap_pmd-helpers-and-use-generic-code.patch added to mm-new branch Message-Id: <20260601181700.407EF1F00899@smtp.kernel.org> Precedence: bulk X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The patch titled Subject: riscv/mm: drop vmemmap_pmd helpers and use generic code has been added to the -mm mm-new branch. Its filename is riscv-mm-drop-vmemmap_pmd-helpers-and-use-generic-code.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/riscv-mm-drop-vmemmap_pmd-helpers-and-use-generic-code.patch This patch will later appear in the mm-new branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Note, mm-new is a provisional staging ground for work-in-progress patches, and acceptance into mm-new is a notification for others take notice and to finish up reviews. Please do not hesitate to respond to review feedback and post updated versions to replace or incrementally fixup patches in mm-new. The mm-new branch of mm.git is not included in linux-next If a few days of testing in mm-new is successful, the patch will me moved into mm.git's mm-unstable branch, which is included in linux-next Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via various branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there most days ------------------------------------------------------ From: Muchun Song Subject: riscv/mm: drop vmemmap_pmd helpers and use generic code Date: Mon, 1 Jun 2026 16:48:42 +0800 The generic implementations now suffice; remove the riscv copies. Link: https://lore.kernel.org/20260601084845.3792171-4-songmuchun@bytedance.com Signed-off-by: Muchun Song Reviewed-by: David Hildenbrand (Arm) Cc: Albert Ou Cc: Alexandre Ghiti Cc: Andreas Larsson Cc: Catalin Marinas Cc: David S. Miller Cc: Huacai Chen Cc: Liam R. Howlett Cc: Lorenzo Stoakes Cc: Michal Hocko Cc: Mike Rapoport Cc: Palmer Dabbelt Cc: Suren Baghdasaryan Cc: Vlastimil Babka Cc: WANG Xuerui Cc: Will Deacon Signed-off-by: Andrew Morton --- arch/riscv/mm/init.c | 13 ------------- 1 file changed, 13 deletions(-) --- a/arch/riscv/mm/init.c~riscv-mm-drop-vmemmap_pmd-helpers-and-use-generic-code +++ a/arch/riscv/mm/init.c @@ -1359,19 +1359,6 @@ void __init misc_mem_init(void) } #ifdef CONFIG_SPARSEMEM_VMEMMAP -void __meminit vmemmap_set_pmd(pmd_t *pmd, void *p, int node, - unsigned long addr, unsigned long next) -{ - pmd_set_huge(pmd, virt_to_phys(p), PAGE_KERNEL); -} - -int __meminit vmemmap_check_pmd(pmd_t *pmdp, int node, - unsigned long addr, unsigned long next) -{ - vmemmap_verify((pte_t *)pmdp, node, addr, next); - return 1; -} - int __meminit vmemmap_populate(unsigned long start, unsigned long end, int node, struct vmem_altmap *altmap) { _ Patches currently in -mm which might be from songmuchun@bytedance.com are mm-memory_hotplug-factor-out-altmap-freeing-checks.patch drivers-base-memory-make-memory-block-get-put-explicit.patch mm-sparse-vmemmap-provide-generic-vmemmap_set_pmd-and-vmemmap_check_pmd.patch arm64-mm-drop-vmemmap_pmd-helpers-and-use-generic-code.patch riscv-mm-drop-vmemmap_pmd-helpers-and-use-generic-code.patch loongarch-mm-drop-vmemmap_check_pmd-helper-and-use-generic-code.patch sparc-mm-drop-vmemmap_check_pmd-helper-and-use-generic-code.patch