Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3561711yba; Mon, 8 Apr 2019 23:19:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqzk3uyXpu+pDSzrvraoS+/d0bLjM2fanEblJjyuBhBc43VGWTcEjnglQ5ZN5D6U0XqLQ+Dj X-Received: by 2002:a17:902:8ecc:: with SMTP id x12mr35058180plo.0.1554790767362; Mon, 08 Apr 2019 23:19:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554790767; cv=none; d=google.com; s=arc-20160816; b=ypWb8St3FZhuqHPQ9cspYGcfqcJEXTTgzvE/UUm0Z0Iu42ESbbCqlkqUHu3WPDAT1i rUlRBpc6da6n4XkjNl+EjN8NNRFCsJ8V1okYdpTH5klNu4+/V7QGkQs3LJVXvD01/0t/ OCYuobKT+S0rpILjVni1GT+UDufVw8AoaF3pwopZpaAOLpyap5m3pd3FnJfAU4vqoV5U vPwxW376Uex4ylm1AEQKxN0nhoLqaa5l45aNaEnLjvvgypn+IR/5klvYeRWqKWXoLyAR 1pvYwh+Cv4Enz2mgJ1LivhRQxLhCz639v58jinbpPiZNzR2G6FsVlP7vIkhaM9YdbcTZ KVMg== 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=NhovreM6UscqTcwScWHFMxAvNPPL7zSoy9Aa2ICEZj8=; b=OZekLnLEEssvSREu/8CWg5+JVvAE57RvpLV1NkJkfKEXgy4ixR2EomPusyCRaqDdl8 5mytSWgteGjUjRs+Xdr1Kuco4c9h5MFMOU0FoXXZoQgnKVobtkDzywWPILmqJEqWttq/ MAmoxMfNOmweQxumqKbsPBSMjEcMizFe2aQbHu35YPwjvqEh56TF3+iih5OuTs4/cGGN lk98Z2iEA/0D43AEu2XLH/cXDw882LIZkQCk6II8kgn+ifS+LggJf0mBywqS+elM3xsB lsGcajZ6KVqQjE3/QeuFJiqWoSlEXjRD1Mq4CT2GyufLyjHZ4zqiC4jSuMa8qQwd1tSN 1+tQ== 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 v64si10058490pgd.91.2019.04.08.23.19.12; Mon, 08 Apr 2019 23:19:27 -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 S1726591AbfDIGQ5 (ORCPT + 99 others); Tue, 9 Apr 2019 02:16:57 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:52473 "EHLO relay5-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726032AbfDIGQ5 (ORCPT ); Tue, 9 Apr 2019 02:16:57 -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 relay5-d.mail.gandi.net (Postfix) with ESMTPSA id C22771C0004; Tue, 9 Apr 2019 06:16:48 +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 v2 1/2] x86, arm64: Move ARCH_WANT_HUGE_PMD_SHARE config in arch/Kconfig Date: Tue, 9 Apr 2019 02:14:48 -0400 Message-Id: <20190409061449.5083-2-alex@ghiti.fr> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190409061449.5083-1-alex@ghiti.fr> References: <20190409061449.5083-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 --- 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 8c858bb133c9..273cefc6b787 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -567,6 +567,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 870ef86a64ed..8b7870974961 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -68,6 +68,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 @@ -885,7 +886,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 0f2ab09da060..fd5fc2d288be 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -82,6 +82,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 @@ -298,9 +299,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