Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp334134pxk; Thu, 17 Sep 2020 04:31:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmOG5AmZXZADl70umlYXzDsGcoQf7K4DWQZ6+aeQyGUZTN9vPn5513QFoqrVlS4XPPa28f X-Received: by 2002:a17:906:dbf5:: with SMTP id yd21mr29532658ejb.521.1600342270019; Thu, 17 Sep 2020 04:31:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600342270; cv=none; d=google.com; s=arc-20160816; b=O4OcHVISgTkYg8L52cqATP3BU/8MT3Z7nItBn2s1gVN4uGb2zOmbzVUinuvzHllGXd 9/E1c6GkqJ5PvOR2hsmkd4RiZm/nSEwAc/NLrG5Cl6GaRApMrPF3vlUSunIQ4Vr+OYjV UsPMt4WH6aZ9KxE09H14l8RqK1t5Xdmcc9fiJz0Cl6Ax0SGqBeLY+vIK/IUFhtleBX5z wTh+kGY/m9xMmDFN8G8Zxbup/TjQY0xQv+MOAsega1UFvo9UC949KKGJMmsv9fOUd+tD QbpxrL7aw/WRBP39fF9kBmTaH0Viv2hplltqVm4jwXnC2EM1/k0WWavSIFb3XsGW7ohL w88g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:subject:references:in-reply-to :cc:to:from; bh=nAzCkH4AJS/2Ss0KKxEfvo4e9RtKZVVoBdtjPbpG1CI=; b=gR4MuC0ScYLmwiKrsPhiDSafQvSHMYWDGpB7v0+Pie97aCL9kyNLz0tDSZRTpky8Mf 5sWG18x90GWDGDIt9A04ZyYTPr1cvc0q5hPI+2ae0Ropn/vkbFfnMFpBtfb2k0fCoNGU Co9y+bt6ni6bM2i6JE/SdeFzNyCMC7cf73BGqPqGEouqOyEAV6zBLR0+xRcdkDMEzT0x aTe1KQDALTm2DMG1BEJIKG6O8ch5CMUZeJBJzYMSivQMQu2mbJ8FABvsxy0hNh6cs3IZ mWzg1KkKNkgMmWKHLHoBraRbCXirLU223/vX2IPmzCtPbKLr+coyWlhULIqCJt5Icr6Q kAOg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bc11si14441883edb.532.2020.09.17.04.30.46; Thu, 17 Sep 2020 04:31:10 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726765AbgIQL3l (ORCPT + 99 others); Thu, 17 Sep 2020 07:29:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726625AbgIQL1l (ORCPT ); Thu, 17 Sep 2020 07:27:41 -0400 Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2610AC061797 for ; Thu, 17 Sep 2020 04:27:22 -0700 (PDT) Received: by ozlabs.org (Postfix, from userid 1034) id 4BsZSP0kmbz9sTq; Thu, 17 Sep 2020 21:27:16 +1000 (AEST) From: Michael Ellerman To: Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Christophe Leroy Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org In-Reply-To: References: Subject: Re: [PATCH 1/2] powerpc/8xx: Refactor calculation of number of entries per PTE in page tables Message-Id: <160034201341.3339803.11663256745878554872.b4-ty@ellerman.id.au> Date: Thu, 17 Sep 2020 21:27:16 +1000 (AEST) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 31 Aug 2020 08:30:43 +0000 (UTC), Christophe Leroy wrote: > On 8xx, the number of entries occupied by a PTE in the page tables > depends on the size of the page. At the time being, this calculation > is done in two places: in pte_update() and in set_huge_pte_at() > > Refactor this calculation into a helper called > number_of_cells_per_pte(). For the time being, the val param is > unused. It will be used by following patch. > > [...] Applied to powerpc/next. [1/2] powerpc/8xx: Refactor calculation of number of entries per PTE in page tables https://git.kernel.org/powerpc/c/175a99991511fed16108dcb823f0af8e72325a1f [2/2] powerpc/8xx: Support 16k hugepages with 4k pages https://git.kernel.org/powerpc/c/e47168f3d1b14af5281cf50c59561d59d28201f9 cheers