From patchwork Tue Aug 8 11:46:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Zyngier X-Patchwork-Id: 13345974 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 49127C001DF for ; Tue, 8 Aug 2023 11:47:58 +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=tGNANHlbpmF8KeUP+9ng24kX1+chhZUubTsOJl0w/II=; b=Psz3pYn1LCgpBJ Mve57DqXdgl3lxKNw0o2ykPWNnJvGALXgpAOptKbynqrtAZLS2rd3M2Cf4IdGav5XLt/mONoyeZD5 3TnqMlkysMyyYoBRPte3aMLeb+uZuMjnPQ6bWQcv729c6L0k8gd6BfQqOI3FbyY+4UoQb6LI0v24R J1P6ss9mUZi1O0ZCIsrBdehi0jfbHaFaKwETcmV6vcGDLBC+c34VsRrp55pnfa8pe7abTN6YKyFBA uW2rlERCWfzcnf1wLIKiTzxegmT5dXgYRgg8iMnmCg7O9CjVkPg2VgFUwg2pG/xt9nTrQ8Lp+Kmmi 0Qradf/LW07Lv+hv2Rqg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qTLBU-002UUw-2h; Tue, 08 Aug 2023 11:47:32 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qTLBK-002UOf-08 for linux-arm-kernel@lists.infradead.org; Tue, 08 Aug 2023 11:47:25 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9DAF562505; Tue, 8 Aug 2023 11:47:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B286C433C8; Tue, 8 Aug 2023 11:47:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691495239; bh=5iKpslBQZfnKRLEGs+Ud+1WPRDTfwxOGNa25YZkpxEQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NjMDjWo/L3BeDKA14sIwqkZvUqv9QlBy6HuDzNp9Z8I82y4gaT3tLnvYe4AMJNEnR 77G7+jQtjDmw2ziXdu+ffKlBhbGsI108BRakIvtxMzbNMDaEHSCRK/P6zBYtxGaLsk miVJthnpdeL63ZGDo9R6t9Ziw+NJn71WQDjFHsh3iTeUowLkB/YVfoxFzasjc40Nih ZoQ3m0Pt9PrE19TqxLexFeeF8YIaNhp3AR0vtOdD+PUiLRzB5MYCw/n6Weo+UA+S27 CdEcavD5jYEeotaik3rePACzWA/Qk1Bz5GD6deAyzVuT2+4mpinHES8nXDOeWgdt2l 56/xuQDSzzt6Q== 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 1qTLBF-0037Ph-0t; Tue, 08 Aug 2023 12:47:17 +0100 From: Marc Zyngier To: kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Catalin Marinas , Eric Auger , Mark Brown , Mark Rutland , Will Deacon , Alexandru Elisei , Andre Przywara , Chase Conklin , Ganapatrao Kulkarni , Darren Hart , Miguel Luis , James Morse , Suzuki K Poulose , Oliver Upton , Zenghui Yu Subject: [PATCH v3 07/27] arm64: Add missing BRB/CFP/DVP/CPP instructions Date: Tue, 8 Aug 2023 12:46:51 +0100 Message-Id: <20230808114711.2013842-8-maz@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230808114711.2013842-1-maz@kernel.org> References: <20230808114711.2013842-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, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, catalin.marinas@arm.com, eric.auger@redhat.com, broonie@kernel.org, mark.rutland@arm.com, will@kernel.org, alexandru.elisei@arm.com, andre.przywara@arm.com, chase.conklin@arm.com, gankulkarni@os.amperecomputing.com, darren@os.amperecomputing.com, miguel.luis@oracle.com, james.morse@arm.com, suzuki.poulose@arm.com, oliver.upton@linux.dev, yuzenghui@huawei.com 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-20230808_044722_195538_8FE39882 X-CRM114-Status: GOOD ( 11.80 ) 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 HFGITR_EL2 traps a bunch of instructions for which we don't have encodings yet. Add them. Reviewed-by: Miguel Luis Reviewed-by: Eric Auger Signed-off-by: Marc Zyngier Acked-by: Catalin Marinas Reviewed-by: Jing Zhang --- arch/arm64/include/asm/sysreg.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h index bb5a0877a210..6d9d7ac4b31c 100644 --- a/arch/arm64/include/asm/sysreg.h +++ b/arch/arm64/include/asm/sysreg.h @@ -735,6 +735,13 @@ #define OP_TLBI_VALE2NXS sys_insn(1, 4, 9, 7, 5) #define OP_TLBI_VMALLS12E1NXS sys_insn(1, 4, 9, 7, 6) +/* Misc instructions */ +#define OP_BRB_IALL sys_insn(1, 1, 7, 2, 4) +#define OP_BRB_INJ sys_insn(1, 1, 7, 2, 5) +#define OP_CFP_RCTX sys_insn(1, 3, 7, 3, 4) +#define OP_DVP_RCTX sys_insn(1, 3, 7, 3, 5) +#define OP_CPP_RCTX sys_insn(1, 3, 7, 3, 7) + /* Common SCTLR_ELx flags. */ #define SCTLR_ELx_ENTP2 (BIT(60)) #define SCTLR_ELx_DSSBS (BIT(44))