Message ID | 20230413110513.243326-7-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 49167C77B6E for <linux-arm-kernel@archiver.kernel.org>; Thu, 13 Apr 2023 11:06:55 +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=nyHc2uqU5+5kvKyUdgjUr9A+z3c02uHMVKSijroX2ZE=; b=uG2ASmpErBWsAl 4I1wuQnLEV57TArKrPJi2qocRp/1uT9gYdGBcZVGkIB+sqexyIKqUys6zsHlLY8ZiVgI3AvRh5Qzc oASbomExNi6RaSL1JrRNq5TgkamRJBlAWDDerhCZC+0b9vtU+VHt19u/A5P9y1geBkHkqt8ZE24TF Comgy85I9w3o+K3GJh7qXUYfQAaSGMwdOEDXaPNdUsfE3F1YUonHZGzEOeqdveIHl39GnCRXWjodV VPnaIitRfEtmRcOsS6FKmgk6vLNHQeKOWRif+Ofbfhy9dMPlvrQ7yCIsaf0LU+tMCPnYBJdD3NSUW 7eTYy5VP7mRh3ZMMpAdg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pmuly-005yTZ-18; Thu, 13 Apr 2023 11:05:50 +0000 Received: from mail-vi1eur05on2062d.outbound.protection.outlook.com ([2a01:111:f400:7d00::62d] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pmulk-005yJx-0m for linux-arm-kernel@lists.infradead.org; Thu, 13 Apr 2023 11:05:38 +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=fcqOk+s5ZRiIJ1uQ0LQ9DfzfSekgAsjUhR10wRL34SU=; b=yyPkccbdDyMEQPeECPnGtin7YUWlv4/OSCE5HIEoFdGkvG0EN0mJIrXh5OkxTvw2JhJLLPqIkej6EAGF7/uGGtl9eBxB1jDyGTyY2GZJAe6wYeP8kqtTY3U9MdX0kJDT0Q+63C3gYKhbm0KCgTSVptqEiIWZI8qIVUXVByMAQYA= Received: from AS8PR04CA0121.eurprd04.prod.outlook.com (2603:10a6:20b:127::6) by AS8PR08MB6728.eurprd08.prod.outlook.com (2603:10a6:20b:396::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.30; Thu, 13 Apr 2023 11:05:28 +0000 Received: from AM7EUR03FT046.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:127:cafe::1f) by AS8PR04CA0121.outlook.office365.com (2603:10a6:20b:127::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.32 via Frontend Transport; Thu, 13 Apr 2023 11:05:28 +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 AM7EUR03FT046.mail.protection.outlook.com (100.127.140.78) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.31 via Frontend Transport; Thu, 13 Apr 2023 11:05:28 +0000 Received: ("Tessian outbound 5154e9d36775:v136"); Thu, 13 Apr 2023 11:05:27 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 8417a70af3cba965 X-CR-MTA-TID: 64aa7808 Received: from 737378e1e6f1.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 8F16DF74-33D8-486B-AA13-49235D5418B3.1; Thu, 13 Apr 2023 11:05:21 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 737378e1e6f1.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 13 Apr 2023 11:05:21 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S/WLtO84AiHcnzesWKbjPT6sdo6K+XcGFohtVedolesNuKpY6XbKpcQ6bWnrWqACoTlwDVyuneAbW+PoDQqnDvqD2i26dWsrVsGhuuD+HC+lM3GsFrEvicIgou55MXyRB3GV6byEOC0096A4wGUywEdGARhR8EU1PQqb8MA5JsJwsF12p1KgZVL97CeyO1sahPJzy3FD4FEUmdn8XyTufT3pnKaf088G7rk4p8hMicWeWljoLmWdJ2ezpC6Adzl5sgTK+ITy7lOw3hHBpkagNfsxs1Pu954fUeTU67K3mKAKr+KSNdpHmEnsDfFRTupf/tiq3kDAGqmQyurY1aYXTQ== 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=fcqOk+s5ZRiIJ1uQ0LQ9DfzfSekgAsjUhR10wRL34SU=; b=expyig0dgqh60oDSgA+pn+WUxoAVsO8s/r+bJ7ANGl1F4BDe4hwF8w5O9cn82VRoyIGOxe70DrWuUptGFLSY92EZLJtklGYcLEniYbHf2UUprdraqBg3Jm/kazdRc/+3s28cx7M89zDJUmFjS+fpXe4gbr6MGq7oYQKwncmT3JWT7F+tEOWTqhhm40ZsOTCgy6lfjMvwK+40BZucrhg1fOVI3uyL5wfioVuI9C3458WAyy+j6Udh3zDHu5V98P9S7cVF7X8vUlN9+KQ41jk4thZwJ63F5Ho/NimFC0h7mykXgBFXXBU9/pKWEe1Ldj86PNQY2zkGXxcTUbBsM7YGpA== 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=fcqOk+s5ZRiIJ1uQ0LQ9DfzfSekgAsjUhR10wRL34SU=; b=yyPkccbdDyMEQPeECPnGtin7YUWlv4/OSCE5HIEoFdGkvG0EN0mJIrXh5OkxTvw2JhJLLPqIkej6EAGF7/uGGtl9eBxB1jDyGTyY2GZJAe6wYeP8kqtTY3U9MdX0kJDT0Q+63C3gYKhbm0KCgTSVptqEiIWZI8qIVUXVByMAQYA= Received: from AS9PR06CA0479.eurprd06.prod.outlook.com (2603:10a6:20b:49a::28) by AS2PR08MB8830.eurprd08.prod.outlook.com (2603:10a6:20b:5f3::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.38; Thu, 13 Apr 2023 11:05:18 +0000 Received: from AM7EUR03FT021.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:49a:cafe::d6) by AS9PR06CA0479.outlook.office365.com (2603:10a6:20b:49a::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.31 via Frontend Transport; Thu, 13 Apr 2023 11:05:18 +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 AM7EUR03FT021.mail.protection.outlook.com (100.127.140.243) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6298.31 via Frontend Transport; Thu, 13 Apr 2023 11:05:18 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Thu, 13 Apr 2023 11:05:17 +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, 13 Apr 2023 11:05:16 +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 v2 06/19] arm64: cpufeature: add TCR2 cpucap Date: Thu, 13 Apr 2023 12:05:00 +0100 Message-ID: <20230413110513.243326-7-joey.gouly@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230413110513.243326-1-joey.gouly@arm.com> References: <20230413110513.243326-1-joey.gouly@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM7EUR03FT021:EE_|AS2PR08MB8830:EE_|AM7EUR03FT046:EE_|AS8PR08MB6728:EE_ X-MS-Office365-Filtering-Correlation-Id: 96a772b1-7b09-471b-abb9-08db3c0efd5e 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: NrBn0uMbXch67Buim9Mbgjrv/aibjUTBJD8UBeslWrblksIONq2bzV1RoWNiEDRBeK0XljrYFI1JjUUTd+KQpsDliVRrhePW4bP/jNsSAwtXQpZAxEgENE65OBkiXicNfKg6rjIOrXN3iv7WRp4asNwosBU/FiK4VOMwaxQWw9maVM9BKl93qaMnzDFpEbs9WL0OaRX6S5/ioTeJRE/xGDm7WS3k0dNvB8wnkPqsGcDo23iJc847yw0153+55JiBVQFiKfXGZ5cdCbTivfxWrhNJRyXC32Uyhnqs/NK0ZxhZ9/5fqMCxPvPICCxftTCrPlVhvVltXZnXH4vNj2otUoPvPm22/kZ6v8Wf2Og3k0B78377IdET5TYRPfRfSXixBM02C895h1QmArTF/adDOo2Y+sZQ55WxGe5jGRPBYLpbSh1/3PakK1L6LxsuHfhAakQ4aXdPFYO5NWxHx4gIPcOJje38gGZ46BNhOW9X9P0YimGmSeJ/aoXtHHLR0eN7rGFOnqjCLfycjAhHXkOIbWan21tSGE/oH1/cuvhtxwPpqsF3JVmuf/Pyrg5J6WW5hSM+YTuwPex8iTwjKx5nlRqYCK9xaoul0npEm523C1mvFugOTuurFZuSCRTfzocYMft6x5CSVXp+napBPBToXYiA+L8Ym9xlPH0V0/T1hv0ir42FaLjCJ8/VlR7GqmZ4GfRZvtj0ws/fUiXmFMhCYexRp2ORcN75tq4jqzNIyLM= 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:(13230028)(4636009)(136003)(39860400002)(346002)(396003)(376002)(451199021)(36840700001)(40470700004)(46966006)(2616005)(8936002)(44832011)(86362001)(81166007)(36860700001)(40480700001)(36756003)(4326008)(6916009)(8676002)(356005)(82740400003)(70586007)(82310400005)(5660300002)(70206006)(41300700001)(426003)(336012)(40460700003)(54906003)(478600001)(7696005)(6666004)(316002)(47076005)(186003)(1076003)(2906002)(26005)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR08MB8830 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT046.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: ad331f42-9b16-48c4-1652-08db3c0ef7b4 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6gi86jYcH89ylUrgxxZsJ3lTX6J40BAe6XEsr7rO4LJP9vDeqTNOFMdELc4cE/t187WFGVoZeL45ccjKjrvV8fG1qetoE4iCySsTGJ3DJ/iPpkrW9uvUu4px3KDDRQPlJAz6Jm/uZk+nAxalUfTChTEM3Srobdw357pJoaEifRM3IMKua+GKA2NHN2Kk/S0XmiS5PZkRy/KGZG9KGMpxGEuBx6VgRXOCps2uWfI1J7HAMcRScNC8lClt7J/fOEX7pB4WOd+ez6dHeSAtwc660PygmKioWAJpCYAKycMe1XyZrcIcPoLrjd4G0VxguM5fkrFEybBEzzghpUc29NirZCBY4vuLGKlz6EwmTzj6bjRbccxOrdynkCgQhbquCt+Sw6QSRbA7aqeRwjqIbJZ9YXWHIyHkfQlrDXF7kRSyo+IoRC8JwOGOr/kWX+w5KVA88NPqAytSPny9wUD76p0Nx+BT3ZLc6kujin9LIbgrlCGQ2U41N1wL7FRbkKQ1CddkeyJx1ovwaNEN1Yvz+T2kmBzMWOPXtetYUSprj4LyV3UvUX31OOQOFi/Np0zYtFsoZTYOmMd/QnS//rXk7aStG1KTMr/x4h8atKe0F0zcBt2WgQSNJ4TqpsTfV/GiKZtjkVJ2eOKiMBH7eS8BdKt4xdn0O/C8EzaM+Aio4v+XUNcNIAmYexs+kqW16aK/Zj+AMXk2d3qDpwG5o/6bd33ZvA== 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:(13230028)(4636009)(136003)(396003)(346002)(376002)(39860400002)(451199021)(40470700004)(36840700001)(46966006)(6666004)(7696005)(40460700003)(6916009)(70206006)(70586007)(4326008)(36756003)(2906002)(44832011)(86362001)(81166007)(82740400003)(41300700001)(5660300002)(82310400005)(8676002)(8936002)(316002)(478600001)(40480700001)(54906003)(1076003)(26005)(336012)(426003)(36860700001)(2616005)(186003)(107886003)(47076005);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Apr 2023 11:05:28.0168 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 96a772b1-7b09-471b-abb9-08db3c0efd5e 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: AM7EUR03FT046.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6728 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230413_040536_287627_51A7DD09 X-CRM114-Status: GOOD ( 10.05 ) 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, Apr 13, 2023 at 12:05:00PM +0100, Joey Gouly wrote: > This capability indicates if the system supports the TCR2_ELx system register. Reviewed-by: Mark Brown <broonie@kernel.org>
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