Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2757223ybi; Mon, 1 Jul 2019 18:30:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqyupFnb4WYuqOMiCU46IQ/vUHesoBal2glUm2DSEcmVKlymtnZJAUo6lzQYLbiu815m66MY X-Received: by 2002:a63:1d2:: with SMTP id 201mr27824026pgb.232.1562031011402; Mon, 01 Jul 2019 18:30:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562031011; cv=none; d=google.com; s=arc-20160816; b=ehqlmT4WYTvCANdGJQWwM3kNccb8bgQo/z9TGwIEO0bgndBB8pU9VhaH6berz4y8JA gg+SQvyJ8RpxsIec0wHGIsHSCqgB3jrmGxI17KVYWXqc6bRgHK9f+IeB/+p6Xa2soacH fEbriHKIs9ar1Nqds+PQ6lI1dEvLdoDBJP3EhNFSrb2pxgAY4lj3729DudHnUvKNqjYA X3vZ+C6jA5PrlFwsQ+i3jdjM95zDXlAK7qfluZzjVoPCAYCBA82Gs/dAq7KO69Nzg3mm Xs8MDId9hs69UY92zGXLSOfgBbznZwTbF4Tu9RLQweJdmROKKePrmC2jcdJ/fPEb5a+B /e4A== 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=Zde1pKA9aMtaJ2lpnr31j/dCJDFIHuTD+3IKngfSWlI=; b=aq4dgk/Rgh10bYg6oC7U10esLzULHP80hqZf1ZuhQs55yNGDzOX1JvsruesftDV1+Y yzHEZKxCKToIrnWjs/MsKLRtcNuPPre1TTsAYHjx4DpdghNpj4EdwrpJg3mt/fiveKV2 aw/NJumJPBCCT1mn4Y2sqYSLKCz13QeMP37lbeegVxb/++RCr6nAsPOHxWTAaFkyo271 JxmJtC2S1WYz1MmekibNzR5cFRriJeQVLt3QcRngY7f5zRA90YXPJ4ROWCYiVhlyr3i3 FkAEH6t8BXRw7+OqPnTqixyH6EsMlcj1k9d2lIJVegCJp1SvX4aAGdCRmj8rioQVq87v Dujw== 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 u24si11522941pgi.3.2019.07.01.18.29.56; Mon, 01 Jul 2019 18:30:11 -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 S1726936AbfGBB1v (ORCPT + 99 others); Mon, 1 Jul 2019 21:27:51 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:50646 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726347AbfGBB1u (ORCPT ); Mon, 1 Jul 2019 21:27:50 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 7196994F70EEB513B376; Tue, 2 Jul 2019 09:27:48 +0800 (CST) Received: from [127.0.0.1] (10.177.223.23) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.439.0; Tue, 2 Jul 2019 09:27:47 +0800 Subject: Re: [PATCH v3 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: <20190701175900.4034-1-alex@ghiti.fr> <20190701175900.4034-2-alex@ghiti.fr> From: Hanjun Guo Message-ID: <18144cc2-f552-b2cc-c41a-47c754de2b0d@huawei.com> Date: Tue, 2 Jul 2019 09:27:24 +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: <20190701175900.4034-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/7/2 1:58, 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 > --- > arch/Kconfig | 3 +++ > arch/arm64/Kconfig | 4 +--- > arch/x86/Kconfig | 4 +--- > 3 files changed, 5 insertions(+), 6 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 697ea0510729..c862575decd3 100644 > --- a/arch/arm64/Kconfig > +++ b/arch/arm64/Kconfig > @@ -71,6 +71,7 @@ config ARM64 > select ARCH_SUPPORTS_NUMA_BALANCING > select ARCH_WANT_COMPAT_IPC_PARSE_VERSION if COMPAT > 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 > @@ -901,9 +902,6 @@ config HW_PERF_EVENTS > 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) > - Reviewed-by: Hanjun Guo Thanks Hanjun