Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2779829ybi; Sun, 26 May 2019 07:45:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqxVEfmz1wLlivLPNMarrBc5dPFRuVfwweDsp+dqYgwj24+gQ0tA/uVomsv+b+kQuEnDFpED X-Received: by 2002:a17:90a:344c:: with SMTP id o70mr24407433pjb.21.1558881906335; Sun, 26 May 2019 07:45:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558881906; cv=none; d=google.com; s=arc-20160816; b=UWo2XLTpF4qxL74aHgQRtRF9wMtGHbWzHlPZMMHxYRMa9XqD946BIFt7zVg3ztImz1 4IT1MgzUFproUgWrLKNICLnNQWMKUgFpNq8cbBR0nk3RKdwMY5qXCjXLU/7/k7FYUE2c YDCzDXvblkQVyNRiTxVdhmTda7Pe7Wf2RPxYw1yBE4RWpyeM9QYzGG+l576lNm6dE0wi 3gd/o2wddpng7bGB65vj0fGw4fzWHoe37sx/+okqOT6TPIRqeS4KXwP5FuKtDKv2l/OY dy547fGfTaCTHdp9rZZxKGKlaQoVyPRiDCbRfUzM07DiIjrTitIKC9USW34XaZgql1nz CQEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4Jc4sO30EHRrfMknAHHzVrJgrARHyBdt4KcFxsTnWW4=; b=bUj0L1J1iReKZ6TqxPRexsUZUYJmPV0uMBGBsH1uPR8CcxQ1QingcWhfXtViDNNSt7 ZxJ2CT7+i8IufoHL7HGciZCSLy+pkZssX9RkTi95R7K94qcdUcrGkhNmab5OrP4nWWGs HVqK07ngxaBAdyYT4898K364RQXK/VqqVnx4TMGnS5KTcQxiwF1q28STSQ6E4zbaIM0g npVs8R6p5fuepWNU1pfiJXlgplVXdunKBvPbufp7mZN21vteaVWfv/HzMzNFlHtkPEBB Lov9fzP1zmjN97roxEGvtma2OvQFteDp614Q1U6zElI9b0XhZ5bN6jYaZ6K7BCwWzDlX vhsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="kZqY6/9U"; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n3si13426943pgp.587.2019.05.26.07.44.50; Sun, 26 May 2019 07:45:06 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b="kZqY6/9U"; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727887AbfEZOmg (ORCPT + 99 others); Sun, 26 May 2019 10:42:36 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:35600 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727778AbfEZOmg (ORCPT ); Sun, 26 May 2019 10:42:36 -0400 Received: by mail-wm1-f65.google.com with SMTP id w9so7238519wmi.0 for ; Sun, 26 May 2019 07:42:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=4Jc4sO30EHRrfMknAHHzVrJgrARHyBdt4KcFxsTnWW4=; b=kZqY6/9U2aXYB0+PivvRG/0EZvp1fvoxyT3c45tkGVmfC4/e9dy+hrfcgmrZGRLy8F GZn5Fcdv9W6+EG0+HpnNhGPu6ty3tLYFsHWvLtMY2+EOTbbWUnKaTEFIOR3FJMAzoGBb wIeiMRIAQ1A5tWu9BW4gOY1PulRcSsWcZlHOUeHQ2RTxRA9hMUQxxq6/p9ube593cCVk /YnBMNZnytvf3lfK7f+NYW8NEi5zVf5dVcvQtFM/byZPraz13zyJIDKyH5gPQLZAtyDG KnNvz+K4mLyV8PnoXkWKCmA2hon1TqOOBoqQNp3OjuoeHSNQgKi062bLW0O3WC+y/vHs iS/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=4Jc4sO30EHRrfMknAHHzVrJgrARHyBdt4KcFxsTnWW4=; b=nMH6gBqtGtiSPK6PqM55sBzu7TkpSeCDDRJ2Zvj2QGcQQH/zXHWkISrdDWbpaqIzsU 7DbFU/I5chqwDzUitx2c9UVnhXG1dW4rgGlCWzTpT+4qLRzoMWaeHJbGwLiOEB4+vTzT pMVFUYnCWoHAYgae26CNujpdLEd4wL3D3YvoT6qnl9mH813/e5RI13GMzLL5XErC8IVy 9MZVX9XTTF4/ttvHULA18vYZD5+EKU+i44pgWAcz56u4FmJPnNYleCS9GfnOjeq7LhXt JrbYlSlrHpgLq84sS+9Lm7+Of6d1Hmn9E7WifK1RA6GJR1P4JAk53rln34hGwgw4iTnL +5jg== X-Gm-Message-State: APjAAAXmy3A+B8Y8jtO06eygRNgKi7vX8XFpdOpDPp71eOxuDS4WMb9e pFAYqeFUUJmhLkvZvISmjRA= X-Received: by 2002:a1c:6342:: with SMTP id x63mr24065933wmb.58.1558881753913; Sun, 26 May 2019 07:42:33 -0700 (PDT) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id o20sm8014462wro.2.2019.05.26.07.42.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 26 May 2019 07:42:32 -0700 (PDT) Date: Sun, 26 May 2019 16:42:30 +0200 From: Ingo Molnar To: Alexandre Ghiti 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 Message-ID: <20190526144230.GA13220@gmail.com> References: <20190526125038.8419-1-alex@ghiti.fr> <20190526125038.8419-2-alex@ghiti.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190526125038.8419-2-alex@ghiti.fr> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * 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, Ingo