Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp32499pxb; Wed, 30 Mar 2022 22:07:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyv8ays8QVOXNtORcCUJKVojP12Zh8X1YkjhtdHMMXiXUNzhROfqCD39omjakJSg6rQ3LpD X-Received: by 2002:a17:902:6901:b0:156:4aad:fad7 with SMTP id j1-20020a170902690100b001564aadfad7mr3294845plk.33.1648703234118; Wed, 30 Mar 2022 22:07:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648703234; cv=none; d=google.com; s=arc-20160816; b=EpQdFnEpkEhKL7ZBjW2joCgw0//Azt1Vj3kaKo3oOyDX9Bcxy0i4oMchNgYSF5z+ro RZ06gZFhf7UbaMc5yVJlzuDecYkxOP1V8UEnlBc+1GentekbmvNF6p1cnuP27ooFtllm KVBsJYObLSpsJiW0rJG/Zm5CUnoydJ23siJm9Jf4dXvmGQqmXlbYi+agkw4Aw1pYQyAV kRnLsF9k0HV23EphLhlSxSR5KD66XlFP76YY2PHB72SyErpLsvJXoXju4MOX8qOFAsNJ C/pyiBqCDmITfxjFQDbid22nEmBdclgIkndr5Jgr9o1P5yx7qpxkoXR79rhw7D8GjzN2 VGFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=8NPuXtmkQe6NovnkmDlFmVy5m4QYYpAMInYA7xGOx2Q=; b=Gb++WQdHOJTjrtMu32Ny8CTnA/f9++DqmFefpkjtV1N2PN9RVFHDdqGn7WxELjGVSJ 85CErE8T2OyxEo3W326RAGTW5F9TfZ3W9zXV8Lj4e6VRBCAf1RosblfYV75peAryeV3F 8FxM0HL3TT9xKPaG1HAN1Ul09LidvL1lP2Fh5AXeOUEAWKTGk2mO1rEXHiJrkfcZTUGw 4p1B50CkQg+kK/4KyXCvy9T5BNij6WOz1T/VMy61osVvFvtpdWSmSXj59s9Z8gSRjMN1 R6fIxN+3uadYSmy7gEan5PbQ4IAan0v11IlUdu0CXtYfjpE+i1cFHIe7e9Qdcdb5mfEf rAQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=Igk8w1PS; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 66-20020a630745000000b003816043ee33si22812483pgh.40.2022.03.30.22.07.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 22:07:14 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=Igk8w1PS; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D2CAD208269; Wed, 30 Mar 2022 20:41:53 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229722AbiCaCsx (ORCPT + 99 others); Wed, 30 Mar 2022 22:48:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229526AbiCaCsu (ORCPT ); Wed, 30 Mar 2022 22:48:50 -0400 Received: from mail-yb1-xb30.google.com (mail-yb1-xb30.google.com [IPv6:2607:f8b0:4864:20::b30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3282FF47D9 for ; Wed, 30 Mar 2022 19:47:02 -0700 (PDT) Received: by mail-yb1-xb30.google.com with SMTP id j2so40107848ybu.0 for ; Wed, 30 Mar 2022 19:47:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8NPuXtmkQe6NovnkmDlFmVy5m4QYYpAMInYA7xGOx2Q=; b=Igk8w1PS8SQhCJ4GFifHaOTlnBZ1yUTlTCCw2ZKZOYZCf9pcG6n86gOTs3vA9A78Hg a+ebSS6n4PUW92g2u6vG4oXI1mBIUGcbZ/MDIxApF7hWs2GOEhrBMvjo/pthKNXl/2cG HQVZxuCD5z+5GC7HLQCIZI0O2bT+u6djqpg+y1m1oS3NWDCLB0b/j7VsJSta4O22nNWr l4Gc8pvgDj+0FKUE01YdbRW6Q/VEQZfXiuikPnP8XJozWPSzv1sViCWCAHReRVy59OW/ 9Wx0otMuBX2OmiSIBORuhn3bZCwqdgaQi4xUtsvKZJwouDMnT8tXRt5cPIexjx+wVFlU VCTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8NPuXtmkQe6NovnkmDlFmVy5m4QYYpAMInYA7xGOx2Q=; b=O88OAfrGt56mV7DGBwEYP17yir0Dj3B1u3epOggiIwnK/h6lF1B19cBO59C9Hgfxvp qRdoEJYUOR4jhFd8t2Ipxhsfeg5cbqYsaNbH/4KHtrCFJAan6scqAZpzWxpQVHM5Hglq bhEdfuj8IfNeE/Kd1tT5V7fa2yRSBgVQJ8SEgVq0f16YgtJQDwUSpv3n5vPAUHmdCcm1 UCl2WE/JGj7krtmfsUHD940Xz5XzOSiLsQ6LB73BsAskQ9+epZu5iKPo4th+vBG8BjON veWjtC80ndOvAoaSBxAmqGzrRhPfV35RvdL7Ye9E/5mOmFuZp0A7m4k39vh5mIRLE5KU 7qmw== X-Gm-Message-State: AOAM530CO5QrlS+n7OUr9iREFKFMqqS/NmoUsC7AzaAwKwsTAZW1g6V2 qxy8k/Td31kfY0wu5W3Jyb8EwkdIbtXLNjFD5pahJQ== X-Received: by 2002:a25:e70e:0:b0:634:1a47:4ff2 with SMTP id e14-20020a25e70e000000b006341a474ff2mr2472793ybh.89.1648694821329; Wed, 30 Mar 2022 19:47:01 -0700 (PDT) MIME-Version: 1.0 References: <20220330145400.18565-1-songmuchun@bytedance.com> <20220330194147.000c80ef35345397756e096e@linux-foundation.org> In-Reply-To: <20220330194147.000c80ef35345397756e096e@linux-foundation.org> From: Muchun Song Date: Thu, 31 Mar 2022 10:46:25 +0800 Message-ID: Subject: Re: [PATCH v3] arm64: mm: hugetlb: Enable HUGETLB_PAGE_FREE_VMEMMAP for arm64 To: Andrew Morton Cc: Will Deacon , David Hildenbrand , "Bodeddula, Balasubramaniam" , Oscar Salvador , Mike Kravetz , David Rientjes , Mark Rutland , Catalin Marinas , james.morse@arm.com, Barry Song <21cnbao@gmail.com>, LAK , LKML , Linux Memory Management List , Xiongchun duan , Fam Zheng , Muchun Song Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Thu, Mar 31, 2022 at 10:41 AM Andrew Morton wrote: > > On Wed, 30 Mar 2022 22:54:00 +0800 Muchun Song wrote: > > > --- a/fs/Kconfig > > +++ b/fs/Kconfig > > @@ -247,7 +247,7 @@ config HUGETLB_PAGE > > > > config HUGETLB_PAGE_FREE_VMEMMAP > > def_bool HUGETLB_PAGE > > - depends on X86_64 > > + depends on X86_64 || ARM64 > > This list is just going to get longer, until someone goes and switches > it to use ARCH_WANT_HUGETLB_PAGE_FREE_VMEMMAP or whatever. Why not do > that now? Good suggestion. Yep, the line is going to be long if someone wants to enable it for other architectures in the future. Will do. Thanks.