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: 12127149 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=-11.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,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 3F54DC433E0 for ; Wed, 10 Mar 2021 07:18:42 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id C10FC64F89 for ; Wed, 10 Mar 2021 07:18:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C10FC64F89 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=bytedance.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 4B2158D0175; Wed, 10 Mar 2021 02:18:41 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 461958D0148; Wed, 10 Mar 2021 02:18:41 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2DB438D0175; Wed, 10 Mar 2021 02:18:41 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0125.hostedemail.com [216.40.44.125]) by kanga.kvack.org (Postfix) with ESMTP id 114658D0148 for ; Wed, 10 Mar 2021 02:18:41 -0500 (EST) Received: from smtpin08.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id C0EB21801D02F for ; Wed, 10 Mar 2021 07:18:40 +0000 (UTC) X-FDA: 77903112000.08.2D29EC7 Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) by imf23.hostedemail.com (Postfix) with ESMTP id DA8EDA0009DC for ; Wed, 10 Mar 2021 07:18:38 +0000 (UTC) Received: by mail-pf1-f173.google.com with SMTP id q204so11337913pfq.10 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=Z0MshM6RFBU5IjdkpEDQjBoNB4mMSZ6t/6idX1bX2EU9IugheXGLam2U5CRrgoEvSE bKBxodAliaDD91nyWOwv3+qi3wETv8X7xVKkyP1ZVvmi3X6L8X2dOHbOMWqPSWEXtxDi M3S/xJzejwk9azrSTLTx04f43GmRc/lH3JiRhYFWMDQgVU7YPVxsMkvuFU3YSY172miv WR7K2H3GW1tcFQ3K0P+nnGH/idCUTOFrjzIIRKfu6Su0BquAoNLSTwy9R4GaXrvnrIQi rEJg1Ib6iEuHyI4/1QpJCodVZYmMzX/eShyi5wAyloazhsVAMusXjl5AQ23GB8nFTv7c rISw== X-Gm-Message-State: AOAM531C1zF8Yn3Jey12lKdUgzTI/kVYsvr6L+PAGLNG+5hRt3ICW+PM thq0gVplZ6v/ogos59HBgpyzOg== 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-Stat-Signature: npmcn7a8y984eoow3nszyo5trdw9mtsy X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: DA8EDA0009DC Received-SPF: none (bytedance.com>: No applicable sender policy available) receiver=imf23; identity=mailfrom; envelope-from=""; helo=mail-pf1-f173.google.com; client-ip=209.85.210.173 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1615360718-699367 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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