From patchwork Wed Mar 10 07:15:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Muchun Song X-Patchwork-Id: 12127163 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C641EC433E0 for ; Wed, 10 Mar 2021 07:23:59 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 390A064FCA for ; Wed, 10 Mar 2021 07:23:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 390A064FCA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=bytedance.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=eIZk1HXOYjfuH63zsKFKPBBDfKfOJTEpFcm4XsiiBdc=; b=PQB6Hw0PfVA+bQ8zHCnAG+IhmN GKzZD2Yll+OyDFxyax6Z8h35HBJ+hpLFlLeOk8GWcklyT4MdPVJMbjFlI97pTF1hoONXyXNm24tTf eFggHo/qpIdrnRnUUPL/Cs2/EZvBmuJPOFTCjSb8pgmmHlbIQ2ZD4RXwK3ae2T7HmFa5HMbKbwzYU AXjnxcmkIbR3l++xMUBGJ74aQbtZwG5YG3N7U+BJTDAuSVea9CpW44D3XBsWkGZB/a9aMz5N7tkaL FR64tOz6xfpo+lzk/+iTMnPyDQ6zbm3ewHMnpuKfUECx8yD43VuOlEjv/yFZfwJcNuFM9heUc6Yy0 jW30KF7g==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lJt8O-006CTE-Uc; Wed, 10 Mar 2021 07:19:58 +0000 Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lJt7B-006CKK-Pr for linux-arm-kernel@lists.infradead.org; Wed, 10 Mar 2021 07:19:06 +0000 Received: by mail-pg1-x52c.google.com with SMTP id o38so10796052pgm.9 for ; Tue, 09 Mar 2021 23:18:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=F1acND1EREShANGQfwTUC3wDcACmmIdncq6Z3tdRoug=; b=rSiSDLTTO9OyRJIiTzqs3PDPucfdAk0ncz5n2faubnnBgfgUvMRwjMsv/j/NvS9xQx ByRkaPxGurJ9JJnwecL2xl9lHke8Ug8+pTkcQyVJoIDtxUkH835i1JGhTntyrmu+N2ZI axXrUUVs8wsOh9dN9P3e5mgDExYlY2t2FhlGmDEU2WcHoi8JYsAfPtNmdBvM2BB7OPdj 9iULE8ql83rs2lo11YrMBzgTHlbJlTWPLNWUldQGWtvklZaZfoyPw3y3Yrr6BFBsDYkX DZ3xSkyNCQrxVy2Uq8sGjdeencQAnAZpRodlUPwG71WoEp0/yZV1rwrpV/sCF6/POSP1 MLmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=F1acND1EREShANGQfwTUC3wDcACmmIdncq6Z3tdRoug=; b=MSUZDZU0Jl1yHi1nfi3ECs45L7dyNLVEKmIyHSuH97xop9HuopTLtnywjveiR2i0im C1sllTsAzPozXL60R3T0v17SPqDYq+SpxNBz7ncXpHfTgadmeU1yCoXsszh/eRvqH4dh 3eusWvSznWo3auM89gp7kA0vUI6A9nmjnfMTY4AOHtwuTwkNu+bEznwrZCxpVNGriRYj D4KQlz7Z1g0HiDz25yNEvwCsJJNyTnPICvsF8Fx49eYzY8hEOOtrEnyO3tFJQL4I3XZA UHsfYfn0ojOTnXtFZXaBXJTP8pj3kUCt4Wa5YoeYWl7Xk8/N6fwK6/WL2XEbsDkis9qw JQoQ== X-Gm-Message-State: AOAM530i+yOj7LxH29pijIg7kh3ZPl0E3JIxc3K8e1CnT7rr2Fdi4Kx5 /Rk0RIvB5q8QZSHhrBTxsdDKhQ== X-Google-Smtp-Source: ABdhPJy+OheNUvM+6s60FDsLzV3hWPRHVS82OY7G2q1EtiK/mjCuYid1SfjT7rtQym2PnN0KU9IB6A== X-Received: by 2002:a63:e42:: with SMTP id 2mr1680025pgo.100.1615360718314; Tue, 09 Mar 2021 23:18:38 -0800 (PST) Received: from localhost.localdomain ([139.177.225.255]) by smtp.gmail.com with ESMTPSA id h15sm2828868pfo.20.2021.03.09.23.18.32 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Mar 2021 23:18:37 -0800 (PST) From: Muchun Song To: will@kernel.org, akpm@linux-foundation.org, david@redhat.com, bodeddub@amazon.com, osalvador@suse.de, mike.kravetz@oracle.com, rientjes@google.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, duanxiongchun@bytedance.com, Muchun Song Subject: [PATCH 0/3] Add support for free vmemmap pages of HugeTLB for arm64 Date: Wed, 10 Mar 2021 15:15:32 +0800 Message-Id: <20210310071535.35245-1-songmuchun@bytedance.com> X-Mailer: git-send-email 2.21.0 (Apple Git-122) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210310_071859_933357_DE822C71 X-CRM114-Status: GOOD ( 10.54 ) 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 This patchset is based on the series of "Free some vmemmap pages of HugeTLB page". More details can refer to the below link. https://lkml.kernel.org/r/20210308102807.59745-1-songmuchun@bytedance.com I often received some feedback (We want to test this feature on arm64) before. Because the previous code has been reviewed for 18 versions and is merged into mm tree, I think that it is time to release this patchset. If you want to test then you can start now :-). And I also hope someone can review this. Thanks. Muchun Song (3): mm: bootmem_info: mark register_page_bootmem_info_section __init mm: hugetlb: introduce arch_free_vmemmap_page arm64: mm: hugetlb: add support for free vmemmap pages of HugeTLB arch/arm64/mm/mmu.c | 5 +++++ arch/x86/mm/init_64.c | 5 +++++ fs/Kconfig | 4 ++-- mm/bootmem_info.c | 4 ++-- mm/sparse-vmemmap.c | 9 +++++++-- 5 files changed, 21 insertions(+), 6 deletions(-) Tested-by: Chen Huang