Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp158915pxb; Tue, 21 Sep 2021 22:07:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHvFMEZU1hbl0GkqOXgBs/WlvKslkFWNvayl/r5AQ/nyta/RtKJn5y9U/yWWO6PuYRI9tX X-Received: by 2002:a05:6638:22d1:: with SMTP id j17mr3106299jat.129.1632287254256; Tue, 21 Sep 2021 22:07:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632287254; cv=none; d=google.com; s=arc-20160816; b=XB84BW4ie5V4fPvwfi/hOf6s6ZMBINpt1HJyz/Z8IS8u0bjiQ00EnqWptncZB+QphH IcItv/102R2hKGnFt+nFm3JHNWuHJ9tNnRKfRGrtNwOKLzZCpOjbq7mOp/wNClLQztlS O4C1iGHy3sGkR2C0IFcYKmmwJ2Jk/5Kn3llrNbcvMS41l0w1tW8x2m6zH+z1xJuJKvX8 E2pNxGRvy/mbUvJHTgWXpXdFbDuHszrwM2yBi2W7LJItukCINTFJYxpP/E09g94KkvG/ B6Ng/T0GTE3Me+zzFOrznWPh/V4cS0dE/6WFZ3wHzbsccy4Q218FWI3pIyBo/4ZO3kM/ IGxw== 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=cBNkFZu4q9iUOwJQmWB3wFRViDryikVCOe5jBSm6+8Y=; b=pCzI3rEwVQTtgpOU/bijTqjrOfkyBi9wHTiaeFeTaQ/QGN3TEEEPpJhy8tSo57vMBX ow3aKYtTwhIJsANJw/E8hp7LF4pid23YuX8kLKceHq0FKEHarc+4rdK8P5R69hA6kYPh /9X32bMlklmGN6REp1YWbenzPiMtgfz+kQMaih1/JhEQIf8nktFQ5dHMLo6URRDEjWO+ sSRBf/fv18nb2+Xvn4Uu+ZADB8+2gA7LbFfZk6BvI8C7UF+7Ni1ytqos5s2sLh/v6HuU EtIarHcmmjYUkLvkKeC8AQi2eXH1ZNjC5W66hRL97+P4/0JMn9X1SVM5OnNpmvLsc/tH G+rQ== 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 i20si1485824ilj.3.2021.09.21.22.07.22; Tue, 21 Sep 2021 22:07:34 -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 S231929AbhIVFHx (ORCPT + 99 others); Wed, 22 Sep 2021 01:07:53 -0400 Received: from foss.arm.com ([217.140.110.172]:42956 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231836AbhIVFHx (ORCPT ); Wed, 22 Sep 2021 01:07:53 -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 4C8A611B3; Tue, 21 Sep 2021 22:06:23 -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 CE0E43F40C; Tue, 21 Sep 2021 22:06:20 -0700 (PDT) Subject: Re: [PATCH V2] arm64/mm: Add pud_sect_supported() To: Itaru Kitayama Cc: Catalin Marinas , Linux ARM , Mark Rutland , Suzuki K Poulose , Will Deacon , linux-kernel@vger.kernel.org References: <1632130171-472-1-git-send-email-anshuman.khandual@arm.com> <127b2334-5c40-1b71-e510-ac837c3ac614@arm.com> From: Anshuman Khandual Message-ID: Date: Wed, 22 Sep 2021 10:37:27 +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/22/21 10:22 AM, Itaru Kitayama wrote: > How did you test the 16K page size configurations? In QEMU? I wasn't > aware of hardware that's capable 16KB page size. FVP (Fixed Virtual Platforms). > > On Wed, Sep 22, 2021 at 1:47 PM Anshuman Khandual > wrote: >> >> >> >> 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 >>> >> >> _______________________________________________ >> linux-arm-kernel mailing list >> linux-arm-kernel@lists.infradead.org >> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel