Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2688504ybi; Sun, 26 May 2019 06:03:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6t6I/6Ts5wMytOv8eWnaD8l7lxO0FUd+iiNKQGqkVjqi9LdtgifAi0Mmqj0hdjIhLbBJS X-Received: by 2002:a17:90a:cb0e:: with SMTP id z14mr23252096pjt.99.1558875817638; Sun, 26 May 2019 06:03:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558875817; cv=none; d=google.com; s=arc-20160816; b=NeuTy2yOK2t0DNQZg1/I0qfSF6YRpsqMPmkpUlCaux4hWfT9fAX9JrNkiUeVkdjWYb xIY6ui8GurkDK6rCDbdAs3WWVqtqK74wOglT5hP8NaPQHk2ZySy++iEUBcJAO4+DE685 tngSv4u4YeYEwTKYDiaLofTZglW5Xrtb7PuPLD3PSTtIiX8jlP1RLm4iMWtkhhspVtwu s0sxf2c5k6yN3U9sVoHOFCU5f97GsFCF+nKVjyCY057IClqZ0GyWGJStIZmtcDpadStZ Fu78OfYcXRheQPBzEzyU5tMXW0YkfVVd8EtYtTUlMQFk50PbkwRrn/WjNfuQF4+izhF3 gbGQ== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=4iemt3yFemmOioJZUSUjbZBNnzVKnKnVKckyAr8pFVA=; b=YlvFZW+WjWOtZrVENcucDalNiNDDQjRrEG6RU7XPIr8KTvPjYUtrhLe4PTMhtHtfdP Q15rw8cL2w+eVfiE2M6fMmQUNPFS7+UAZNE0AzogS/GQBc2uKirQpi/VPQhijm4ZCP6b B3V/F6U2SuvoSczs73N90iIXfUH39BSm18N2HtVmxLQVSXPHZLGmiyI53ZlB6QMNhlSN xeFxOjt/PEMp71clf+0blWy6dNNjZZXaFxfjMjG8CfBjdWpKqo77JvN82dEms0Gp4kVP 4UjlwTwv3EVu1fiD58SSNoZ4kteM03cInIW7NDoxi88ucPi8KBTRKx7+e/YtAqEBPe0/ z+KA== 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 e19si6414313pge.231.2019.05.26.06.02.49; Sun, 26 May 2019 06:03:37 -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 S1727844AbfEZMwL (ORCPT + 99 others); Sun, 26 May 2019 08:52:11 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:38191 "EHLO relay1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727824AbfEZMwL (ORCPT ); Sun, 26 May 2019 08:52:11 -0400 X-Originating-IP: 79.86.19.127 Received: from alex.numericable.fr (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 E4F11240003; Sun, 26 May 2019 12:51:59 +0000 (UTC) From: Alexandre Ghiti To: 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 Cc: Alexandre Ghiti Subject: [PATCH REBASE v2 1/2] x86, arm64: Move ARCH_WANT_HUGE_PMD_SHARE config in arch/Kconfig Date: Sun, 26 May 2019 08:50:37 -0400 Message-Id: <20190526125038.8419-2-alex@ghiti.fr> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190526125038.8419-1-alex@ghiti.fr> References: <20190526125038.8419-1-alex@ghiti.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.20.1