Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp151740pxb; Tue, 21 Sep 2021 21:53:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxU1C7PhstFb+8z1RFsOt6ffP53irF+PIHHluWZ/iPAiG/0z1USZQ7/tKlZVnY6vgXJHWeG X-Received: by 2002:a05:6e02:dd4:: with SMTP id l20mr23875501ilj.256.1632286403508; Tue, 21 Sep 2021 21:53:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632286403; cv=none; d=google.com; s=arc-20160816; b=uePJXBl+J86qy8x8Yb48OgQ7Cj5Q/cJqKA69W6vUC4Q2y4moz07OWeTx6+8yFB9irJ 1iMV/QJA1BeYUgXhC84dfwl2SZ0A5hRm3IKKI2ktNYZSyP2eOu/hV4bQFrnBsgDVRubX wJwBwarrKACJTCiUcT9A/x5NUymrbIaPVzTfehBRxbB/ELGjP60nP/dBlrwzTSzR7gsh sohpJEEbQ279TPy+aNub+nhCBsPTAybGs4NTtwUCft/ZD8EIyZDPdT3GbidH/xR1KyTi VcwOGZHJGwOhzy+l2cxyFhmBAcee2/zNh5nQGDGOelCciCPLFeqHj14rg/tjKvegtdkF kGzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=EpuuIXY3YT8zX08OIyc5AYDl7AvmqE1AVfLy03ll3n8=; b=Tc28a/+45ehd2CY1ztBBNcWK2RiKCmyQuiGlz6/GIj6+1YP7ynXQ8d43Iso3zXVn4F TV3Xp2tvL7MA4AqXrAbfJAHnvzcB1WI2K0s6PN/KvercyrIlvGIA8aZxSnTTfqp7UyYK VW1mF+PCNIOoOzSxaQPE0CF7NcOpwtoC321xdJP5HZWgexpALjV2PQPm6zOxczQJBZ3C MK69xKpNANZkCzO05azTVLF2Rb0u9Y2f5l3sUyFRZhIfc+N/rk/zpmoE2ahEoQQv84de b6do6b/RSe+NBTIJw4hDU8iNQ9jAluww9rjQPg4ozNGDZZ27xLt8ltWI6exkEs5r8zHy A73g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JHCOYIum; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n2si1249545ilt.29.2021.09.21.21.53.12; Tue, 21 Sep 2021 21:53:23 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JHCOYIum; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231502AbhIVEyD (ORCPT + 99 others); Wed, 22 Sep 2021 00:54:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229495AbhIVEyC (ORCPT ); Wed, 22 Sep 2021 00:54:02 -0400 Received: from mail-ua1-x930.google.com (mail-ua1-x930.google.com [IPv6:2607:f8b0:4864:20::930]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87622C061574 for ; Tue, 21 Sep 2021 21:52:33 -0700 (PDT) Received: by mail-ua1-x930.google.com with SMTP id 10so950484uae.10 for ; Tue, 21 Sep 2021 21:52:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EpuuIXY3YT8zX08OIyc5AYDl7AvmqE1AVfLy03ll3n8=; b=JHCOYIumug81g1pht6WTo5kjc6d4/NTLpa7+BViaYWlqiSY9z89OyTPjWq/lTUGomr +2Bzh1jJS30VO+LQaXXoNg9flrm7lbWJcltpv0RGSIM4D8XU+8/4sJciw3sUS0sJJN1v J8ecn+qL2Z1vMpefKcHeSlPMpMRd2wXsGM/i3/1xvyNmL90AVCtRyAJNdr85YvbVA0RF N+kzAyQBcdATviRRGxzl6htqYfjNdq6qESANXL1g+mN1Ic6Mv6sXeN5/Mi6O5CPbCuuQ K/krKPwu2hNp6rEE64QnCaSDm7TD2Sz2msKEKJ0wayZIOisQQBNZ54ornmBmgG2L3hlM A17A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EpuuIXY3YT8zX08OIyc5AYDl7AvmqE1AVfLy03ll3n8=; b=Nv6YjFnChpTBvn2Lv7lvLi+k/NXr162hfoVHU2VO0UrYObRyuIR4c9E245oaWFZb6M zHLGGgNlqQFpPawAcxb6ws2u5jRfOK84ksUGTZbJ+hSToDw127up/XLtLnoxUOymfJOt TL6WvCzhfzM0NYJpWJ0kNx/Doae1wtL6tVkvxwsHZhuIE7gFrU0ZKVojwkV4PU+HvIDq tGn+zavDMpRH9d0AvpdxuKbHDmW/k/mQUOwSvt3C3wHA36whAYn9YmLE/Ri80sirdhuZ W+ZoleWRKgJeWwLXhwynGnbQ4NsBiyhwxPORtUIRn1Sq0VPY9kaXAW+gjr9WAK3+pqvB 248g== X-Gm-Message-State: AOAM5320Zp7jfQA9I/+xp59RZC/jBEIU87J2ElFi/v0KyUCfyW6cAm/0 SQiZYqKkqzEEakpZTvhPbLqOpvArosML6vpsBOI4X7Wy X-Received: by 2002:ab0:5448:: with SMTP id o8mr4536523uaa.59.1632286352648; Tue, 21 Sep 2021 21:52:32 -0700 (PDT) MIME-Version: 1.0 References: <1632130171-472-1-git-send-email-anshuman.khandual@arm.com> <127b2334-5c40-1b71-e510-ac837c3ac614@arm.com> In-Reply-To: <127b2334-5c40-1b71-e510-ac837c3ac614@arm.com> From: Itaru Kitayama Date: Wed, 22 Sep 2021 13:52:21 +0900 Message-ID: Subject: Re: [PATCH V2] arm64/mm: Add pud_sect_supported() To: Anshuman Khandual Cc: Catalin Marinas , Linux ARM , Mark Rutland , Suzuki K Poulose , Will Deacon , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org How did you test the 16K page size configurations? In QEMU? I wasn't aware of hardware that's capable 16KB page size. 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