Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3514274rdb; Wed, 13 Sep 2023 14:38:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH7hjpwb8RWcqr8FsxRzHmGCnNSCBgBWzCCZC4JhOh80aZysEZJ8QTkmsQS+4ZWuj8dqGg0 X-Received: by 2002:a17:90a:eb06:b0:268:314f:8f40 with SMTP id j6-20020a17090aeb0600b00268314f8f40mr3345061pjz.16.1694641103782; Wed, 13 Sep 2023 14:38:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694641103; cv=none; d=google.com; s=arc-20160816; b=gNKyVvFQbEaNJvCn/jmIs19HcgCtIakA+MjJy0XAzkig65gxQ67NOXnTrYAaT83kBj aLjc6j7lUIuxaeuO89jJi88QlukE9LUF7looa3q5oZr9SODfcqKrvBzAVsRtjQvdtghK +CMdnUYGZtm4PRD/UulE3feu2y1+v+be1KxaPPkA27UTvAIn/exeVnlx4XkB6BEdt7Nf Gy0kdsFX5tjxM/fWivGHstm48n2YRKJewIR0mcZrf5eFWI2Od7yMJi0X5wuJs8YWq10w 5t/Rkl78XWCPsABy45zO9VOXYFx6mWgnK9lxbBbfp3P0yOhm9CZ7C9elThp7BEnTCQZA xoMA== 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=A844yIWuMRb64sCEYqTp6ujmssih0gRor/csqDcYRbE=; fh=UEH6cFyH1ghvNrfwViNbncCn5r9iy89nkA/jfjQrZCI=; b=cLxg+dUJEQYwNOwgeA9przxv5PmZT8h7KR20O5eYZuBs/WnwRvM60AkHj7VgrJOf77 ITs4+ImPOiBtVZ0kp3IiYk4Drp50La586gOi+VsTB7K4SUQBe9S+OkoWJihIgRx0T49D NCT2xEkJd5eP2k9bsnTUMP1jjssETIu6p4CmYP5FkO/I2yHtWDDD8F4CAqkPwDFxvGaT eg5x15tqFbKTqmJpUgx8x2ukAqK1u+ooXLfzYgzE3ZWt9Ef6Z/4BWZZVgjdUKLLApWAG uK5IfO50VsLoJJEHkm86irz/1ZoVKR0nooNyLgN8FttQzigtCEpLD9e6Aic4lWnp4hA2 ys0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=vOQ87fDt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id l3-20020a17090a72c300b002735abbfab0si2360485pjk.11.2023.09.13.14.38.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 14:38:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=vOQ87fDt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id E2E42827D0D7; Wed, 13 Sep 2023 11:53:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231987AbjIMSxW (ORCPT + 99 others); Wed, 13 Sep 2023 14:53:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231981AbjIMSxV (ORCPT ); Wed, 13 Sep 2023 14:53:21 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8E641BC8 for ; Wed, 13 Sep 2023 11:53:17 -0700 (PDT) Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38DHFHv0032248; Wed, 13 Sep 2023 18:53:00 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=corp-2023-03-30; bh=A844yIWuMRb64sCEYqTp6ujmssih0gRor/csqDcYRbE=; b=vOQ87fDt6OmB7ygGRkWM2FxqEop2F2kMikyLvpM8sPjjL7NORuY4/f4/lL88IcTmGW92 cHBeJMW1MdLOhrJCdGrXqn3bUZzvAyrRdf82EwWxc4mOHoFhtTj2l17jdYHLQZ/gOcU+ hjRGchV9eUB8JWZT6sHeFh4WBSPFMUHT0tZ6YuaoXVSV6hZcd655L3DulTXiQjBd/I3H ykZYqdhVtqVt7U68NmUZE4VWOdfoU/rNcCruZzpQ9cCUOfxnmbdZ0YQ7ynUAn+BWyX6Z GyiyGsXTnrNWkoGtRkUO5euiEp04Ezr7DU1DLJ9zu/JVoKCimkuTYvIOSVcSobTl9FIT /g== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3t2y7mtv5c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 13 Sep 2023 18:52:59 +0000 Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 38DHpQG7032938; Wed, 13 Sep 2023 18:52:58 GMT Received: from pps.reinject (localhost [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3t0wkgxr65-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 13 Sep 2023 18:52:58 +0000 Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 38DIqniq015352; Wed, 13 Sep 2023 18:52:57 GMT Received: from mlluis-mac.uk.oracle.com (dhcp-10-175-187-203.vpn.oracle.com [10.175.187.203]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTP id 3t0wkgxqyp-2; Wed, 13 Sep 2023 18:52:57 +0000 From: Miguel Luis To: Catalin Marinas , Will Deacon , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kvmarm@lists.linux.dev Cc: miguel.luis@oracle.com Subject: [PATCH 1/3] arm64: Add missing _EL12 encodings Date: Wed, 13 Sep 2023 18:52:06 +0000 Message-Id: <20230913185209.32282-2-miguel.luis@oracle.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230913185209.32282-1-miguel.luis@oracle.com> References: <20230913185209.32282-1-miguel.luis@oracle.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-13_13,2023-09-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 adultscore=0 phishscore=0 spamscore=0 mlxlogscore=918 bulkscore=0 suspectscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309130158 X-Proofpoint-ORIG-GUID: dHwUZyW_SLzKwxdJe8FeOkuqD09qGYuw X-Proofpoint-GUID: dHwUZyW_SLzKwxdJe8FeOkuqD09qGYuw Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 13 Sep 2023 11:53:32 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Some _EL12 encodings are missing. Add them. Signed-off-by: Miguel Luis --- arch/arm64/include/asm/sysreg.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h index 38296579a4fd..c8b39f65660b 100644 --- a/arch/arm64/include/asm/sysreg.h +++ b/arch/arm64/include/asm/sysreg.h @@ -568,18 +568,29 @@ /* VHE encodings for architectural EL0/1 system registers */ #define SYS_SCTLR_EL12 sys_reg(3, 5, 1, 0, 0) +#define SYS_CPACR_EL12 sys_reg(3, 5, 1, 0, 2) +#define SYS_SCTLR2_EL12 sys_reg(3, 5, 1, 0, 3) +#define SYS_ZCR_EL12 sys_reg(3, 5, 1, 2, 0) +#define SYS_TRFCR_EL12 sys_reg(3, 5, 1, 2, 1) +#define SYS_SMCR_EL12 sys_reg(3, 5, 1, 2, 6) #define SYS_TTBR0_EL12 sys_reg(3, 5, 2, 0, 0) #define SYS_TTBR1_EL12 sys_reg(3, 5, 2, 0, 1) #define SYS_TCR_EL12 sys_reg(3, 5, 2, 0, 2) +#define SYS_TCR2_EL12 sys_reg(3, 5, 2, 0, 3) #define SYS_SPSR_EL12 sys_reg(3, 5, 4, 0, 0) #define SYS_ELR_EL12 sys_reg(3, 5, 4, 0, 1) #define SYS_AFSR0_EL12 sys_reg(3, 5, 5, 1, 0) #define SYS_AFSR1_EL12 sys_reg(3, 5, 5, 1, 1) #define SYS_ESR_EL12 sys_reg(3, 5, 5, 2, 0) #define SYS_TFSR_EL12 sys_reg(3, 5, 5, 6, 0) +#define SYS_FAR_EL12 sys_reg(3, 5, 6, 0, 0) +#define SYS_BRBCR_EL12 sys_reg(3, 5, 9, 0, 0) +#define SYS_PMSCR_EL12 sys_reg(3, 5, 9, 9, 0) #define SYS_MAIR_EL12 sys_reg(3, 5, 10, 2, 0) #define SYS_AMAIR_EL12 sys_reg(3, 5, 10, 3, 0) #define SYS_VBAR_EL12 sys_reg(3, 5, 12, 0, 0) +#define SYS_CONTEXTIDR_EL12 sys_reg(3, 5, 13, 0, 1) +#define SYS_SCXTNUM_EL12 sys_reg(3, 5, 13, 0, 7) #define SYS_CNTKCTL_EL12 sys_reg(3, 5, 14, 1, 0) #define SYS_CNTP_TVAL_EL02 sys_reg(3, 5, 14, 2, 0) #define SYS_CNTP_CTL_EL02 sys_reg(3, 5, 14, 2, 1) -- 2.39.2