Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2444841pxj; Mon, 10 May 2021 03:11:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxX0kJPGbqObnCSAFLUV1cVXY+YZJ0FK2JpTdw8s1Pqzlzaw74PlLyQE3QjmNrt9SkEfkqM X-Received: by 2002:a6b:f815:: with SMTP id o21mr16724751ioh.0.1620641506800; Mon, 10 May 2021 03:11:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620641506; cv=none; d=google.com; s=arc-20160816; b=a0rMPIgUYvgPsYuitljB+JPODPIPwkeyClpwzU8LKoJO7pOzBTo98UBNFIW1XzZiVp Bc+t1CW6npy4B9rh5H4f0ljR00rCNqFfoQVHn6WlTaNkfAkc0/A88zzlH4zbYblocQXD FcGI/puvixcq1p+f4Etyw+I5zidMZQ+uLSUFQUuJgwu0C/KdBPL6slWEWpI6jsvSikTc BWiDicjLdwgd1IT0JUAYAc3INJ3X9KPmHqVQRhDnME92iBH3ObO8JYHnnBEcJclxDWeq SYMfXllqymyu4/82td376djymU2Ucl402W3GZBUeVDjt+IgCkyGYvAqh02n4+TOSJF1y LrVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=SfW4dWnl59qft7F6I6ONITQueAcslaqk+NaWiVggzv0=; b=JObR/0UDK7zyshWE9/7qj9zxuqm844xU3WzcCpdQeskPWi7zEOSMbH5boAEDOUXdla SPdgAP/N2AWapZ9WVHAwPmQpowLbZrmj1Rpp0Ezc90IDOMF2jS27HMyziNo4oTJpMdZo a8X96qLHDxZMs1VB08Jej6WDzXQ4RW8gbHux7+kn8igSwt4hma3NParJBnqpUsHMrLhM PtG12nktnsawGX3y0QZ51S83n5Y1aOP4sY1RfsLQTptrsboWT7gElPMHayolCRVNDQ+I 1yUi9WtvkcrcX4oDMhNSLKJsn0YXXcJa2j62OFI+00n1xkQ21NyfWbiniPfrng9gTJcs HJqg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w9si5219348ilv.15.2021.05.10.03.11.34; Mon, 10 May 2021 03:11:46 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230381AbhEJKLQ (ORCPT + 99 others); Mon, 10 May 2021 06:11:16 -0400 Received: from mx2.suse.de ([195.135.220.15]:54516 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230361AbhEJKLO (ORCPT ); Mon, 10 May 2021 06:11:14 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 677B0B036; Mon, 10 May 2021 10:10:09 +0000 (UTC) Date: Mon, 10 May 2021 12:10:07 +0200 From: Oscar Salvador To: Anshuman Khandual Cc: Peter Zijlstra , linux-mm@kvack.org, akpm@linux-foundation.org, Heiko Carstens , Vasily Gorbik , Thomas Gleixner , Ingo Molnar , x86@kernel.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/thp: Make ARCH_ENABLE_SPLIT_PMD_PTLOCK dependent on PGTABLE_LEVELS > 2 Message-ID: <20210510101006.GB22664@linux> References: <1620621345-29176-1-git-send-email-anshuman.khandual@arm.com> <20210510085313.GB5618@worktop.programming.kicks-ass.net> <843e545a-ca0c-6a1e-2ab0-28ccca182400@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <843e545a-ca0c-6a1e-2ab0-28ccca182400@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 10, 2021 at 03:36:29PM +0530, Anshuman Khandual wrote: > > > On 5/10/21 2:23 PM, Peter Zijlstra wrote: > > On Mon, May 10, 2021 at 10:05:45AM +0530, Anshuman Khandual wrote: > >> - 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) > > > > It's still very early on a Monday, but IIRC this new condition is > > identical to the pre-existing one. > > Did not get it, could you please elaborate ? When using x86_PAE, you must have more than two pgtable levels, right? And not speaking of x86_64. -- Oscar Salvador SUSE L3