Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp33029pxb; Wed, 30 Mar 2022 22:08:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwziDg/KCO2Sq0ULwwdnNOjF5B9s3FDj1a4jGcVyMPV/eNazpiOWpduMBmZ2SGXZZip/PaA X-Received: by 2002:a65:4143:0:b0:375:89f4:b46a with SMTP id x3-20020a654143000000b0037589f4b46amr9111023pgp.335.1648703292114; Wed, 30 Mar 2022 22:08:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648703292; cv=none; d=google.com; s=arc-20160816; b=eJzDy+/s8J/S5TSWmAcC1jqMHPYtiGUzIkEY/0wKS70C6dAK53QdQ9sk1TjioQHka6 1NENSiQhlnoRBAnXZprjPELS7vwXqOBkwsG2vZnnh2vpakMDWsGveMgi3nRGlvhFxCbz 9aMAFdqq+G2bj3jOxARn0k8S52Rrim0vwtZV4QM8SQuN0G8Ea/7d12PmPoW5uefnEJP6 kHDbiDlDwKgKc75dA6aTJ+Z2Ot+n3Ihx20J/Yax1JiVmTcB0aEV8FLqgOgA5FYkHTf9O 1BtyPFyalV0MllEVxQqz/ZgxPKLfOM0r+p0t5crWkawP7Q9yKqTz/83vqQvtNYhOb/98 Q6JQ== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=/kj5BF5tJ5aQjW0wSBaviUWO9XlXfwd5e3jgXTxR17g=; b=xA/a67hV1y6vhrIFpJDIb7MbGbrLJ0opCEvZs0CFW1TmSBE1cYJRjaAlioCh5nNRFC mBumsPb670L6nIGsQ6TZh5B9m6kmcgfymX4Md3aU13rNCr2i/rCh7syMOrvgThpV+qRW NAW4T64k2hU8KIUEvt/NDkdD0J7694vX46bSCP1nNC1O0lP2jQybYmQ6g4fmuckdRsPI bCQ8ICDw/rVGC3pTobm42dBT6CEmvty8AHklVZri9bdgkJGq67IRHZEdGuFWrm/VYB1l V5Thhnd91/MfQ3TeGayxJ772ABzpjLQCiJin/qvebgh3CXvg7DhnWcO85d3gbsm0WQ/4 Zr8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=MZbGRtle; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id g17-20020a056a000b9100b004fa3a8e0039si27593400pfj.240.2022.03.30.22.08.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 22:08:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=MZbGRtle; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E86D213DB63; Wed, 30 Mar 2022 20:42:27 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229939AbiCaCnk (ORCPT + 99 others); Wed, 30 Mar 2022 22:43:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229889AbiCaCnj (ORCPT ); Wed, 30 Mar 2022 22:43:39 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3078D70856 for ; Wed, 30 Mar 2022 19:41:51 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C7B26B81E94 for ; Thu, 31 Mar 2022 02:41:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F2A9FC340EC; Thu, 31 Mar 2022 02:41:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1648694508; bh=fFqDny+IW58LisJ6+taIO+4NpYn6YxJw3Mdt7OIWU0c=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=MZbGRtlePXflgbljaguji7KawLCzAaU2Rj87PxNV7ta18e2gEdOzyPt6V0/JNJpom 1iHh6+SkDtZztAt6yCB2LV/2L2UYDvs9CUjLaAws9pj+wjGMmJWd6LuZ41FPlVhtUZ noN3FEJblCWRJf3k9IdR1YgRAWAzOPsStqUmM6tA= Date: Wed, 30 Mar 2022 19:41:47 -0700 From: Andrew Morton To: Muchun Song Cc: will@kernel.org, david@redhat.com, bodeddub@amazon.com, osalvador@suse.de, mike.kravetz@oracle.com, rientjes@google.com, mark.rutland@arm.com, catalin.marinas@arm.com, james.morse@arm.com, 21cnbao@gmail.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, duanxiongchun@bytedance.com, fam.zheng@bytedance.com, smuchun@gmail.com Subject: Re: [PATCH v3] arm64: mm: hugetlb: Enable HUGETLB_PAGE_FREE_VMEMMAP for arm64 Message-Id: <20220330194147.000c80ef35345397756e096e@linux-foundation.org> In-Reply-To: <20220330145400.18565-1-songmuchun@bytedance.com> References: <20220330145400.18565-1-songmuchun@bytedance.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,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 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? > depends on SPARSEMEM_VMEMMAP