Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2857109ybi; Sun, 26 May 2019 09:11:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqydvOctyj9IYtN3mVG+lUeYyP5Lda2ZMP1hxKLomih/1ea4R4u57i6AYkCiPLbk8HEMRm8b X-Received: by 2002:a62:81c1:: with SMTP id t184mr127604491pfd.221.1558887104509; Sun, 26 May 2019 09:11:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558887104; cv=none; d=google.com; s=arc-20160816; b=tONWMuDk8RGLyc0gmI9sAy9aaa9KxgT1dFkLmbaxUSnixhhml8S6G0En1dH0fHJGGh VqxZLJe0F1l1gYSkHdUPcnWEqraBrYm8AmGrjtv5YNQl7OuwsyK5mHilO5ctVphWKR2B 5rhheZb9N6b35cPhBwbXHml+o8LX2N/puOEyR8m8EffRKkZNrc7afUZ/LT2M6eYHCWoh 5KFUy1sDE/wQqPt3m8MDVlF8fZPlVNaow/jr/HSTODhPXYbN8fP/tDIe5IXYpjtErKdk p4NBej8yHC4KLyaGMRrye4k1r8ExcFSJC6biVuBbSZpEMhV/BKrd5mpX8e5R5Erf7ydh tQuw== 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=FCcB6OvTRlIv96b1Dsr6Dyh9NhJSky1glq6Ojatuvz0=; b=bNzdJPmbtlNkiL9mDayYscUSSGts9nk8bqdvG7Z8TCQhFu8u6Mi36fUZiFzypj6nwA ZOmdXO5esRBC5eQMVms093bI0GhtivZhdJP5pGhY9e/jjUgpx/QqX8AOB/CN45AWFIkd VZtR7SoD2bVkzRzNUcna9Zh4DPiSCFMu0FJ6ScCtEy/gMu2VPKWL6uBoERbZAqen1+Ix FKguybfhSRz9+XRsBXwZP1jU+s/0/NwRXi7OhV/GBcxfPkfuOS/LCO98IIxVfXrxFoqD 6k06xANSI/jMYHAFUUkkPPOii4j2WxuwJmd3L3T/fqtJ/2g20XSrP1I7NIZ2EyCYifWW f4OA== 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 m1si13006914pjq.83.2019.05.26.09.11.29; Sun, 26 May 2019 09:11:44 -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 S1727910AbfEZQJA (ORCPT + 99 others); Sun, 26 May 2019 12:09:00 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:59573 "EHLO relay1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726622AbfEZQJA (ORCPT ); Sun, 26 May 2019 12:09:00 -0400 X-Originating-IP: 79.86.19.127 Received: from [192.168.0.12] (127.19.86.79.rev.sfr.net [79.86.19.127]) (Authenticated sender: alex@ghiti.fr) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id E836A240005; Sun, 26 May 2019 16:08:48 +0000 (UTC) From: Alex Ghiti To: Ingo Molnar 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> <20190526144230.GA13220@gmail.com> Message-ID: <2c1c9ad4-257a-faba-7ae0-0eb2dd0d09b3@ghiti.fr> Date: Sun, 26 May 2019 12:08:48 -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: <20190526144230.GA13220@gmail.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 5/26/19 10:42 AM, Ingo Molnar wrote: > * 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) >> >> config ARCH_HAS_CACHE_LINE_SIZE >> def_bool y >> diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig >> index 2bbbd4d1ba31..fa021ec38803 100644 >> --- a/arch/x86/Kconfig >> +++ b/arch/x86/Kconfig >> @@ -93,6 +93,7 @@ config X86 >> select ARCH_USE_QUEUED_SPINLOCKS >> select ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH >> select ARCH_WANTS_DYNAMIC_TASK_STRUCT >> + select ARCH_WANT_HUGE_PMD_SHARE >> select ARCH_WANTS_THP_SWAP if X86_64 >> select BUILDTIME_EXTABLE_SORT >> select CLKEVT_I8253 >> @@ -301,9 +302,6 @@ config ARCH_HIBERNATION_POSSIBLE >> config ARCH_SUSPEND_POSSIBLE >> def_bool y >> >> -config ARCH_WANT_HUGE_PMD_SHARE >> - def_bool y >> - >> config ARCH_WANT_GENERAL_HUGETLB >> def_bool y > Acked-by: Ingo Molnar Thanks ! Alex > > Thanks, > > Ingo