From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1EBB3C433F5 for ; Mon, 20 Sep 2021 15:41:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F1303610FB for ; Mon, 20 Sep 2021 15:41:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237968AbhITPnS (ORCPT ); Mon, 20 Sep 2021 11:43:18 -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