Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2360890pxj; Sun, 16 May 2021 23:20:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyP/GumQFUfiNalOtqVaOJfuf6RChOKV87D4ZP6uQdBXHqIJdP4CYYlDf77Q+S/9Wvf633+ X-Received: by 2002:a17:906:8478:: with SMTP id hx24mr3083812ejc.490.1621232436111; Sun, 16 May 2021 23:20:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621232436; cv=none; d=google.com; s=arc-20160816; b=z/Ch+RlpTKhCMhofcrBhmCuZAT9yR8oG8QOXo3uKmyaoJO/HKEcPwv86ZglzljNVAQ 18W6RunSzgTKEGJQR5mkCusxl4zPz13FsBlx/dEjfylezTYvLme09JmdVyaka7t/dSHg 0Mi3hemsRaq6d+OKHTizwtbCArl5V7BUjZAq85Go8ExTLAGA2m/4xJzJveKfniVE262l dtxEyEOJIlLYF5O3wVapYj/b13lmSLtLIKcfcC3WsxmCPLPupxRWOfe1+AnVgeWrdkNS SX2xcu7dpUIrDYGST2EaJ1JfkHJBdj489y9IvSSzwqTyvvD9FFOljWxZNLBObR7nH636 nf4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=dTMNW/tHMWO5ykPERcUqtAHUvqL+9U5DlpwsAsfOEz8=; b=EgHHb3iqIjnPZ9KFDPV5EfIB7iLceaM8+rLHc12QGczifLhczajyHuALRwEOY8l+cJ MvB/mx158YM94EoMwqWy4sPMNVIngYIxyk0qWc26C8a7i/cy5MTKIp6a+PHOf9iu4cIe XlEsiWObsym81PYD6SQAwDBVGVfVj4dKjCgzBcF8SvpfVfCZRD5Q1R4lDwP0ZiJnTIsU XU1UMH0+VI/+PqvvpCStl6ONZmd355sTG0xWtVTbvZ2dFYWYBKGcAONxjOhHpFi5vaRS GfTyev56FeChtVPuWaRihge9Jv0ZjG5f/wGE7O17QOjQKkYSiZRvsP9kQZOVkPlBHIji pqrA== 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 z15si15043661ejr.8.2021.05.16.23.20.13; Sun, 16 May 2021 23:20:36 -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 S231238AbhEQEQE (ORCPT + 99 others); Mon, 17 May 2021 00:16:04 -0400 Received: from foss.arm.com ([217.140.110.172]:41128 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbhEQEQE (ORCPT ); Mon, 17 May 2021 00:16:04 -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 38BB31042; Sun, 16 May 2021 21:14:48 -0700 (PDT) Received: from [192.168.0.130] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2D2313F73B; Sun, 16 May 2021 21:14:44 -0700 (PDT) Subject: Re: [PATCH] mm/thp: Make ARCH_ENABLE_SPLIT_PMD_PTLOCK dependent on PGTABLE_LEVELS > 2 To: linux-mm@kvack.org, akpm@linux-foundation.org Cc: Heiko Carstens , Vasily Gorbik , Thomas Gleixner , Ingo Molnar , x86@kernel.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org References: <1620621345-29176-1-git-send-email-anshuman.khandual@arm.com> From: Anshuman Khandual Message-ID: Date: Mon, 17 May 2021 09:45:31 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <1620621345-29176-1-git-send-email-anshuman.khandual@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/10/21 10:05 AM, Anshuman Khandual wrote: > 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 > Gentle ping. Any updates or objections ?