Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2401724ybi; Mon, 1 Jul 2019 11:22:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqxeOzLNS7LdEG52ujS4phqOMjO5GoDfZmF/olDU7i4SFNV7AZELPYeKjMw8/H3DzWNH16Nq X-Received: by 2002:a17:902:1003:: with SMTP id b3mr30808902pla.172.1562005341426; Mon, 01 Jul 2019 11:22:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562005341; cv=none; d=google.com; s=arc-20160816; b=AvYEtbtd/ncBBlvM8A3LDcWJ4aDISd8oa1fTFyEShOe8jslQfA3DdsKqGz0sby78a9 J5mT/VCwIRSXMAbTMDjQKUJrE9V+BO5Isi/bENJADl1HCZqv2fkbGgGSY6kq9hmZCNG6 TtmVxqf9ckNAgAJuSz6cXIuzhFOXWzkeNj2ENrchlJT0SRZx1puztwSbnZZk2l8jwMjo +eOEqLV1aWprpIbkvxgGZfKOxcJBIEYjcAof9kzWJ1egq2MnxHrz88/d+h9AU7Ffwa3j +W466hYI3cTA34IRUQ0NS5eXJJbJmQIwPG/LUwSL/48jM7JEA3a6GOOhSAHkCDQrx/jB reQg== 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=2gN29zQu1AkJ1rpJ9bZhfUID2+ke8z1zawYRUMOGP3U=; b=1BUiFnhQiMOYfut6R9HKTUpsSKh/O9OX/yrXNf7Yq3N/ziFa2LEacg88n3iiKezCO3 KNn9fsuVu9Ox6GCNGMgyr3Pn5nh6znTqS9AVoj/z8W+aUgBVnI3o2BhZUl2Ymr7hZG5z aVGXNz8LTiaiBo1wQxjM8pPr8Rz/QW7oXfpn6k0RDbpYS7Um31PR0T8zVCyjN2nE3xe4 rdB+oUxx52FQ3i5uZuLpmApUZVJUnWVECWq7HuskobO90XWAmKoGIebCW/D/g0MGJKWK YH4J9gwez1VwC/LcPldJf9lokBjv4JSpjow3xlSwUQTdQ4GvgwqfZQBHG7akk7q6PvxV Qbkw== 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 i9si11948011pfo.134.2019.07.01.11.22.06; Mon, 01 Jul 2019 11:22:21 -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 S1726695AbfGASAW (ORCPT + 99 others); Mon, 1 Jul 2019 14:00:22 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:57587 "EHLO relay1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725853AbfGASAW (ORCPT ); Mon, 1 Jul 2019 14:00:22 -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 60561240008; Mon, 1 Jul 2019 18:00:12 +0000 (UTC) From: Alexandre Ghiti To: Hanjun Guo , 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 v3 1/2] x86, arm64: Move ARCH_WANT_HUGE_PMD_SHARE config in arch/Kconfig Date: Mon, 1 Jul 2019 13:58:59 -0400 Message-Id: <20190701175900.4034-2-alex@ghiti.fr> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190701175900.4034-1-alex@ghiti.fr> References: <20190701175900.4034-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 | 4 +--- arch/x86/Kconfig | 4 +--- 3 files changed, 5 insertions(+), 6 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 697ea0510729..c862575decd3 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -71,6 +71,7 @@ config ARM64 select ARCH_SUPPORTS_NUMA_BALANCING select ARCH_WANT_COMPAT_IPC_PARSE_VERSION if COMPAT 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 @@ -901,9 +902,6 @@ config HW_PERF_EVENTS 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