Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2316122pxb; Mon, 20 Sep 2021 18:36:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykmNIG5QUpxJy3zhCJiNStcrvY4Q+vqBYIZxp+JaZq1HMDZE297Ag829nO+ySEtWaYZ088 X-Received: by 2002:a05:6638:1b2:: with SMTP id b18mr5927843jaq.95.1632188170784; Mon, 20 Sep 2021 18:36:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632188170; cv=none; d=google.com; s=arc-20160816; b=FVFKqw6fwYRVcnPLomhYpWC9QUDJwUh2Le68sZ6RVuWal7euFC+fGk4lwlgF1QPfMs KpNmqG9UW9wkgcHx6nA+pQziNYaI80ZWlWAQlfG3z/U3usJyWps6WTcGdwNn2hG5TTE0 Wlchc3a/2n9B0fcEzUSG9bdvcilI4914OzVMh2dr4kAZMLg7tvGHamtSgpqg0f6Hv7L4 LObWixjiQmEQ/Hu6WRDKunLd+Gu7nJr1DcuiFThR8Uc3tLHUKOWNk87QiM6EbeKbhF0H U2wJfUAmn8Hl5m6zJGt4pggKqtfmNutZ/iGHC85bH6eWEoW3kte0NfOUdf3LqoVY6KEQ xKQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=EnT4mKvcEEBSEx/T80cBUuqaDBbDX1pEBBcwgF0gom0=; b=ZKBdYKN10DO6IIH83FGXBq4O3+ULwqrMX1VhsOFAaOoyiPhl2bPOxW92AaMLepDCFv Be4JTysu19ibaa5Y1QiFR5l8gqyROK2sKTpW9rW844K9t6Pzc21ZrIg/tShLGb+QY5YJ 4LT/EOc4h094z6ME/tW/QaCqvgcTL/fFinmvBdhppCsbzuFywEFY75P84R1dLpmPstSU /+5NClphyXWCYyXkpf+bONqvI1VahvqMA+gkj8DQQPAixAZYpTefikJF/DSwC+UtFQ1r i1E5cWQbfr3eN2QLqK0nSb6k39ZCp00zDfPrcH5KJ8C31VAsr3OMDWXwE0k1GJMCYVu4 pmlQ== 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 q11si14079405ilg.114.2021.09.20.18.36.00; Mon, 20 Sep 2021 18:36:10 -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 S235522AbhITPnR (ORCPT + 99 others); Mon, 20 Sep 2021 11:43:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:35928 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234184AbhITPnR (ORCPT ); Mon, 20 Sep 2021 11:43:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5330A60F58; Mon, 20 Sep 2021 15:41:49 +0000 (UTC) Date: Mon, 20 Sep 2021 16:41:46 +0100 From: Catalin Marinas To: Anshuman Khandual Cc: linux-arm-kernel@lists.infradead.org, mark.rutland@arm.com, suzuki.poulose@arm.com, Will Deacon , linux-kernel@vger.kernel.org Subject: Re: [PATCH V2] arm64/mm: Add pud_sect_supported() Message-ID: References: <1632130171-472-1-git-send-email-anshuman.khandual@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1632130171-472-1-git-send-email-anshuman.khandual@arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 20, 2021 at 02:59:31PM +0530, Anshuman Khandual wrote: > Section mapping at PUD level is supported only on 4K pages and currently it > gets verified with explicit #ifdef or IS_ENABLED() constructs. This adds a > new helper pud_sect_supported() for this purpose, which particularly cleans > up the HugeTLB code path. It updates relevant switch statements with checks > for __PAGETABLE_PMD_FOLDED in order to avoid build failures caused with two > identical switch case values in those code blocks. > > Cc: Catalin Marinas > Cc: Will Deacon > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-kernel@vger.kernel.org > Suggested-by: Mark Rutland > Signed-off-by: Anshuman Khandual Assuming that you tested the corresponding configurations, Reviewed-by: Catalin Marinas