From patchwork Thu Nov 24 12:39:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 13054925 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B3C00C433FE for ; Thu, 24 Nov 2022 12:41:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Y45BHGSSGy2BuXI6vDcSU9WqH4a6/ipbhYebrKRenZY=; b=zBGdRyMzDO/jsd r0orC8B+bwJarafpzSKg/LajBR9Z81b9DQuq7YjTpuLM7F192kI61CpQ2PcuMRgCLtMVhC8sP6ym0 UocfvqjE00u54Qe3RTqejqpNeHeSF6DhhPpgWgMaMNeIHbfCWFVf/sHDaQy4m0/VQtMlRDewKeiZK 2aRi20Ya2zrRA3I/HkSkRDg/fwYyCNEGFeQbHClAOfsgX3UjNX6V42EeWTIbIVLZFtkp8roNm7l+D yWhsMnWD7QtHjvUY4Mu+TihnbP579psYHQEIcS0PyjLR1X8/EoPEi8k+yACEfejK8juqVaxlfLBo+ WlWG8PG/PZ/LrrLv5oOw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oyBWc-008OV2-V9; Thu, 24 Nov 2022 12:40:19 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oyBWI-008OJt-6Y for linux-arm-kernel@lists.infradead.org; Thu, 24 Nov 2022 12:39:59 +0000 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 BDBA462119; Thu, 24 Nov 2022 12:39:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8DD48C4347C; Thu, 24 Nov 2022 12:39:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669293597; bh=PpzT1Qz99YbomlQ4NisMUyGFgf+yzCr/p1fvYsKo6F4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tY/+TYRDyADlzSYV6i3H16Tw2A2sLZZbvVxIw/sPU92r79VcrX9kYCvudiSiBUhz1 Ktdiy0kQ4nn6IPjq269Bq/uYOi3V6Ak7A8Xxianj4Z+Js+IHFkxj4ll6a46kpJXVNM 4ZfW8QdPkruryR4XDClVDtd/4cfqhTCNhY0VDI3crSCPAANKsXktdKKEKbI5rb6CoT 36HR3Own5BpuhxDqQQ8RGoz+E8sTckf2ymAn7OzjA6BqLcuEZvHYA9uqYW6/nctaJn wOakipM5wjlfk5r+9QAe/0XA7bF0XNXry9Wsk2BxX95rj/MeQU4I1h/+vQTf8sMRRM 5YogmZtOFSGEA== From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org Cc: Ard Biesheuvel , Marc Zyngier , Will Deacon , Mark Rutland , Kees Cook , Catalin Marinas , Mark Brown , Anshuman Khandual , Richard Henderson , Ryan Roberts Subject: [PATCH v2 02/19] arm64/mm: Add FEAT_LPA2 specific TCR_EL1.DS field Date: Thu, 24 Nov 2022 13:39:15 +0100 Message-Id: <20221124123932.2648991-3-ardb@kernel.org> X-Mailer: git-send-email 2.38.1.584.g0f3c55d4c2-goog In-Reply-To: <20221124123932.2648991-1-ardb@kernel.org> References: <20221124123932.2648991-1-ardb@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221124_043958_303091_21447929 X-CRM114-Status: GOOD ( 11.83 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Anshuman Khandual As per ARM ARM (0487G.A) TCR_EL1.DS fields controls whether 52 bit input and output address get supported on 4K and 16K page size configuration, when FEAT_LPA2 is known to have been implemented. This adds TCR_DS field definition which would be used when FEAT_LPA2 gets enabled. Acked-by: Catalin Marinas Signed-off-by: Anshuman Khandual Signed-off-by: Ard Biesheuvel --- arch/arm64/include/asm/pgtable-hwdef.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/include/asm/pgtable-hwdef.h b/arch/arm64/include/asm/pgtable-hwdef.h index f658aafc47df..c4ad7fbb12c5 100644 --- a/arch/arm64/include/asm/pgtable-hwdef.h +++ b/arch/arm64/include/asm/pgtable-hwdef.h @@ -276,6 +276,7 @@ #define TCR_E0PD1 (UL(1) << 56) #define TCR_TCMA0 (UL(1) << 57) #define TCR_TCMA1 (UL(1) << 58) +#define TCR_DS (UL(1) << 59) /* * TTBR.