Message ID | 20230309145246.22787-8-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 09B44C64EC4 for <linux-arm-kernel@archiver.kernel.org>; Thu, 9 Mar 2023 14:59:13 +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=BfQGXyiV6RNZU+wNwaCYLpm5wjwSZ8gO0gzvIZ2XWns=; b=PDOvIDMCEafsHD cwvcX8kV0/N13jTIfiwiGd6cuWHUHFbOgJFaL0etAgUDhX7kG4pbBinyxNpc94TvWGu47MF/ICqfh UzpB/S3Z5zqRu0pHJTBIKvq2uxaNypzAkyvvHLfy/EDnu7Y7fgQHjFzvLijdGmvgSWdpUYm0oN4St 7NVdPUw2LBpqS5FrUFXQXnKatLg2U6twUXlnYDlMSSlHIFq91HJ4o4JUCzRwktQWoqOtq+qma8LED c/Mgspl67SEfGIt/ga5REjz/XIPr2xLseGEPUVZA2SYPD2d5q0E7Hmi9OXU83SaeQMjTvNy7cJsfe z+mIS2gP8KroaFNdbjNQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1paHi6-00AjCL-8l; Thu, 09 Mar 2023 14:57:39 +0000 Received: from mail-he1eur04on0604.outbound.protection.outlook.com ([2a01:111:f400:fe0d::604] helo=EUR04-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1paHdq-00AhJP-Kq for linux-arm-kernel@lists.infradead.org; Thu, 09 Mar 2023 14:53:16 +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=8WShnfZhrvJZyO0qMQZh56y54wfk3CVLsZ6jywpXbkM=; b=VZRBkYySURgoJl96bEMB7kzPdmOTSZaGZiS/N9M2a+v5G3RQyoF9bPt0Yl/kU79Xrkl7F6xrp7C2dxkNzCou4PlXNatpKgbdUS7mnQAteZX/PMzBFOAS/QEl7g7agDeXcYBAmjE46L6dnkpCFp+euVubyZTZcT4+K+3aulyPCqw= Received: from ZR0P278CA0153.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:41::20) by GV2PR08MB9280.eurprd08.prod.outlook.com (2603:10a6:150:e1::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.28; Thu, 9 Mar 2023 14:53:10 +0000 Received: from VI1EUR03FT021.eop-EUR03.prod.protection.outlook.com (2603:10a6:910:41:cafe::2c) by ZR0P278CA0153.outlook.office365.com (2603:10a6:910:41::20) 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:09 +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 VI1EUR03FT021.mail.protection.outlook.com (100.127.144.91) 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:09 +0000 Received: ("Tessian outbound f2a8d6d66d12:v135"); Thu, 09 Mar 2023 14:53:09 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 1426a15e1fb68516 X-CR-MTA-TID: 64aa7808 Received: from 1c3926401153.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 36A01971-03BB-4F30-A0DF-B3F39841EA65.1; Thu, 09 Mar 2023 14:53:02 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 1c3926401153.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 09 Mar 2023 14:53:02 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nVt+Iig2/cv/sZOZia2gZ/B3spoCRH+ZsYsqeZ7S22Qb0HvPJ2DENvYzzToFTrFu7r2o7+npU4dw4t1tWz1ZGj7Bkqv91lbLVCs+FN3lR4l0KCK34oaOYJ4H7PPc5nAOv2hdVqs9HHnmXe8P3Hev85VJKA50F+tOBy4LQ39auWnLoYhLGjUAjHpCg7cK3LKrJJ8/jcHvSnzu9MfBHYe4cPIHQP4Jthz962DBL4qM2yh+GMhKQnN2AqFS1iqnDQuQccP/ShcPjRVJiWlPsYYyhA/CTNcU53TmnmPvWl2a0vnQyH9TsqMYDl4pc5tYSJkyJf2SYk5Jj/4qep5CZvXKxA== 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=8WShnfZhrvJZyO0qMQZh56y54wfk3CVLsZ6jywpXbkM=; b=X4dokSnorMhYtZYFTT4969qHT/aRIWxY1SogbBd5MSFQDQ4PeDiy4wysyzDf3QlTroQiarrvYa38J33Xl5ASDUC44zjtReooChs3Cau4P1cDRa/e13/T9F67I1Fki5zme+8xZvihIR1QaCqi4Yx8BgoV2blj3SFzl3/GhR8uVR4ot0PCrMMKC6/RdJwVmsYPncyUVelj7YiHOaOO7tTLMDfIV4ofzlJIKdBRCTRQ7WJhdHTSkDpBK6p2bxfjZuZVlFV3ShRJhhIs1GO9t4oPM9p+6NmoziLBTNB3j1bvYC5nQ+QxHA+JHmyPDSYET0gdXSqWsx1Dkve1I2b9MrrfWQ== 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=8WShnfZhrvJZyO0qMQZh56y54wfk3CVLsZ6jywpXbkM=; b=VZRBkYySURgoJl96bEMB7kzPdmOTSZaGZiS/N9M2a+v5G3RQyoF9bPt0Yl/kU79Xrkl7F6xrp7C2dxkNzCou4PlXNatpKgbdUS7mnQAteZX/PMzBFOAS/QEl7g7agDeXcYBAmjE46L6dnkpCFp+euVubyZTZcT4+K+3aulyPCqw= Received: from FR3P281CA0083.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:1f::21) by AS8PR08MB9646.eurprd08.prod.outlook.com (2603:10a6:20b:619::22) 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:01 +0000 Received: from VI1EUR03FT044.eop-EUR03.prod.protection.outlook.com (2603:10a6:d10:1f:cafe::48) by FR3P281CA0083.outlook.office365.com (2603:10a6:d10:1f::21) 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:00 +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:59 +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:53 +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:53 +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:53 +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 07/18] arm64: cpufeature: add TCR2 cpucap Date: Thu, 9 Mar 2023 14:52:35 +0000 Message-ID: <20230309145246.22787-8-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_|AS8PR08MB9646:EE_|VI1EUR03FT021:EE_|GV2PR08MB9280:EE_ X-MS-Office365-Filtering-Correlation-Id: c99de6cc-1941-4111-9a88-08db20adffd9 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: 16M3uRi7TlvmOcCX6fHFllohus5sUxw0YukoUmH4hBZ5fVNKGnc8LAD/tWifrwd1TZP7pXT6ah0bjc444XTMowAaHjOy/SankxeN4ikGPp9ojWxw0NG+5CDOdLEoZE/i1SLwwXvbEQaJWilF0qCgbvbXFIalLkB/v0Q81gYJ9td+dhgpU8ja+C6pE+YHRdKGee6K7zoPD8/WQo6X+Tpoxs7rGbZR1VUDmQ1Ni5FboKe8djpiJBV0H/gwlfhFTti0FWC6rAlB3QhfDk8cFvE2epk71YiqhdkoR4J9OJdbbecZivEuPisgRN1DfHYDfK2NGdC5aifjaYFw0lPR53pLheBmAfPwELM8MAytUq9OuiOcPDEjXAzlQBBGwvuk9+jP7K1XeSYhPptSGbYEJCaLYDxcPhdQQNljkKncTSx0zdz2M0vkf6UxIBRtu+58jp5uQ9DfzdPnGwR0A64PGurF+qGTM50qnFAKhRsE/Wa0LdGXDdtoyALziD336FUULreXfqVpbf9GewiSZHOGWrmj3fsszpFoJ0TXBZPAh0c+xp038T5cEq0G3cqJpRj6XITXGKd8Dw+87fWotck1LcJID3OJh7nK2ja/NXCboBWfWHXwZhWOVu0e/CA/e3HIcFOOlbOX0i9jEtjUJ3dPP/NG4ieQcU5B6A72IBqhvWgrS8o2yQ6h418Q0vO2BMolPk6XhJThujbRM8tRa8XFzb7N4A== 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)(136003)(376002)(346002)(39860400002)(396003)(451199018)(46966006)(36840700001)(36756003)(186003)(82740400003)(36860700001)(7696005)(1076003)(336012)(26005)(41300700001)(2616005)(47076005)(6666004)(426003)(40480700001)(70206006)(6916009)(4326008)(8676002)(70586007)(2906002)(8936002)(5660300002)(44832011)(356005)(81166007)(86362001)(316002)(478600001)(54906003)(82310400005)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB9646 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VI1EUR03FT021.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 3fa0cead-8deb-4f02-16dd-08db20adf9bf X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DZvHdKMGKfT93XDb1SZ0iGKAP2uebWI74xhnDwQEDFs/ol5Rbsv3YN39bupUOLEjYvEVhgSc/s54gQl9gUkYYH0dKNs4ben5WFkrQY/p6zDInKx22hiJdTwqz7kamTurdjnRsMW+oWOPCKuMNblf2wbGouUn0Jecht3p+lY0tFsPB5fd+HSxempj64tyql7sjmDgp9AV3DT4Wc8xF8CrHGqITJy9MJ40Bo28at51/uMSJate1Gq9/Ou3h6x1fYXJNIRmnQHGisJbGFIjEqNGqFaqU1fIfdnSaRH0bEC60nFQaVeyTbmNx8dBC9fZPVAMB7hbEqCys+4QEVeL+1V9ivXsvfRMohTCwbndcldDTYiJCHhFfr/+p/Mw6jWBCizhy8RkBWIpS9jNUj6jmCxoaURB5Z4MMklgkLm78Vamf+PM7kJxti81QXjQyGASARZwk/2kCGiHNWUDvDSg/KXdgEvqf1vrQIgp0RiRDZLILmS1ksqQPZelKXlWP0ArcXvTcuKpPdM9Kg1YME8oRyU8pR6OQ7nJgkE6He39tpxlfQfS+W4w+/ZjEb8AcQEfheOVDstu4iNQli/A4slpE6pSwHqGQqk3rDhNCa0HWe0EI6gl5Kxh4FUoa2X8J9K1eWcoa9v46DpCyqLanflOXtaagT4Yvc2eCiBs535PGSa0ByUofpsCTCfe1lJZYTlssrqF/lb6ztbsI5apZ3vKwsDXqQ== 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)(39860400002)(136003)(346002)(396003)(376002)(451199018)(40470700004)(46966006)(36840700001)(70206006)(4326008)(86362001)(41300700001)(36756003)(70586007)(8676002)(2906002)(8936002)(6916009)(40480700001)(81166007)(5660300002)(82740400003)(36860700001)(44832011)(7696005)(107886003)(316002)(54906003)(478600001)(6666004)(1076003)(47076005)(82310400005)(40460700003)(426003)(186003)(2616005)(336012)(26005);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Mar 2023 14:53:09.5845 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c99de6cc-1941-4111-9a88-08db20adffd9 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: VI1EUR03FT021.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV2PR08MB9280 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230309_065314_735437_E97EB4D7 X-CRM114-Status: GOOD ( 10.29 ) 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:35PM +0000, Joey Gouly wrote: > This capability indicates if the system supports the TCR2_ELx system register. > > Signed-off-by: Joey Gouly <joey.gouly@arm.com> > Cc: Catalin Marinas <catalin.marinas@arm.com> > Cc: Will Deacon <will@kernel.org> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c index 9590335b2ce0..6944d8bbb17c 100644 --- a/arch/arm64/kernel/cpufeature.c +++ b/arch/arm64/kernel/cpufeature.c @@ -2783,6 +2783,16 @@ static const struct arm64_cpu_capabilities arm64_features[] = { .matches = has_cpuid_feature, .cpu_enable = cpu_enable_dit, }, + { + .capability = ARM64_HAS_TCR2, + .type = ARM64_CPUCAP_SYSTEM_FEATURE, + .sys_reg = SYS_ID_AA64MMFR3_EL1, + .sign = FTR_UNSIGNED, + .field_pos = ID_AA64MMFR3_EL1_TCRX_SHIFT, + .field_width = 4, + .min_field_value = ID_AA64MMFR3_EL1_TCRX_IMP, + .matches = has_cpuid_feature, + }, {}, }; diff --git a/arch/arm64/tools/cpucaps b/arch/arm64/tools/cpucaps index 37b1340e9646..5859b9ee7444 100644 --- a/arch/arm64/tools/cpucaps +++ b/arch/arm64/tools/cpucaps @@ -41,6 +41,7 @@ HAS_RAS_EXTN HAS_RNG HAS_SB HAS_STAGE2_FWB +HAS_TCR2 HAS_TIDCP1 HAS_TLB_RANGE HAS_VIRT_HOST_EXTN
This capability indicates if the system supports the TCR2_ELx system register. Signed-off-by: Joey Gouly <joey.gouly@arm.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will@kernel.org> --- arch/arm64/kernel/cpufeature.c | 10 ++++++++++ arch/arm64/tools/cpucaps | 1 + 2 files changed, 11 insertions(+)