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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 3B43EE88D8B for ; Sat, 4 Apr 2026 07:37:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:To:References:Message-Id: Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Subject:Mime-Version: Content-Type:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=3nWmxlFNX2J4GFdZGRIfE23zfRXOguYRhAS78blu2KA=; b=kAvaWLAKOpxB9DXdYelfSdjYXr ykIb5Arf4UhaNRQrLDo5HPDO4jkO27+WH5o/gYVePPZKY7LoL36ZjWab7aqY2a9k9EuTLKmZ/vyGK v0u20gTCVQtbu6dOZJsqUzj3ekdKdXCzAtH5UnT0G1DcTE9gdIycKKhC+ZylODt/7W7ceWapZ7PA/ nRx6Pyh9DZKdDLUelOUIdxotR0qTfmWXfHoCnJzlfNgT8niEuKzvwKM/9LBZTnro75PdoTU4FUavq tHkUkWbiYQoquldjEDxKvau574kMjKTboLcKO3kV/Bu1z3820nyyHiorIIGVuZrdMyPf+O9VUeiNK hh/XeWlQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1w8vZL-00000003Fez-3NdQ; Sat, 04 Apr 2026 07:37:23 +0000 Received: from out-172.mta1.migadu.com ([95.215.58.172]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1w8vZJ-00000003Fe1-2Q80 for linux-arm-kernel@lists.infradead.org; Sat, 04 Apr 2026 07:37:22 +0000 Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1775288226; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3nWmxlFNX2J4GFdZGRIfE23zfRXOguYRhAS78blu2KA=; b=J33Tenz/ujh68w+9y9GSofFFuNbYRuCJy01kusKKlEkABY5ljUk6uvJbKYDHMmHBIJOXFT UXtt8AucZB5bfd/OfHI0wkfWil+HoheGoWkV+iMawWx8h6mRgQdLXNbMYzhRG4ENO3ICHP 3j2bY5ABGkDxRJU5fjDVh4NEdUHMPd4= Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.500.181\)) Subject: Re: [PATCH 0/5] mm/sparse-vmemmap: provide generic vmemmap_set_pmd() and vmemmap_check_pmd() X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: <20260404071720.3577290-1-songmuchun@bytedance.com> Date: Sat, 4 Apr 2026 15:35:52 +0800 Cc: Catalin Marinas , Will Deacon , Huacai Chen , Paul Walmsley , Palmer Dabbelt , Albert Ou , "David S. Miller" , Andreas Larsson , Andrew Morton , David Hildenbrand , WANG Xuerui , Alexandre Ghiti , Lorenzo Stoakes , "Liam R. Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Ryan Roberts , Kevin Brodsky , Dev Jain , Anshuman Khandual , Yang Shi , Chaitanya S Prakash , Yuquan Wang , Petr Tesarik , Austin Kim , "Vishal Moola (Oracle)" , Junhui Liu , "Matthew Wilcox (Oracle)" , Alex Shi , Chengkaitao , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, linux-riscv@lists.infradead.org, sparclinux@vger.kernel.org, linux-mm@kvack.org Content-Transfer-Encoding: quoted-printable Message-Id: <2CFBEBBC-5273-48E9-9E5F-1F4599194050@linux.dev> References: <20260404071720.3577290-1-songmuchun@bytedance.com> To: Muchun Song X-Migadu-Flow: FLOW_OUT X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260404_003721_756631_D224B920 X-CRM114-Status: GOOD ( 14.14 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org =20 > On Apr 4, 2026, at 15:17, Muchun Song = wrote: >=20 > The two weak functions vmemmap_set_pmd() and vmemmap_check_pmd() are > currently no-ops on every architecture, forcing each platform that = needs > them to duplicate the same handful of lines. Provide a generic = implementation: >=20 > - vmemmap_set_pmd() simply sets a huge PMD with PAGE_KERNEL = protection. >=20 > - vmemmap_check_pmd() verifies that the PMD is present and leaf, > then calls the existing vmemmap_verify() helper. >=20 > Architectures that need special handling can continue to override the > weak symbols; everyone else gets the standard version for free. >=20 > This series drops the custom implementations in arm64, riscv, = loongarch, > and sparc, replacing them with the generic implementation introduced > in the first patch. >=20 > Muchun Song (5): > mm/sparse-vmemmap: provide generic vmemmap_set_pmd() and > vmemmap_check_pmd() > arm64/mm: drop vmemmap_pmd helpers and use generic code > riscv/mm: drop vmemmap_pmd helpers and use generic code > loongarch/mm: drop vmemmap_check_pmd helper and use generic code > sparc/mm: drop vmemmap_check_pmd helper and use generic code Hi all, Please accept my sincere apologies for the mailing list noise. Due to an error in my local scripts (failing to clean up the patch output directory before regenerating the series with an updated commit range), multiple duplicate and conflicting patches were accidentally sent to the list simultaneously (10 patches in total instead of the intended 5). Sorry again for the inconvenience. Thanks, Muchun=20 >=20 > arch/arm64/mm/mmu.c | 14 -------------- > arch/loongarch/mm/init.c | 11 ----------- > arch/riscv/mm/init.c | 13 ------------- > arch/sparc/mm/init_64.c | 11 ----------- > mm/sparse-vmemmap.c | 7 ++++++- > 5 files changed, 6 insertions(+), 50 deletions(-) >=20 > --=20 > 2.20.1 >=20