Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2281937pxj; Sun, 9 May 2021 22:00:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9DIZhj7uCm7REd++VTGOIbMh182ASRXvyWlorJSF1uhWQ/ePPM6aL7rLHPf1WyBQcDLcq X-Received: by 2002:a05:6e02:20c5:: with SMTP id 5mr19999814ilq.14.1620622834614; Sun, 09 May 2021 22:00:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620622834; cv=none; d=google.com; s=arc-20160816; b=JL3+pBZHoL+VBaAanBvebOs9iNa2zsgP1E+1tkpU3IWOyLHXvcCFHic7XF7LWueqjB hFlqSdnIKzW0fwr+kfDc8q+VR1z6SHehfeVLFP53+CdTNKxXz3WzO2BTkwaJ9luClnU3 qhoXjIMesTjPrEw7WC2zu+KgQ3HdLn/L7W/XTXMXO2PuPlKHxistLU0i+WYdYS7CuCR6 yAEctp+As2EmJg6KavrAbBgQjuEyhEDzLg6VkoaEakSunpRgCjXKqw4Vt06Ynt6QbiAQ iN0gGAfeVnCI+W6aI6SCEtXC6b+ZGN4gvMnhV408nwwo1ZTr2Ee17KPTORoTYKQW/LKb NwBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=vgmqbopw4cSQJx39Kn3WRJGV/L7eSHmfLcsY2p6Kdno=; b=YHH5yJ79+QiVKhrVCwexnCkmgI4gIZq09wBENtQ7cUajwRmk3ynfkk5qso+9RUPedx CB0Q04JKorl/g85Rmsb1NW3ocylj2R1jSHbE8G/RHW8OWgcaBGtU2Ihhxpe2pliV426v 03LnrKYrgmxpK+Nlg3JJVBHBnFf5aJvdq5E1F90pqv6R54OtJ+w6Ftz4P5GQy8dfjahA L/eiIzgSJ3HJheYN0V4Ym/i3+7zjstOu6ZsJEGMzWS67Z/Koo6KNmEeL91FmtQ9ml6Y0 Bhy2WX/fM9wKRP5JR6lSPSW2KqvxBRnBAylzHdW+e3xQiKauvXzko7PiZVgidvA2cWE7 9ksA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e194si14916636iof.53.2021.05.09.22.00.03; Sun, 09 May 2021 22:00:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229996AbhEJEgS (ORCPT + 99 others); Mon, 10 May 2021 00:36:18 -0400 Received: from foss.arm.com ([217.140.110.172]:47316 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229533AbhEJEgR (ORCPT ); Mon, 10 May 2021 00:36:17 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D6D641FB; Sun, 9 May 2021 21:35:12 -0700 (PDT) Received: from p8cg001049571a15.arm.com (unknown [10.163.77.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 965E63F718; Sun, 9 May 2021 21:35:09 -0700 (PDT) From: Anshuman Khandual To: linux-mm@kvack.org, akpm@linux-foundation.org Cc: Anshuman Khandual , Heiko Carstens , Vasily Gorbik , Thomas Gleixner , Ingo Molnar , x86@kernel.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] mm/thp: Make ARCH_ENABLE_SPLIT_PMD_PTLOCK dependent on PGTABLE_LEVELS > 2 Date: Mon, 10 May 2021 10:05:45 +0530 Message-Id: <1620621345-29176-1-git-send-email-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ARCH_ENABLE_SPLIT_PMD_PTLOCK is irrelevant unless there are two page table levels including PMD (also per Documentation/vm/split_page_table_lock.rst). Make this dependency explicit on remaining platforms i.e x86 and s390 where ARCH_ENABLE_SPLIT_PMD_PTLOCK is subscribed. Cc: Heiko Carstens Cc: Vasily Gorbik Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Andrew Morton Cc: x86@kernel.org Cc: linux-s390@vger.kernel.org Cc: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Anshuman Khandual --- arch/s390/Kconfig | 2 +- arch/x86/Kconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig index b4c7c34069f8..fcc1ea339a9d 100644 --- a/arch/s390/Kconfig +++ b/arch/s390/Kconfig @@ -62,7 +62,7 @@ config S390 select ARCH_BINFMT_ELF_STATE select ARCH_ENABLE_MEMORY_HOTPLUG if SPARSEMEM select ARCH_ENABLE_MEMORY_HOTREMOVE - select ARCH_ENABLE_SPLIT_PMD_PTLOCK + select ARCH_ENABLE_SPLIT_PMD_PTLOCK if PGTABLE_LEVELS > 2 select ARCH_HAS_DEBUG_VM_PGTABLE select ARCH_HAS_DEBUG_WX select ARCH_HAS_DEVMEM_IS_ALLOWED diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 0045e1b44190..ec9e9d3d7e3f 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -63,7 +63,7 @@ config X86 select ARCH_ENABLE_HUGEPAGE_MIGRATION if X86_64 && HUGETLB_PAGE && MIGRATION select ARCH_ENABLE_MEMORY_HOTPLUG if X86_64 || (X86_32 && HIGHMEM) select ARCH_ENABLE_MEMORY_HOTREMOVE if MEMORY_HOTPLUG - select ARCH_ENABLE_SPLIT_PMD_PTLOCK if X86_64 || X86_PAE + select ARCH_ENABLE_SPLIT_PMD_PTLOCK if (PGTABLE_LEVELS > 2) && (X86_64 || X86_PAE) select ARCH_ENABLE_THP_MIGRATION if X86_64 && TRANSPARENT_HUGEPAGE select ARCH_HAS_ACPI_TABLE_UPGRADE if ACPI select ARCH_HAS_CACHE_LINE_SIZE -- 2.20.1