From patchwork Tue Sep 3 15:38:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Zyngier X-Patchwork-Id: 13788977 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 5BDEACD3447 for ; Tue, 3 Sep 2024 15:46:37 +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=2jIspTswi8t/CnhiloUPh2KpC6iRx0cf0gukO6X4al0=; b=1EjzLU54Skebv189xmXE1vbOin WzY++lUgcuDJ+ed0ndIC8RfYpJZTl6o5bgHbS/KU/A6XDW0OE0MIfNvDT3IXxY2ETzf2pA759SMH9 2KnDpN3AofG72UkwJ/eN4R10BZVJu8+sj2EDB47YRjZ9RNmHDWyNf4Eckr+7N5kKr22sAiswyX59z XiQJQz1Tg9Vu0rPy6LZ+qA6znR9EurrhZNOMI7jlmEUK2G2FizUnfg8n7OBg2kuUWToVXgV2ble5c B6hNtMPO5jp9sxXwnVHEZglvsPJ++uKzi5Mc3oDeRSuYU/5lY3DdMIy0HFWazKPfcqqW2b3R8a8No cTAX0U4A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1slVjf-00000000wQz-3gkf; Tue, 03 Sep 2024 15:46:27 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1slVcA-00000000uFc-3bPK for linux-arm-kernel@lists.infradead.org; Tue, 03 Sep 2024 15:38:45 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 7B7575C5A0A; Tue, 3 Sep 2024 15:38:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A9E41C4CECB; Tue, 3 Sep 2024 15:38:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1725377921; bh=flPSXZ/rkSqCan+6HF2mXNni6q/f/eIKX2LhnH8BXhs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cgAnPN2aPoNwFJgQhDnbIagPewUwCkK/tVk+QGRUZbiU4LT7tv3NeDDxYA36CnDjn dphE0i2pmPxUxf0L6dpiFWt2fjA7OqgVeG0hP5K5p/W10gkxMAev8eWQ/T8P6DgZnI 8lVWT1evAQB6TNQrDfqW9RoVyuxiokGDtGL6xPsGmvE37TNylo4xgI9vBLT7oD2qK0 dAHIcdBi+bf2E0zmGhZX/l7+og44jkwJ2NyzYUFj8UV0FtgdCgyLJAlTRLDzV0eeHp ZfqDTuUCprgHM8v59+LyZb/YuUN5aSoGh/LVl5drGn/WWtRPRegUjjnYAQP8kQhSLO Klmr/7OIG81DA== 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 1slVc7-009Hr9-Fx; Tue, 03 Sep 2024 16:38:39 +0100 From: Marc Zyngier To: kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org Cc: James Morse , Suzuki K Poulose , Oliver Upton , Zenghui Yu , Joey Gouly , Alexandru Elisei , Mark Brown Subject: [PATCH v2 05/16] arm64: Add encoding for PIRE0_EL2 Date: Tue, 3 Sep 2024 16:38:23 +0100 Message-Id: <20240903153834.1909472-6-maz@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240903153834.1909472-1-maz@kernel.org> References: <20240903153834.1909472-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, james.morse@arm.com, suzuki.poulose@arm.com, oliver.upton@linux.dev, yuzenghui@huawei.com, joey.gouly@arm.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-20240903_083843_004897_0F10D210 X-CRM114-Status: GOOD ( 11.19 ) 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 --- arch/arm64/tools/sysreg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/tools/sysreg b/arch/arm64/tools/sysreg index 7ceaa1e0b4bc..8e1aed548e93 100644 --- a/arch/arm64/tools/sysreg +++ b/arch/arm64/tools/sysreg @@ -2853,6 +2853,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