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.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 AC5AAC433F5 for ; Wed, 22 Sep 2021 05:06:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 91D08611B0 for ; Wed, 22 Sep 2021 05:06:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231991AbhIVFHz (ORCPT ); Wed, 22 Sep 2021 01:07:55 -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