From patchwork Tue Dec 7 12:42:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 12695140 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 8035FC433EF for ; Tue, 7 Dec 2021 12:46:08 +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=KQjHSVNJk+5UTbn9IBATz/XaOfOz85NtQ7+ScuD4zM4=; b=vtXCsIZevkEvLb YSPPIAzN21qWXcF+yA1uGvxgfnsYTW+hBtjY8u3hyxy14+r3monuPpCdX90J4sQVttEoF7f3Md2um FXDNGXsV1i77XZtDnA92CwzkuBSYv7p4wFkdQgvACKTN04+v1L/TNECdIvbBGTlbSwKDpK2qKqyOa HA83M3GKBQLwPoOF6Cl90HlzuNkeGBfr2TZoXGLIL/eB4rO832kNx31VmJZI2p7D58sweKi0ppAZC K4WiB1hiMJfMgmRhXnlCUbYu2gTR2ahr5FJrmYx+iKDsDxLoS1FYmmMK1otbGsvj0uQx3t6QfhpMv PUwPPlwxqpRv9K36RTaA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1muZot-008UeL-G4; Tue, 07 Dec 2021 12:43:43 +0000 Received: from mail-eopbgr140049.outbound.protection.outlook.com ([40.107.14.49] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1muZoO-008UXQ-JJ for linux-arm-kernel@lists.infradead.org; Tue, 07 Dec 2021 12:43:14 +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=pfcz/wRaHn2k8tM0/H778pNFOIC5Wa6nOLQ3VFYVg3Y=; b=UA85KOESTSii6odrzhpE2i2A0Kpa+3IR7yIFSr81yb8WI8lYX1PYp0ftNk/8V0K/E8evruAmFJfCW95NeBPjaZWMx1chWn/dp+/ZGIxwjiDGMag4gAAsVkuMRG0x4U2z8UPJKKpGlRpVz9kwEAc5sPF7Ge6pQLZr1DSygOcX7Xc= Received: from AM6PR10CA0014.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:209:89::27) by AM6PR08MB3702.eurprd08.prod.outlook.com (2603:10a6:20b:8e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4778.11; Tue, 7 Dec 2021 12:43:06 +0000 Received: from AM5EUR03FT005.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:89:cafe::30) by AM6PR10CA0014.outlook.office365.com (2603:10a6:209:89::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.17 via Frontend Transport; Tue, 7 Dec 2021 12:43:06 +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; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT005.mail.protection.outlook.com (10.152.16.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.13 via Frontend Transport; Tue, 7 Dec 2021 12:43:06 +0000 Received: ("Tessian outbound dbb52aec1fa6:v110"); Tue, 07 Dec 2021 12:43:06 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: fe84ed471874df6c X-CR-MTA-TID: 64aa7808 Received: from f078e22935c9.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id F9B3835D-58AD-43EB-855A-9710EA2B75AD.1; Tue, 07 Dec 2021 12:42:59 +0000 Received: from EUR02-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id f078e22935c9.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 07 Dec 2021 12:42:59 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UIFSwauOexcbAUDy1/YFx7Be1l+D5V1rWn9lRKB7KUYBhV4NN2XV4klWiOsms36ZLLV8uwhYh2jlf7EXHuyNBnsoGNIU4hXCVcCxuNwOnKZ7/BGgPhVjc0w71fm25HKfiduWwiwzJdFZ1YA+o8Gz+vI7jGyDfSABu2KLmYoow7Wl0huuFSEH3s8i2n8hzy32ZuDhx675lEQHkWYKQOQ06FqC1z2xvc9q0E8q3ZI1ZfBV5ApYeXOr3W5GntHl2B7a0voyT0X9HF4NCOEP+91IKOQOM8trsFyGH5/tKa7GDqJ0Pr33e57IJJ70pAonN/aIC7Uem6BwgIpoSjSmV1YYQQ== 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=pfcz/wRaHn2k8tM0/H778pNFOIC5Wa6nOLQ3VFYVg3Y=; b=aULAvtkblLU6LPN0kVmgHNFDtUeYtDp0hdB7/stNbDZ9R+JUR+pkLCRM8lURLq3y5NianMQnCPOqZhAtqsETVZ+NoMVMHsc1pn3urrUAnUjCyAtQo1n+df27TLDmRUidBl3DYeW8xxs93G2/lof3Gn66uJMRv35CuS8As8AVa7ZjZ0SyWLGl4XwtXmmdpr7l7SDnxIRCa2q7Qybsw+HbDmo8jXH4BP8iwRAeLJGBteiD3XcWHORJqTRsZ/XXOxiUfRyyGa3gZZaazWJjN6NPeL8VOWZEAUCKAVcxiMpb2PtQGsaEosU85ukDpR1gyD5iKshAjHdAGL24Pf1wcQOg3A== 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=pfcz/wRaHn2k8tM0/H778pNFOIC5Wa6nOLQ3VFYVg3Y=; b=UA85KOESTSii6odrzhpE2i2A0Kpa+3IR7yIFSr81yb8WI8lYX1PYp0ftNk/8V0K/E8evruAmFJfCW95NeBPjaZWMx1chWn/dp+/ZGIxwjiDGMag4gAAsVkuMRG0x4U2z8UPJKKpGlRpVz9kwEAc5sPF7Ge6pQLZr1DSygOcX7Xc= Received: from DB6PR1001CA0036.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:4:55::22) by AS4PR08MB7480.eurprd08.prod.outlook.com (2603:10a6:20b:4e7::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.16; Tue, 7 Dec 2021 12:42:55 +0000 Received: from DB5EUR03FT019.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:55:cafe::69) by DB6PR1001CA0036.outlook.office365.com (2603:10a6:4:55::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.17 via Frontend Transport; Tue, 7 Dec 2021 12:42:55 +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; Received: from nebula.arm.com (40.67.248.234) by DB5EUR03FT019.mail.protection.outlook.com (10.152.20.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4755.13 via Frontend Transport; Tue, 7 Dec 2021 12:42:55 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) 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.2308.20; Tue, 7 Dec 2021 12:42:46 +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.2308.20 via Frontend Transport; Tue, 7 Dec 2021 12:42:45 +0000 From: Joey Gouly To: CC: , , , , , , , , , Subject: [PATCH v2 3/3] arm64: cpufeature: add HWCAP for FEAT_RPRES Date: Tue, 7 Dec 2021 12:42:26 +0000 Message-ID: <20211207124226.50095-4-joey.gouly@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211207124226.50095-1-joey.gouly@arm.com> References: <20211207124226.50095-1-joey.gouly@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: 5d40873e-24e2-456d-bbd0-08d9b97f1e1a X-MS-TrafficTypeDiagnostic: AS4PR08MB7480:|AM5EUR03FT005:EE_|AM6PR08MB3702:EE_ X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:6430;OLM:6430; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: nLteVL3Br6dZs/qWZP+nZGKuMV8cpdNl2kbddMgwkuyUyGeB/7xSctk63Sdd2yb1gVhIhDAoDBlxBDaEgkUtuAS5xlXE28Sr+noss61s7iteUpymZ+oB/b9e4701tmuQa99VJfvI8WJjacrIJGgIxdtvw5vpxkznYfG9xX2L2zDQbC0dA6RAl9cgpPW5InBO+3nvExHIArA+EwsYUAULoKsG73O83bLpdEBacVb3eTHn4I91T7z/YdGUM4HAfES4PRHhi78/uY9sM33CEdWuXojnhG+I9wJecqABgYQfJ9Ywm6KPxnJ32f7Fj9M9/4gbskicmLxjIoT/Dv7/uOEQy2eXIBngYfn5VnzxqTOwOXCfqgQdv7I8tBmNg0ed81+EAiPB12tlpPxxz2G1Nz043eSgal3Wgn4XU2yjCmaTY2o9CjkIn7UvTCNyca/F2n4XBHUzEYSIBcyUi/pn+8Jold1fRqDkKztzSD71ErOVO05oWTNZxe5erCBLRRDmiXFBiRF/w9b3NznlQQ6eAToBazpGdWq3ukMAb+x4rXsYrcXMjKIKGn4oAavfxcPycOk5Depwml1ICBc0Cw5rxCagnTZ9YV0P6EJEe/QCnUjcZCXheQ+LcZla8W5TX7yaY/j89EIMNo4+kKa59YMN/tNwyUstZb/7qHMAhod0IjpnVTIi68X7VC4jm5fiPYMAlkzqUGd0BJ3TbqL5pVYYzZxCZWkFVLyincBeLIahfAm7QspJZZtFgsaS7tLLulWg30Bohg7/Z4baIydeAXWuP6+fWKXxqf0OapIZlX5f3okTHfs= 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:(4636009)(36840700001)(46966006)(40470700001)(83380400001)(82310400004)(356005)(5660300002)(2906002)(6916009)(316002)(36756003)(44832011)(2616005)(36860700001)(1076003)(70586007)(47076005)(81166007)(54906003)(426003)(40460700001)(8936002)(4326008)(186003)(508600001)(8676002)(70206006)(26005)(336012)(6666004)(86362001)(7696005)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR08MB7480 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT005.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: c9ba4243-92e3-4706-f3d1-08d9b97f1755 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: N6YobrRZ9XsRZPY53XffCcbysr7rSqedHpAs3JVvjDrzoEn5OeSWihlCHKEUmKUmmRuO7jP6gIv1vxXP/ns59daMfTHW7vz1Bxtw3uHXnEXF0cBuZXK014k7LutRosp8ZCLPU1hSrz5rNokyidyBiqieNdtw67MK4u8nd0mfSqgshIQUp5ZOPg7L0P2q+4L0YR5z6stnVdfZxrw7nrHXFhShFFTeYPrgijrgRVUoXlYXqYvA+d0nvo5gKe8gcg9HxBSfVMXJKx81IdiHVRr6WFN/y3yft+56THmnqZVroNCnt8YRS+FHtRKj0qxe97l3wY4fd5E4gjhCyLN6wlhDZI1Ci/1vEOLzRLaqK5OH75r905J+4iZ1R+W+LC5UgpIi10YiJcbMjZ/ApMWk4N1YNgj9En5dMw7FCcX4Ifc8r/chFsW6T7AbHhdpgppcJqJGs5uPcOYIVxI4QB95oOs0IiPyMK3KNh9MuTNkroNCvPw27s+sgm3SlUozkRXgzZ4MFPlGHRR3ypbiixymmO7ZfQtG1k4VhRKIuPirPP3F6wjYJ6wjW5rpTRePduv7NC49JqbF1wluhF69xKR4t5F2nqUfKChR1bDkvz7Oczr7cTaFqEGALgVOQiniHUCrS9l1JSfVremgVRGhD2k9uVJRLnntj7cbL/F30nMubxKUSNOVxn8sMlXO2oxRdZ1/V6y6sodaByhAsmxADM9xA8Q4+A== 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:(4636009)(46966006)(36840700001)(70586007)(86362001)(81166007)(316002)(2616005)(4326008)(36860700001)(83380400001)(47076005)(2906002)(70206006)(36756003)(508600001)(54906003)(107886003)(8676002)(8936002)(82310400004)(1076003)(26005)(6916009)(44832011)(6666004)(426003)(7696005)(336012)(186003)(5660300002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2021 12:43:06.6064 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5d40873e-24e2-456d-bbd0-08d9b97f1e1a 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: AM5EUR03FT005.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB3702 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211207_044312_688587_F2F5FD15 X-CRM114-Status: GOOD ( 13.55 ) 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 Add a new HWCAP to detect the Increased precision of Reciprocal Estimate and Reciprocal Square Root Estimate feature (FEAT_RPRES), introduced in Armv8.7. Also expose this to userspace in the ID_AA64ISAR2_EL1 feature register. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon Cc: Jonathan Corbet --- Documentation/arm64/cpu-feature-registers.rst | 8 ++++++++ Documentation/arm64/elf_hwcaps.rst | 4 ++++ arch/arm64/include/asm/hwcap.h | 1 + arch/arm64/include/uapi/asm/hwcap.h | 1 + arch/arm64/kernel/cpufeature.c | 2 ++ arch/arm64/kernel/cpuinfo.c | 1 + 6 files changed, 17 insertions(+) diff --git a/Documentation/arm64/cpu-feature-registers.rst b/Documentation/arm64/cpu-feature-registers.rst index 1b19d20c2dbd..749ae970c319 100644 --- a/Documentation/arm64/cpu-feature-registers.rst +++ b/Documentation/arm64/cpu-feature-registers.rst @@ -283,6 +283,14 @@ infrastructure: | AFP | [47-44] | y | +------------------------------+---------+---------+ + 9) ID_AA64ISAR2_EL1 - Instruction set attribute register 2 + + +------------------------------+---------+---------+ + | Name | bits | visible | + +------------------------------+---------+---------+ + | RPRES | [7-4] | y | + +------------------------------+---------+---------+ + Appendix I: Example ------------------- diff --git a/Documentation/arm64/elf_hwcaps.rst b/Documentation/arm64/elf_hwcaps.rst index 247728d37911..b72ff17d600a 100644 --- a/Documentation/arm64/elf_hwcaps.rst +++ b/Documentation/arm64/elf_hwcaps.rst @@ -255,6 +255,10 @@ HWCAP2_AFP Functionality implied by ID_AA64MFR1_EL1.AFP == 0b0001. +HWCAP2_RPRES + + Functionality implied by ID_AA64ISAR2_EL1.RPRES == 0b0001. + 4. Unused AT_HWCAP bits ----------------------- diff --git a/arch/arm64/include/asm/hwcap.h b/arch/arm64/include/asm/hwcap.h index 2809df2fdd63..f68fbb207473 100644 --- a/arch/arm64/include/asm/hwcap.h +++ b/arch/arm64/include/asm/hwcap.h @@ -107,6 +107,7 @@ #define KERNEL_HWCAP_MTE __khwcap2_feature(MTE) #define KERNEL_HWCAP_ECV __khwcap2_feature(ECV) #define KERNEL_HWCAP_AFP __khwcap2_feature(AFP) +#define KERNEL_HWCAP_RPRES __khwcap2_feature(RPRES) /* * This yields a mask that user programs can use to figure out what diff --git a/arch/arm64/include/uapi/asm/hwcap.h b/arch/arm64/include/uapi/asm/hwcap.h index 180da7396549..f03731847d9d 100644 --- a/arch/arm64/include/uapi/asm/hwcap.h +++ b/arch/arm64/include/uapi/asm/hwcap.h @@ -77,5 +77,6 @@ #define HWCAP2_MTE (1 << 18) #define HWCAP2_ECV (1 << 19) #define HWCAP2_AFP (1 << 20) +#define HWCAP2_RPRES (1 << 21) #endif /* _UAPI__ASM_HWCAP_H */ diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c index c36018310da5..a46ab3b1c4d5 100644 --- a/arch/arm64/kernel/cpufeature.c +++ b/arch/arm64/kernel/cpufeature.c @@ -226,6 +226,7 @@ static const struct arm64_ftr_bits ftr_id_aa64isar1[] = { }; static const struct arm64_ftr_bits ftr_id_aa64isar2[] = { + ARM64_FTR_BITS(FTR_VISIBLE, FTR_NONSTRICT, FTR_LOWER_SAFE, ID_AA64ISAR2_RPRES_SHIFT, 4, 0), ARM64_FTR_END, }; @@ -2487,6 +2488,7 @@ static const struct arm64_cpu_capabilities arm64_elf_hwcaps[] = { #endif /* CONFIG_ARM64_MTE */ HWCAP_CAP(SYS_ID_AA64MMFR0_EL1, ID_AA64MMFR0_ECV_SHIFT, FTR_UNSIGNED, 1, CAP_HWCAP, KERNEL_HWCAP_ECV), HWCAP_CAP(SYS_ID_AA64MMFR1_EL1, ID_AA64MMFR1_AFP_SHIFT, FTR_UNSIGNED, 1, CAP_HWCAP, KERNEL_HWCAP_AFP), + HWCAP_CAP(SYS_ID_AA64ISAR2_EL1, ID_AA64ISAR2_RPRES_SHIFT, FTR_UNSIGNED, 1, CAP_HWCAP, KERNEL_HWCAP_RPRES), {}, }; diff --git a/arch/arm64/kernel/cpuinfo.c b/arch/arm64/kernel/cpuinfo.c index f2f8fe02f39c..591c18a889a5 100644 --- a/arch/arm64/kernel/cpuinfo.c +++ b/arch/arm64/kernel/cpuinfo.c @@ -96,6 +96,7 @@ static const char *const hwcap_str[] = { [KERNEL_HWCAP_MTE] = "mte", [KERNEL_HWCAP_ECV] = "ecv", [KERNEL_HWCAP_AFP] = "afp", + [KERNEL_HWCAP_RPRES] = "rpres", }; #ifdef CONFIG_COMPAT