From patchwork Wed Oct 9 18:59:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Zyngier X-Patchwork-Id: 13829126 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 25E26CEE343 for ; Wed, 9 Oct 2024 19:08:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=1JvKZAA9+PRxmAh6gbWkG7l4UZwFJ+Pl41i0VljhLyA=; b=gnL2IvMxI1x33+xu9BwY/i7sQN shRVEUJB/X4JrQ82JFMTyG+7DmOSM/A/JbPwDVYCZSVmvNL2fQk+jwObqsSb2gd/UKCTE/vx09Pm+ Fnx10Q2Av1H9oq/9gEUGHxm0QLEBWJ8LzgarhBH97l9ZiBdztul34rpdugpI14vObcp0nz3VpbjTI tOMG9YSxvRUFH3QtwWFCV87M37+n8DsGwlML4mJD3rWeCUAhkDk/sAGs3hutfbJNzu/WlwopjD00f jFd+3H/ysP2ZmZN2BWTPNSunPQA34AND6I+dI6qT5FULbqULdcVsVnvsrYFam2KQlK+E8EL1vYhQs qn65mAjg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1syc2g-0000000ATEB-1Xkx; Wed, 09 Oct 2024 19:08:14 +0000 Received: from nyc.source.kernel.org ([147.75.193.91]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sybvS-0000000ARGh-07Jy for linux-arm-kernel@lists.infradead.org; Wed, 09 Oct 2024 19:00:49 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id B031DA4445A; Wed, 9 Oct 2024 19:00:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1EE3FC4CED2; Wed, 9 Oct 2024 19:00:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1728500443; bh=2p8gtbngTQycKdtoWZv63noAS1lUhgvWdrHkUVI0VQw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HQJmCFiCLEbWrnX9rzGiZHcKLj0g2oGFp9XUfrRMDuy4QQn2AypL+YWabOFCNPt8c 8+lGgHPs6pfGVyPq0vFHhe3sw7rTzrT6r/4JFhXvx9jWH4YQ/CSXUbJ3xUTHvqP1qN p8rjqJiwu2tqidb6qYMibj1R2v3WZd2gbYMbfDSwq4I5HGBr1bO7MzFAUL/VxqT3I2 sWpD47Z/byKGArs1yi1TM5fEinT7T1k4iGqbo8fDOjdLGix4EpmQ1pokBDwDCCDDgv nYAIHdyivk2X/u0q89sk328xFq55HZTMkfz9IQWKYhmpAgdHIGq7eYT2iLIBQ1wMoQ /47uS3pmtQiXg== Received: from sofa.misterjones.org ([185.219.108.64] helo=valley-girl.lan) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1sybvN-001wcY-6s; Wed, 09 Oct 2024 20:00:41 +0100 From: Marc Zyngier To: kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org Cc: Joey Gouly , Suzuki K Poulose , Oliver Upton , Zenghui Yu , Alexandru Elisei , Mark Brown Subject: [PATCH v4 03/36] arm64: Add encoding for PIRE0_EL2 Date: Wed, 9 Oct 2024 19:59:46 +0100 Message-Id: <20241009190019.3222687-4-maz@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20241009190019.3222687-1-maz@kernel.org> References: <20241009190019.3222687-1-maz@kernel.org> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, joey.gouly@arm.com, suzuki.poulose@arm.com, oliver.upton@linux.dev, yuzenghui@huawei.com, alexandru.elisei@arm.com, broonie@kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241009_120046_633572_EA29B7EB X-CRM114-Status: GOOD ( 10.29 ) 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 PIRE0_EL2 is the equivalent of PIRE0_EL1 for the EL2&0 translation regime, and it is sorely missing from the sysreg file. Add the sucker. Reviewed-by: Joey Gouly Signed-off-by: Marc Zyngier Reviewed-by: Mark Brown --- arch/arm64/tools/sysreg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/tools/sysreg b/arch/arm64/tools/sysreg index ee3adec6a7c82..3c812fd28eca2 100644 --- a/arch/arm64/tools/sysreg +++ b/arch/arm64/tools/sysreg @@ -2882,6 +2882,10 @@ Sysreg PIRE0_EL12 3 5 10 2 2 Fields PIRx_ELx EndSysreg +Sysreg PIRE0_EL2 3 4 10 2 2 +Fields PIRx_ELx +EndSysreg + Sysreg PIR_EL1 3 0 10 2 3 Fields PIRx_ELx EndSysreg