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 37586E88D8A 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: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:References:Message-Id:Cc:Date: In-Reply-To:From:Subject:Mime-Version:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Bhtrq6VSw7nKyEdkRY3vSdzonN/OHEm6DEaUO8lPJUE=; b=RCo6jfmUYIVT/h 6DEM5wDlhGzvxSSGQ7lcSUEulzkWSpy0Dy5rQuPU68qGrrDwPqxHeuS3UJD1gNb7+uL3XI5M8NhMP 8oCWAnVJ2oPfuVYzsnPhj4Dl8Vt+PbH6jwnHfTAo1BmvgnEJmoD/0SzW3TmieVk3L8xNiqe8LPsWr FOYqaqsHl/xaHA94GLaqNvt/yjpA0cyC1FNCljw0xFJK7v1IW7kvL6kja5i6dvplLwrpSK2sTTOiw M+RJsOUet7LzEzfFgOVChDu/kNTDbXJi8JaCKh4e4u0IXypwDt0OJkVCcRaXmEMMk3CAMuqScWj1P 1NnNZSsJByerHh5poPtQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1w8vZL-00000003Fev-2BRk; Sat, 04 Apr 2026 07:37:23 +0000 Received: from out-189.mta1.migadu.com ([95.215.58.189]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1w8vZJ-00000003Fdx-1O0k for linux-riscv@lists.infradead.org; Sat, 04 Apr 2026 07:37:22 +0000 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 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_540527_870DBF8A X-CRM114-Status: GOOD ( 13.18 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org > On Apr 4, 2026, at 15:17, Muchun Song wrote: > > 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: > > - vmemmap_set_pmd() simply sets a huge PMD with PAGE_KERNEL protection. > > - vmemmap_check_pmd() verifies that the PMD is present and leaf, > then calls the existing vmemmap_verify() helper. > > Architectures that need special handling can continue to override the > weak symbols; everyone else gets the standard version for free. > > This series drops the custom implementations in arm64, riscv, loongarch, > and sparc, replacing them with the generic implementation introduced > in the first patch. > > 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 > > 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(-) > > -- > 2.20.1 > _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv