Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1050582rwb; Wed, 9 Nov 2022 12:04:16 -0800 (PST) X-Google-Smtp-Source: AMsMyM5ZwAdtgXsjvO8r7UVR59WUqeTe+EHYj8waTesU1d8Q1ch2iOlGrkQewhw8YvtVLfrWaRu8 X-Received: by 2002:a05:6402:e01:b0:442:dd7e:f49d with SMTP id h1-20020a0564020e0100b00442dd7ef49dmr60646999edh.355.1668024256547; Wed, 09 Nov 2022 12:04:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668024256; cv=none; d=google.com; s=arc-20160816; b=JgAkfNf17FXMd/ysj5kQCLQjufXoEopC+DzVXPiNVao91vlH0gpw+QWvG3C+hicJx8 vVcd9cdHiqd8x5jQ2mw6TzXNPeY5aKhKNmB2JlF6pIMMzomS9uOT9pLrVWJ8osU8W6HX nxJgvxL7lc7+R/9UDmiwxiItOE/59ChYuGcz+kZoLbXAqcNcdp8CYq4K3H2UOXkMVJJZ TKM1IkkEZiNOqw4bHRRmTXW12IQMOHASqSJEn5XcbRwZ1eEzrwwAMPxgFUdOAR1TuBhr GbGO+a7nsyxWpjaFXAPSvIXeN/QBUIciRoMfTFtSY6C4fZjA3CoILkuTDnIAXfD6cjpu 71Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vMG5pha7rb0ibnqoO6HUNoKsLlB6iZX03w43vtjoYLY=; b=hyXfw8u5FUgtQ9KUj3VzDRhgQZWRO+Flld0UY78AFJ7DWb3/L445x+56ywsAbgHd3v n5OFFNdIlFZl92/6Px/Wwd2eaQBanXKAv1TrvN6NUdLI7thLm6WjK//9EvCViAZBMugO 5ArAA0nuey3mng+CG4UYubytkvd4xSBqZ6LxOLNBdVx18hzeqfeG/gB/57MIKBs7yQRI rYQzADsPMmCCveLQmmp60E1vB/rUbLWz6KguwQ/BH5Wfg3Of0EGGXr0SC+0thHz8kxDA Fnk9sJmMvoHDXN9kJ6sI0fLhhgUs+wxHihWMRU6JsYmYpWsLmdWKS2Z91nwEMvIB7UVt z43A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hlkVESRs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cw14-20020a170906478e00b007707ab4be28si9203737ejc.972.2022.11.09.12.03.54; Wed, 09 Nov 2022 12:04:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hlkVESRs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231391AbiKITOK (ORCPT + 92 others); Wed, 9 Nov 2022 14:14:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231298AbiKITOH (ORCPT ); Wed, 9 Nov 2022 14:14:07 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 021DD186D4 for ; Wed, 9 Nov 2022 11:14:07 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 92A4961CB6 for ; Wed, 9 Nov 2022 19:14:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 227C9C433C1; Wed, 9 Nov 2022 19:14:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668021245; bh=9+ezXuKLKJrJi5jxVLZ+tU4siYaqZ/EiW1zLmFT7V5M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hlkVESRsZ+UF+b2bbmijcDlfkW00l80vMLZazpLDfuvKXh4KzFWxQlOqSxsJ3Wq/M 2F1eX21cy2X1+O6bxhMiC66OsvmNoGKyZRgSZ93sm1X/tniXBBm9yiFU+80Ps1/gzm CmoTV3reHgNhTOCfEqgzMEy3kcxGjX/MxSLHxjxkypBG8zfuQfxXP7FUOo0GwL8ota 7hxqVup6ADQVwL9vZcU0whWO1cqbrHgxpQWeCnF6w5LjZrCOjcLFk1PssrvQ0PEVSo 5/v1cmsEkIvX8fyan0GaH+U7jY56HbbZDVHRl9qo/VrONr5kl9X+vkkDBVvSYszQAX Lx9X/5gLgxJVg== From: Will Deacon To: Anshuman Khandual , linux-arm-kernel@lists.infradead.org Cc: catalin.marinas@arm.com, kernel-team@android.com, Will Deacon , linux-kernel@vger.kernel.org, Ard Biesheuvel , Mark Brown , Mark Rutland Subject: Re: [PATCH V3] arm64/mm: Simplify and document pte_to_phys() for 52 bit addresses Date: Wed, 9 Nov 2022 19:13:57 +0000 Message-Id: <166801759869.863955.2245773811250086481.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20221107141753.2938621-1-anshuman.khandual@arm.com> References: <20221107141753.2938621-1-anshuman.khandual@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 7 Nov 2022 19:47:53 +0530, Anshuman Khandual wrote: > pte_to_phys() assembly definition does multiple bits field transformations > to derive physical address, embedded inside a page table entry. Unlike its > C counter part i.e __pte_to_phys(), pte_to_phys() is not very apparent. It > simplifies these operations via a new macro PTE_ADDR_HIGH_SHIFT indicating > how far the pte encoded higher address bits need to be left shifted. While > here, this also updates __pte_to_phys() and __phys_to_pte_val(). > > [...] Applied to arm64 (for-next/mm), thanks! [1/1] arm64/mm: Simplify and document pte_to_phys() for 52 bit addresses https://git.kernel.org/arm64/c/a4ee28615c7a Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev