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=-10.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 5DE2CC433EF for ; Mon, 20 Sep 2021 15:43:45 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2918160EFF for ; Mon, 20 Sep 2021 15:43:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2918160EFF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ci0zYUu7KPFBnFu7Hv8MTkCsLnUP/2HyGAgKfWyqanc=; b=LD0mfd2vw9zvAv NYunojsALCewdiMn1CA4SCPT1hjnaZuNtXWu1WPUujLudwZbmqObtRr4rwvrobxz4f9r3Eabf9+G3 9QIY3AmM504wuLZkxfIVfeoWUobzESUO1k8mGFBhgpKsR7zMeSs9rLZj+HPt0ko2Ca7ntoibZx5Kz yqJDS1sx8xQnTB+pH1yMYW9pCOJe1+79sq48h5PpimSYBJ+hR9NDF8GVf9O18XLE38NmGgOrrKdLb d5alHIzSn+vBplmhDZ3UIQMnvPQ211PDhbM3fSSiSUlcUbld47tYHTe7KDSo5l/XeXO40uOkUiMnX jbw3s54zYtoKZvuxZ5KA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mSLQb-002HiD-6A; Mon, 20 Sep 2021 15:41:57 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mSLQU-002HgZ-Oy for linux-arm-kernel@lists.infradead.org; Mon, 20 Sep 2021 15:41:52 +0000 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-Disposition: inline In-Reply-To: <1632130171-472-1-git-send-email-anshuman.khandual@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210920_084150_874656_73CC89B6 X-CRM114-Status: UNSURE ( 9.64 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel