Message ID | 20230309145246.22787-4-joey.gouly@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 EC2A1C64EC4 for <linux-arm-kernel@archiver.kernel.org>; Thu, 9 Mar 2023 15:33:51 +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=K7K6iaKzZqMJwrDydr8EzWRiILQgU1p/DjBiWsUcHjM=; b=WQbQusZ9MgK4wt KoUZJUTKoibypQu8vnR2FuHe+2/dn+0Z10718RSSf3gz7b+j52tCHCK05mfXnFlryH6hMtY9tOQWz QgAh02JnwyKbpgvoeM7+eqR+b8i9hhBoAN+fE4xJx5FLS8yNe21n7KC6/Fu2mxKg4mW2PVAIKeXQt x5j7jPt/yJJVaYtQ5ftDq8frhASiqffuA77M91AVRfSEPm50200CdkPWAEs752VbE+6uOCNYIGVI5 IrawuzVl+frk2GYkjFAGHLQj7sQIGwshpdgXh5QUC2juTu5EGp64r61WZjLfGHEcVbvQX7yVdNJp5 egUuE0E6gHHnTLzkKXrA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1paIFB-00AvKw-Pa; Thu, 09 Mar 2023 15:31:53 +0000 Received: from mail-db8eur05on20620.outbound.protection.outlook.com ([2a01:111:f400:7e1a::620] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1paHtb-00Ang0-5g for linux-arm-kernel@lists.infradead.org; Thu, 09 Mar 2023 15:09:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZNy4uIALqoEZVWSvmo0nizRHr3XFp7TuiLO5sHIkh0c=; b=RzUJDILU0sqvUcTGI4hYTPrZGalPSDm0qR8RNZR3yfqoCFF/pYctVSuCqrnOpjJMb+GZIDarhIaBVf0fXTYSxl5IaPL1vCrPmHlJ4cApxmVdcsIiOYY9P0w2bAHAX1SHHGFL1kKqT+v9RmXcEnNTUELvw0zlkh8q4B00lAkM8M8= Received: from FR3P281CA0205.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a5::17) by DU2PR08MB9962.eurprd08.prod.outlook.com (2603:10a6:10:498::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.19; Thu, 9 Mar 2023 14:53:47 +0000 Received: from VI1EUR03FT038.eop-EUR03.prod.protection.outlook.com (2603:10a6:d10:a5:cafe::e1) by FR3P281CA0205.outlook.office365.com (2603:10a6:d10:a5::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.17 via Frontend Transport; Thu, 9 Mar 2023 14:53:47 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VI1EUR03FT038.mail.protection.outlook.com (100.127.145.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.19 via Frontend Transport; Thu, 9 Mar 2023 14:53:47 +0000 Received: ("Tessian outbound 55ffa3012b8f:v135"); Thu, 09 Mar 2023 14:53:47 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 9764394d56ccbde3 X-CR-MTA-TID: 64aa7808 Received: from 2a9d25018e95.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 90D81379-89A8-4EE6-A4F5-5A3AD36728F2.1; Thu, 09 Mar 2023 14:52:56 +0000 Received: from EUR02-AM0-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 2a9d25018e95.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 09 Mar 2023 14:52:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l8GXohziqOKmmGg/ISAILiF8gVsCpSbNONT8U4abTvYhSdbhNB7ywkp92A+3UtYcdHqsuxkI2FLmIuFjfhuZvVKZHMa+Bu6Xlig7ED9MWJkq2yAhoU02KaT2ogP7q0VLfMQCrxYmnmRPtjA1yjOvqxJJhHLTI0LdrAoBObwrko2I7RMZ08wfa8ntwOS9BCwvn70TIBAKFDXm2QrIVYltQ+w3NoL8rToo7py3BGUAS5C76vvX/JKda8AHf73iN+SlCM6Y69zyMxOC2qaub+5GTXoPAt20zodPbPJ6+mTicJM1zFZKr+Txw3/pO+B3oLY2TMUo3L5MN+F28TC0mzR43g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ZNy4uIALqoEZVWSvmo0nizRHr3XFp7TuiLO5sHIkh0c=; b=jWKUB3uwlZaFvvI/nE4bGIsTPRDPx1yzcxuo9u/TidiAhMsjC41yT6pQ+FWLgvAq7Rm3T8ivsCIUfUGPfyJ44BWEx1HQJwNAJPNt3lXCxo1SowF1Wf0vskLELgTpQHXy+GSOOExkNUWuHSD9tWQskolRotFGqAvcmb1htH5RZIjZONrI986f6/Nh3hxQnO2rSuzrjIfAH4b8rE/zBSfexVdHKw22aUHFVAN0dXxltMFY1LvOvXXe3B55ADEe7v62VNMXJR7e0HjeBPamV+paInCzygT3tZ7qgg6Dop128kza3gcS47ZWF7fx07nriiJ1ETTQtENGPMpFrUFdNh4VZg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=lists.infradead.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZNy4uIALqoEZVWSvmo0nizRHr3XFp7TuiLO5sHIkh0c=; b=RzUJDILU0sqvUcTGI4hYTPrZGalPSDm0qR8RNZR3yfqoCFF/pYctVSuCqrnOpjJMb+GZIDarhIaBVf0fXTYSxl5IaPL1vCrPmHlJ4cApxmVdcsIiOYY9P0w2bAHAX1SHHGFL1kKqT+v9RmXcEnNTUELvw0zlkh8q4B00lAkM8M8= Received: from AM6P191CA0044.EURP191.PROD.OUTLOOK.COM (2603:10a6:209:7f::21) by AS8PR08MB9908.eurprd08.prod.outlook.com (2603:10a6:20b:562::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.17; Thu, 9 Mar 2023 14:52:55 +0000 Received: from VI1EUR03FT044.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:7f:cafe::2b) by AM6P191CA0044.outlook.office365.com (2603:10a6:209:7f::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.18 via Frontend Transport; Thu, 9 Mar 2023 14:52:54 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (40.67.248.234) by VI1EUR03FT044.mail.protection.outlook.com (100.127.144.96) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6178.19 via Frontend Transport; Thu, 9 Mar 2023 14:52:54 +0000 Received: from AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Thu, 9 Mar 2023 14:52:52 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Thu, 9 Mar 2023 14:52:51 +0000 Received: from e124191.cambridge.arm.com (10.1.197.45) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2507.17 via Frontend Transport; Thu, 9 Mar 2023 14:52:51 +0000 From: Joey Gouly <joey.gouly@arm.com> To: <linux-arm-kernel@lists.infradead.org> CC: <nd@arm.com>, <broonie@kernel.org>, <catalin.marinas@arm.com>, <james.morse@arm.com>, <joey.gouly@arm.com>, <mark.rutland@arm.com>, <maz@kernel.org>, <oliver.upton@linux.dev>, <suzuki.poulose@arm.com>, <will@kernel.org>, <yuzenghui@huawei.com> Subject: [PATCH v1 03/18] arm64/sysreg: add TCR2En to HCRX_EL2 Date: Thu, 9 Mar 2023 14:52:31 +0000 Message-ID: <20230309145246.22787-4-joey.gouly@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230309145246.22787-1-joey.gouly@arm.com> References: <20230309145246.22787-1-joey.gouly@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: VI1EUR03FT044:EE_|AS8PR08MB9908:EE_|VI1EUR03FT038:EE_|DU2PR08MB9962:EE_ X-MS-Office365-Filtering-Correlation-Id: a4967abb-cd99-4657-8427-08db20ae1668 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: CrMlAfhJMlJTDHHmM6ajL3eXxru7moL+HOq/WvnEcsImVWeGCHCwxuzaCFMNom/deyX45Ab3khiT+/VS/zLqDrx/hmXCA5Resz/yzTUaW1jJEEOS4J4iks5fivebJGF5zLd0sTTCSgQa2wDzd6MheEnCfL/la+ZvOGGSfND6PbPoiuaAkX7axCy1CJ8Ila0i7Sgibm9o0d1v8p2rJ6OnhR/wC8VsIhxQ79MNOSOtYU1fIqVfmg8/3n8BwhrIVWVTnd91sPt+JDMYmxwQnKWMtkK85zUVr8jZ+TSa+Ibur9pbdWcRSUKiFIioGiZrrhh6PQHsnTJgYHyJtWcWNfAustA03g2Xo5LLL+jjKtFdoxCHZQkE5yGmiMu7sh87tHv/nEWbj4gcJES4QwaHIqqFf+yXYQDvQL6+3FftmaEQV0ksr9puVPpTVnrT2mfwE7luHVqVLWpEYvAATMeFFLh02vPe7ozkXnJMS738HD8TyXL3crUPC1n5mH6uZgN1/Dkd1iHVn9YqIclK/c6Kd70doFMHRMNtYk08z+YRGyUCqAU6uDh6Xj0IisJwo4smsa3UqyMQRHjXX4xEetVYC4IJln5eseFdtpK4Dw+v3bgd1r+KIG0upKsCVW6jJT2kH1MEvhhxuwJCq2X4i2UryLYtROm/mTHGetxWS2DWi/J/8Fx2d1f601DnMwrUghL47KyX48Zne73n+tkzOqQXw2fEeQ== X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230025)(4636009)(376002)(346002)(39860400002)(396003)(136003)(451199018)(46966006)(36840700001)(8676002)(6916009)(4326008)(6666004)(40480700001)(82310400005)(36860700001)(4744005)(70206006)(70586007)(5660300002)(41300700001)(86362001)(336012)(8936002)(83380400001)(82740400003)(47076005)(186003)(356005)(2906002)(426003)(316002)(36756003)(478600001)(81166007)(1076003)(26005)(44832011)(54906003)(7696005)(2616005)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB9908 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VI1EUR03FT038.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: e10886de-a996-4b49-57d1-08db20adf709 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: U6AJsKf0aNl6mclnHxuUXrcj7OmWFRiRckCCPxZiOSQTx1othglK9RkbqK7fQMpB450uqXxIR7HGl5798WBEImodb0wUZyuWgDna+p09qMeam80k6O/8gk/03WNQNfh92pTrNj8KiotlIYu1r7BKfYg2dnGhD2dyL2WI+p2sWrWyeOQvizPMxRXhMfqijnIqQ8ud8d7RpNnSD+KREBRrxe3ubh3IAqyDlGHwwtxQIKoR64sd5dc7y2w0ZeC/cbrmyu24sm1cPov5vwgKnlbzWU/n4zgTrdILpyLRDjNAE7dIolha1pIMcQUN9zkFfdG7hlL0SJwaeJtPXBK024bSeDQEZp58KNhe9JUkaKPHi0yaA2ElfdqXoKwFMkoFRkWPpGf9LHtdJJK+qDNVrW86lJxGwB9RPoAQtZt7LwwR9/FJAW4qwgv260S8bNkJE0L303khExqfwEf1Epn+kMYAeO/ghgnx+orbqLBhBs3L6M7tug5tvecweppEbaRr1j398gJT7Z7MpqhiEMX7CVyzaSQMR3AOaRFz7a0I5rIaqiQk+0E/BHqcEh19DQv8GoLM9SV2GznOo8Kq6gWcn3E1oiUp5OgKzA+1/sAOWuKuEZRptXfQ+kga3FH+HlhaArSx0pjqrKtBnNF5Bn0FPtHi2Y+WPr1z22P3+e33m2qbkF/fJ5xz0MrYpjrYlO9VD3xluWC/GUpc5ls/OT35zjt7Qw== X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(13230025)(4636009)(376002)(39860400002)(396003)(136003)(346002)(451199018)(36840700001)(46966006)(40470700004)(47076005)(336012)(426003)(186003)(316002)(54906003)(40460700003)(36756003)(40480700001)(86362001)(82740400003)(1076003)(36860700001)(81166007)(26005)(6666004)(82310400005)(83380400001)(107886003)(2616005)(5660300002)(8936002)(7696005)(478600001)(41300700001)(44832011)(6916009)(4326008)(4744005)(2906002)(70586007)(8676002)(70206006);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Mar 2023 14:53:47.4466 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a4967abb-cd99-4657-8427-08db20ae1668 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: VI1EUR03FT038.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR08MB9962 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230309_070931_236104_94CE60AB X-CRM114-Status: UNSURE ( 9.10 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Permission Indirection Extension
|
expand
|
On Thu, Mar 09, 2023 at 02:52:31PM +0000, Joey Gouly wrote: > This bit controls the trapping of TCR2_EL1 to EL2. > Sysreg HCRX_EL2 3 4 1 2 2 > -Res0 63:12 > +Res0 63:15 > +Field 14 TCR2En > +Res0 13:12 This is correct but it would be much better to sync with the latest XML release (DDI 0601 2022-12), there's a bunch of other fields defined. That way different serieses can share the patch without conflicts, and it makes life a bit easier with the review.
diff --git a/arch/arm64/tools/sysreg b/arch/arm64/tools/sysreg index 0c3a6790842a..1d9805239a73 100644 --- a/arch/arm64/tools/sysreg +++ b/arch/arm64/tools/sysreg @@ -1935,7 +1935,9 @@ Fields ZCR_ELx EndSysreg Sysreg HCRX_EL2 3 4 1 2 2 -Res0 63:12 +Res0 63:15 +Field 14 TCR2En +Res0 13:12 Field 11 MSCEn Field 10 MCE2 Field 9 CMOW
This bit controls the trapping of TCR2_EL1 to EL2. Signed-off-by: Joey Gouly <joey.gouly@arm.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will@kernel.org> Cc: Mark Brown <broonie@kernel.org> --- arch/arm64/tools/sysreg | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)