Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2165757iob; Fri, 20 May 2022 03:36:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSmZuUyG2sKviHH4WTr6HPyFKq37xszkMtdEwyvQmLao66NQ6wXQWWhyu7In+wn7rOG5rN X-Received: by 2002:a63:cf13:0:b0:3f2:82c4:f279 with SMTP id j19-20020a63cf13000000b003f282c4f279mr7894793pgg.348.1653042972545; Fri, 20 May 2022 03:36:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653042972; cv=none; d=google.com; s=arc-20160816; b=TuAKthLqy3bGY0MKmI2vHw0TFcJT5KlYfbfLfDAJ8c3cYNZt1zezc8SSINlvINsIgT DG2LFIyA75FHpQxWzijZjhG1ha6wYhJJ02kNkwHl4fTrY/yDSHmg0LADPpP3OCsT8Zsv gGQIazX1oAgcRGGPQZZdtxdb13PHIzrnSLkqfDX52dJ1mh72TQ8cwDITE+sErXOrJXMU MqpRRPCtoA/kxrMuHlLdiQfNKGd44FvCwcWwLES3aW4PaCdZ+RVVRVqVy+GeddoDnfsE B/95f4Pa7vndGLK+rRLG2eNbxUFliNlRaVSm9mxj2BJjIqBPtWcOQtCo5cHHuTFVlBVm 5vkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=arFWL10Ch1n8yhdI9Mk3g6bNs91IYU+HlkP+JS3nOtc=; b=jCEJi3ABabhlr8W3iwDd7uazsgwXc5iw/uSuGxRJV1lcHlScmQCNf9uzifOkOaR+UU SkxTpd/Re9cFMOrv/4bd7RKqnzHxnb4VfdSWID0d6r1wKg+FIro2IVF+U6QBK65Rn2Yf jYp2ynRBIon2yPTM62VIXkbna/3GECnz4Rk0GfQeuW6+cQ3WwGtOPxuYy+Kg/e4V4JGr HJ40QvIjARqRSnZwbwnzFw33xMqmwAHyiitpCLAKN29NrpJlq8HjS7CFC0ObP3glaTOM ZJ8GAGYom+1vKWvMOanBiO/iAXLZmuC/n4luS8MD9yZEfRPBplBgZFDTv9gMFEhewRIX HUMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=wizXH2T4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 127-20020a630185000000b003f979ee8706si752094pgb.765.2022.05.20.03.35.59; Fri, 20 May 2022 03:36:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=wizXH2T4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343908AbiETC4c (ORCPT + 99 others); Thu, 19 May 2022 22:56:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229847AbiETC4a (ORCPT ); Thu, 19 May 2022 22:56:30 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF7FC5F8D4 for ; Thu, 19 May 2022 19:56:27 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id ev18so6867410pjb.4 for ; Thu, 19 May 2022 19:56:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=arFWL10Ch1n8yhdI9Mk3g6bNs91IYU+HlkP+JS3nOtc=; b=wizXH2T4i0hpvyt1QyLKg8TJlFJ0pfc6am4wF+te/O3S9glO8olN0SHXNgf4XMOoeA vV2Wnl58mBKeekoB6US+vMjbV3r6LPQEj/7d2af5doeUV7LO3RAnChsoB+paO63F+lE3 gIPtQB8Ee/hMqlf28gB6G0/OTsSEN7FhLi5vHK0GQNb2sbI+CJfs5nHoUTlVCtnj/TYK Sk6i6HD1cC+PTtTSSAi94V29xLQ7WhlBol3au+V0pxZ3UHwyuy4gCQv6l6w5VW3jZVFl E8eSg2aW86VGC044TmzYkarO+G2YkcYUswMF/Gshk+GKcHuvJgULhv9XTs+YgMxXR6w6 3fBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=arFWL10Ch1n8yhdI9Mk3g6bNs91IYU+HlkP+JS3nOtc=; b=2LEPa815dyjj8KiXnEcMQP3MB6y3RYcvzPAoi/2QjMifQJHmpKAgnFqvV4paQofHN6 vpWJFMLqwQk4zrZiTs+1U/oEXo4nF9inyXO5URmWILfuk2lrteUKVrHs0/gGjDNox2P2 99AeE+SBVDlJxjTmMR5dnU1u4nGVqgjwaZhiaEkt/BBzZy6/n+TrMHcdHPqeFPR+6scl Yss4kphmFYQvnmm9JHmTf6iKC9ONUCcDcaKLdzWD2387g7yJitZ8BA666tf02NitqFdw WKoPDdnvygLuFhc/6e1WEhzHjApavw96SZTUAnafID7WwUbfnSmZtok4gq47cdW4AF+k atig== X-Gm-Message-State: AOAM531w8u+YxY792CHoQNFs6V8k+f6IKVShY3EiREIo5/Vd2++G/rxy 5uzlLJ0qffoW6K+uQ9Vwe5RJsg== X-Received: by 2002:a17:90b:4d0c:b0:1df:c9a6:84d8 with SMTP id mw12-20020a17090b4d0c00b001dfc9a684d8mr8900143pjb.231.1653015386971; Thu, 19 May 2022 19:56:26 -0700 (PDT) Received: from FVFYT0MHHV2J.bytedance.net ([139.177.225.234]) by smtp.gmail.com with ESMTPSA id o10-20020a62f90a000000b0050dc76281a5sm225675pfh.127.2022.05.19.19.56.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 May 2022 19:56:26 -0700 (PDT) From: Muchun Song To: corbet@lwn.net, akpm@linux-foundation.org, paulmck@kernel.org, mike.kravetz@oracle.com, osalvador@suse.de, david@redhat.com Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, duanxiongchun@bytedance.com, smuchun@gmail.com, Muchun Song Subject: [PATCH v2 0/2] make hugetlb_optimize_vmemmap compatible with memmap_on_memory Date: Fri, 20 May 2022 10:55:36 +0800 Message-Id: <20220520025538.21144-1-songmuchun@bytedance.com> X-Mailer: git-send-email 2.32.1 (Apple Git-133) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series makes hugetlb_optimize_vmemmap compatible with memmap_on_memory and is based on next-20220518. The reason refers to the patch 2's commit log. v2: - Fix compile error when !CONFIG_ZONE_DEVICE reported by kernel test robot. Muchun Song (2): mm: memory_hotplug: enumerate all supported section flags mm: memory_hotplug: introduce SECTION_CANNOT_OPTIMIZE_VMEMMAP Documentation/admin-guide/kernel-parameters.txt | 22 ++++---- Documentation/admin-guide/sysctl/vm.rst | 5 +- include/linux/kconfig.h | 1 + include/linux/memory_hotplug.h | 9 ---- include/linux/mmzone.h | 71 ++++++++++++++++++++++--- mm/hugetlb_vmemmap.c | 28 +++++++--- mm/memory_hotplug.c | 28 +++++----- mm/sparse.c | 8 +++ 8 files changed, 119 insertions(+), 53 deletions(-) -- 2.11.0