Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1612025ybi; Sun, 30 Jun 2019 20:14:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzup3xwsxlxGBr++i47eiuDkUqESdIL9wsmV8bPyx4ZTClMMKeX/TUpQ5rCpqLSYKgOeGcQ X-Received: by 2002:a63:89c2:: with SMTP id v185mr21887832pgd.241.1561950873624; Sun, 30 Jun 2019 20:14:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561950873; cv=none; d=google.com; s=arc-20160816; b=G+gwTIhPLQWuQtkHwX781/Kvj1i3KrVbg0yi98XZJooyMnGSRaVqu4DYUMu34hgULs cWpBXvGLw3I4tI2flcykgtt2MNuqZNvvjUEGJPh0g/80vm6hxLp0WY1r64Lzyb0ZIjPY hm26bktuybVhR8HaHzXG90yu/NGSDhPHtCAKxNEnAwx905XqtdWpCmijWFVbR+urLAtv kf329IN29R6Y/lmVIgzrC/eZLllC+kwdshjkBcJZCog4UPzhs45cURO8/xXZoXFtiGsM cHTET3i8bKMW8G6W5c+y/h5rTEW/70JlFH3h0PZJVo6rAoDfdX31zP42SewG5gZrWhMh LBXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject; bh=M134Ir3qPY8efMT0HKVpD3z5OrKBmB4izqCsJD0GFSE=; b=S3h7lcGkxusPCh9SXmUsPKP3PpwkeQhmDV7mY4h7WaFRpe0Fe3My1in9w6uFE7YyQ3 /L1KF5/LGuBrC/LFv2xcywKxGvDJUjObLoyvZd0UqtBjDl2uu3wuhXyt79tid3fdnwGa lN1BuqunD4URtDyNAYT4po4K+9h6ZVdpQQoAn2j9IQZL9051hOZs8p3VMIBs/vMRXLgO eWYduNjsXKz7U/v36R4BF7RbVc3UUPsV0OrlE29b0nZuOEiS2xIzT3fR/ZSzXGlvQYtT qosO1ToC+YqDhZVawOal+vsQQ2WQriVQuoFRksFiLDKT7JoO3Zx2voOJ/xwWeM3Bw8IE 0qVA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g23si9750112pfi.153.2019.06.30.20.14.17; Sun, 30 Jun 2019 20:14:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727216AbfGAB6x (ORCPT + 99 others); Sun, 30 Jun 2019 21:58:53 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:7682 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726983AbfGAB6x (ORCPT ); Sun, 30 Jun 2019 21:58:53 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 1CFB8B58BBD1B7700B70; Mon, 1 Jul 2019 09:58:50 +0800 (CST) Received: from [127.0.0.1] (10.177.223.23) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.439.0; Mon, 1 Jul 2019 09:58:45 +0800 Subject: Re: [PATCH REBASE v2 1/2] x86, arm64: Move ARCH_WANT_HUGE_PMD_SHARE config in arch/Kconfig To: Alexandre Ghiti , Christoph Hellwig , Mike Kravetz , Catalin Marinas , Will Deacon , Palmer Dabbelt , Albert Ou , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , , , , References: <20190526125038.8419-1-alex@ghiti.fr> <20190526125038.8419-2-alex@ghiti.fr> From: Hanjun Guo Message-ID: <7bfe451b-3f6b-2a26-5d43-692dde891cc0@huawei.com> Date: Mon, 1 Jul 2019 09:58:32 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20190526125038.8419-2-alex@ghiti.fr> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.223.23] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/5/26 20:50, Alexandre Ghiti wrote: > ARCH_WANT_HUGE_PMD_SHARE config was declared in both architectures: > move this declaration in arch/Kconfig and make those architectures > select it. > > Signed-off-by: Alexandre Ghiti > Reviewed-by: Palmer Dabbelt > --- > arch/Kconfig | 3 +++ > arch/arm64/Kconfig | 2 +- > arch/x86/Kconfig | 4 +--- > 3 files changed, 5 insertions(+), 4 deletions(-) > > diff --git a/arch/Kconfig b/arch/Kconfig > index c47b328eada0..d2f212dc8e72 100644 > --- a/arch/Kconfig > +++ b/arch/Kconfig > @@ -577,6 +577,9 @@ config HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD > config HAVE_ARCH_HUGE_VMAP > bool > > +config ARCH_WANT_HUGE_PMD_SHARE > + bool > + > config HAVE_ARCH_SOFT_DIRTY > bool > > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > index 4780eb7af842..dee7f750c42f 100644 > --- a/arch/arm64/Kconfig > +++ b/arch/arm64/Kconfig > @@ -70,6 +70,7 @@ config ARM64 > select ARCH_SUPPORTS_NUMA_BALANCING > select ARCH_WANT_COMPAT_IPC_PARSE_VERSION > select ARCH_WANT_FRAME_POINTERS > + select ARCH_WANT_HUGE_PMD_SHARE if ARM64_4K_PAGES || (ARM64_16K_PAGES && !ARM64_VA_BITS_36) > select ARCH_HAS_UBSAN_SANITIZE_ALL > select ARM_AMBA > select ARM_ARCH_TIMER > @@ -884,7 +885,6 @@ config SYS_SUPPORTS_HUGETLBFS > def_bool y > > config ARCH_WANT_HUGE_PMD_SHARE > - def_bool y if ARM64_4K_PAGES || (ARM64_16K_PAGES && !ARM64_VA_BITS_36) Why not remove config ARCH_WANT_HUGE_PMD_SHARE as well? Did I miss something? Thanks Hanjun