Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1751187ybi; Sun, 30 Jun 2019 23:21:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqzaeLfRU+0MEzcBj1MPedUrxZ6zk8XbWlk2Ewhf6GVIeODUhIxLIdbegSJmU5zQ3OYQl+Pp X-Received: by 2002:a17:902:8d95:: with SMTP id v21mr26563517plo.225.1561962103916; Sun, 30 Jun 2019 23:21:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561962103; cv=none; d=google.com; s=arc-20160816; b=DMeUz8ejwu2lA98V8zX9W/67VzGEEwTVgquG6psvH/rMVD+R0y8QYlJygnDZwnJwDU Ln/PENbJCehdsGeLCg3w62s4HkhEPIs2bRACC+i8Sdax8UZiWkdyyzR0QiVvRtxvMS0q F8bEr2aJq1EfCZtMGY9fy+AU9NliKskSlIopr0qwaFSTLXQgaow8s54O+2S0eajcqGDp LqSIAao09HVF8bD39dSrRyBQBLNMwPajUpOcDC9efkqweQBxTRi8phmQbuQVYX76j4ip QqfpxPYemFLxJHCmZUA2In2Yzhe6ulXgCUoH9+Su5GVq3XaYuyZP2TYLmrQZ+PaZQ2x7 FGZA== 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:in-reply-to :mime-version:user-agent:date:message-id:references:subject:cc:to :from; bh=bBjatiNxR14T8rNdLeOv9IJePsmhUTZxM8GKGQhhNoo=; b=YFPeoGVftj33nkK3eldSIJu74O6+AUbY/rcM3VPb/RylQXRtPf+xo2mPcoFqvXfDIe CNkXJixMpZTOCOOaLv4KlXBkU2r2G7Rlgv3/ms9Ku+7n9BPZfmPTWg3hZ4wsj8k79w1w MKWaOb7iO+bZd4iM3jT3JO4I08vOUWs6CYw7vmzI5BpDfKH9WSwrnBEcRY0aSoCfDiOs b/Vxj0gGiu6gIHRoo+2rJEG2KSLi8eqHpZA4oxa/U9kmNe2FV6dPonpXTQ3xzb3Jea+W gFfGFgNA7qFb26Xy1l8QkiD6OYdtcpo3MkN5pdOBOWX2kn2pAX07VdBFuVleofkFUDGZ Hdqg== 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 g32si9877330pje.38.2019.06.30.23.20.59; Sun, 30 Jun 2019 23:21:43 -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 S1727010AbfGAFhh (ORCPT + 99 others); Mon, 1 Jul 2019 01:37:37 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:44851 "EHLO relay11.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725777AbfGAFhh (ORCPT ); Mon, 1 Jul 2019 01:37:37 -0400 Received: from [192.168.0.12] (127.19.86.79.rev.sfr.net [79.86.19.127]) (Authenticated sender: alex@ghiti.fr) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 6C772100005; Mon, 1 Jul 2019 05:37:27 +0000 (UTC) From: Alex Ghiti To: Hanjun Guo Cc: Christoph Hellwig , Mike Kravetz , Catalin Marinas , Will Deacon , Palmer Dabbelt , Albert Ou , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH REBASE v2 1/2] x86, arm64: Move ARCH_WANT_HUGE_PMD_SHARE config in arch/Kconfig References: <20190526125038.8419-1-alex@ghiti.fr> <20190526125038.8419-2-alex@ghiti.fr> <7bfe451b-3f6b-2a26-5d43-692dde891cc0@huawei.com> Message-ID: <7298dc73-a0c6-54ae-b4bd-0c0a9f76f9d4@ghiti.fr> Date: Mon, 1 Jul 2019 01:37:26 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <7bfe451b-3f6b-2a26-5d43-692dde891cc0@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/30/19 9:58 PM, Hanjun Guo wrote: > 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? You're totally right ! Thanks for noticing, Alex > Thanks > Hanjun >