Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp149789pxb; Tue, 21 Sep 2021 21:48:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMbeu3brZ2feZXlsZaU0g0EmmShNce935XjGu9ei4ZrQDfSDugyT5BfEVAKApTMD+0beCk X-Received: by 2002:a50:d88b:: with SMTP id p11mr14658890edj.287.1632286136260; Tue, 21 Sep 2021 21:48:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632286136; cv=none; d=google.com; s=arc-20160816; b=qw8UGXe5JAPNQbp1goqhEJQCkBXXSqGWtZDN2AjR2o/HC00korPGXBq4XzvV9Aweft F/qvvcxZn4W0sm6/IiPL1gCCl2dm/X+joCm2SLD4kkwk6KGFJYbive+tBCr9lWoj8+e3 NOTrnY2GIlElEyZPTHVJ+yBuYvgU/czW9jm0+r4WE7YR//cD0mZiTUZXsRjEecMxEYrx xLXmmo/7Ow/CA8ziCP0JfDWbBph47QF0iVbevxwT2O8I9DSYPb2VddDbBLH0+wwQQAPt S62UiEtCEMGoAb+1YxJGVoaFgn5tiOBxxa2n7dslmxj83dLxoegsHFDEU7AAzdefMacY NLAA== 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=xpg8xdQNlhJDLb+LKr62ncRlf/UVEyQTPxOC+JQ3ReQ=; b=IShYxVNiwX/PFDOI42+1YtQDjDKrCKTy0FaMrRLO/ddK4N5i/tsGEIbn/vsiJTNiNw +efs85WDKko5MdRhQVtvCB3u/pTUZvWDTFeoR4afAt8aUXQ1Y9lhr0QnOme3H6WXd/Yh U9JPSq27QDMCyWV7Tv/fBqh+kuwwudqE1aLDLKAPMnQT0bEuL8kWsmmWEMj66fZt41I6 CRCUEzHrnlkl8iWYF2XNFkjEIFx+h//szcm0RyOiAZ4SECbM4FTDMGbIg7sfWID0Cbxk ehW8lDcyHpq5V+SGpvzyIPtp1Cz+qAyxsjvDo5pPIgniozo171uEpeGqcN5zP0fuPw9x 4IYg== 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 e22si1709677edu.306.2021.09.21.21.47.52; Tue, 21 Sep 2021 21:48:56 -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 S231389AbhIVEpJ (ORCPT + 99 others); Wed, 22 Sep 2021 00:45:09 -0400 Received: from foss.arm.com ([217.140.110.172]:42726 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229495AbhIVEpJ (ORCPT ); Wed, 22 Sep 2021 00:45:09 -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 7344A11B3; Tue, 21 Sep 2021 21:43:39 -0700 (PDT) Received: from [10.163.73.113] (unknown [10.163.73.113]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 471063F40C; Tue, 21 Sep 2021 21:43:36 -0700 (PDT) Subject: Re: [PATCH V2] arm64/mm: Add pud_sect_supported() To: Catalin Marinas Cc: linux-arm-kernel@lists.infradead.org, mark.rutland@arm.com, suzuki.poulose@arm.com, Will Deacon , linux-kernel@vger.kernel.org References: <1632130171-472-1-git-send-email-anshuman.khandual@arm.com> From: Anshuman Khandual Message-ID: <127b2334-5c40-1b71-e510-ac837c3ac614@arm.com> Date: Wed, 22 Sep 2021 10:14:42 +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: 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 9/20/21 9:11 PM, Catalin Marinas wrote: > 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, Right, I did test this on all page size and VA bits configurations , including the specific ones which were problematic. > > Reviewed-by: Catalin Marinas >