Message ID | 20230919162757.2707023-3-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 26770CE79A9 for <linux-arm-kernel@archiver.kernel.org>; Tue, 19 Sep 2023 16:29:16 +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=TaTljHoj7NSOFQhuLeucTvHNqtDna1mjB0Cfmwyak8E=; b=haCMJKfrKuIygQ t1CrunV/rOHwPyQ0/yfwej+mlTxXNW0v+IjjD6Km71CBH4Ggz1+Gyv8Sdt2EeQ2cNbbZlywDspVbh 2BerODCOSDVpQ2B7cpK9yJ0G0fTvqisMktNI/LU8YiMKSCZqZgTJqQwROWydCN+ZvtqJi/CjmJ1Hm ovYRDCGS+IhfI7ee32VoVjxnOR1klfOXkhhiU6dS3yTBkE6KeF1IwVEHfxnEoDIedEOL+b+enDEhR 4nDQKRD55SRN4Lgm9vuTZSSkoARNwuTIc7X/VWKiep+1jsL2XokBWJ1MHOTFI976sTGe1hhFtBu1Q GYKVF2QD238IG6N6W80w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qidak-000rKA-2G; Tue, 19 Sep 2023 16:28:50 +0000 Received: from mail-am6eur05on20629.outbound.protection.outlook.com ([2a01:111:f400:7e1b::629] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qidah-000rJT-2j for linux-arm-kernel@lists.infradead.org; Tue, 19 Sep 2023 16:28:49 +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=WjTRUacTqT148JiVl/Ut1Klt/7ow2/J9pLEOF7W5crE=; b=xvrNJgtctlTj7eUuraFAk2eSzvl4ANGqUvQMtq07rGZgZmf9hv0IBMuSeIb3FkhEDLB3vS4a5cehmMLxwNb57M5JLSWfMRsKBzgl7Z+QmBoEPttQF9uE77e4T/m72VEmH+LoKoiNz761zG7ru9U1oHvjDUJm2/8Oqzd6/266nkc= Received: from AS8PR04CA0127.eurprd04.prod.outlook.com (2603:10a6:20b:127::12) by AS8PR08MB9094.eurprd08.prod.outlook.com (2603:10a6:20b:5b0::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.27; Tue, 19 Sep 2023 16:28:42 +0000 Received: from AM7EUR03FT038.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:127:cafe::a7) by AS8PR04CA0127.outlook.office365.com (2603:10a6:20b:127::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.27 via Frontend Transport; Tue, 19 Sep 2023 16:28:42 +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 AM7EUR03FT038.mail.protection.outlook.com (100.127.140.120) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.16 via Frontend Transport; Tue, 19 Sep 2023 16:28:41 +0000 Received: ("Tessian outbound 169aaa6bf2b7:v175"); Tue, 19 Sep 2023 16:28:41 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 9bfa1cdeb9808faa X-CR-MTA-TID: 64aa7808 Received: from 66e00465e572.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 28D1D86E-5C8C-4B84-A1D4-5C5D62DF62F1.1; Tue, 19 Sep 2023 16:28:12 +0000 Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 66e00465e572.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 19 Sep 2023 16:28:12 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YBXBFAasIcy7rXyM2k71rodvs6hiJ32Nrc2VkMVCYG3DF8Ky1S9K5Em89fDg608cxwRWoX83pG7rVtmPgjrujdXBhxwAIVmv6cMNKmlTCdXyVukrOkIfdZaPq8fOOcYxN48wMelTLhPKYj1gWUm24jGGSuEomRRQYFIU8bxdWfQm0RUwCDQ3SMqDDkDT1Lr26CnaQvxjBY0qZ1KchsnnI1PbZ8jz12HTWGQn1MXWuBEQJyyanfIIyhXfND0F4V2Waj4JcHlvY56+7lRwnb5qrqtDbeZUT84BuQL57UX44uZ3tyy47lD4ezUwTItd6uOzLqJVozkWUiweIqodx8tLwQ== 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=WjTRUacTqT148JiVl/Ut1Klt/7ow2/J9pLEOF7W5crE=; b=SpCBSOQjoWsW3VQoUljulUitaqx0qkdnN5DvK+XPMLw79ruG2vn87phms5ovgvogjAnrPxifNB7q1yZu26gC0xG10QyGzVJgsWG35kQrxVBRMV+1xhcufobXACmsqczxCncWEvX1qjjD+MURZstyhJ2zeziXYFkeRgv3AdQHNzH1Q+6Aa/3WxzDOxc/Jl73ieKRm10OtUBZbdr2j0EQZFe81sL/4qLndYEAAjEcjQhXyKAd6luHwLbdsooGwXDK/GOMbW8XTxBoL2PAG54I4/8pySumpnkjQGAF3jARjzGzMFZskQ4WB27JpQy41bI+k/wsT3rCWAsRSIj/huGN0Aw== 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=WjTRUacTqT148JiVl/Ut1Klt/7ow2/J9pLEOF7W5crE=; b=xvrNJgtctlTj7eUuraFAk2eSzvl4ANGqUvQMtq07rGZgZmf9hv0IBMuSeIb3FkhEDLB3vS4a5cehmMLxwNb57M5JLSWfMRsKBzgl7Z+QmBoEPttQF9uE77e4T/m72VEmH+LoKoiNz761zG7ru9U1oHvjDUJm2/8Oqzd6/266nkc= Received: from AM5PR04CA0030.eurprd04.prod.outlook.com (2603:10a6:206:1::43) by DU0PR08MB9936.eurprd08.prod.outlook.com (2603:10a6:10:400::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.27; Tue, 19 Sep 2023 16:28:10 +0000 Received: from AM7EUR03FT025.eop-EUR03.prod.protection.outlook.com (2603:10a6:206:1:cafe::72) by AM5PR04CA0030.outlook.office365.com (2603:10a6:206:1::43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.27 via Frontend Transport; Tue, 19 Sep 2023 16:28:09 +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 AM7EUR03FT025.mail.protection.outlook.com (100.127.140.199) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6813.18 via Frontend Transport; Tue, 19 Sep 2023 16:28:09 +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.27; Tue, 19 Sep 2023 16:28:08 +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.27; Tue, 19 Sep 2023 16:28:07 +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.27 via Frontend Transport; Tue, 19 Sep 2023 16:28:07 +0000 From: Joey Gouly <joey.gouly@arm.com> To: <linux-arm-kernel@lists.infradead.org> CC: <nd@arm.com>, <catalin.marinas@arm.com>, <joey.gouly@arm.com>, <will@kernel.org> Subject: [PATCH v1 2/2] selftests/arm64: add HWCAP2_LRCPC3 test Date: Tue, 19 Sep 2023 17:27:57 +0100 Message-ID: <20230919162757.2707023-3-joey.gouly@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230919162757.2707023-1-joey.gouly@arm.com> References: <20230919162757.2707023-1-joey.gouly@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM7EUR03FT025:EE_|DU0PR08MB9936:EE_|AM7EUR03FT038:EE_|AS8PR08MB9094:EE_ X-MS-Office365-Filtering-Correlation-Id: d3c3a515-78bc-4a06-4625-08dbb92d7cb8 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: ayR/lHfRcW3psYXhtDX0W1SE3lWWfT3rCRp5LD9bpBTGSP9HAiELqd2yX5LdME+yDuLTMYwN1ayYXdbCMyv07u24JoaHaZi997B7HIdMO00NHSQ0PG8xnqZYYxt6fupUyZucCl2FZuQvhZwFh+XdQcStX/F8/qwWjiFuH6HwSZ17Mu2lKpIfsosQtsDkqkisxlyCJ1HVViRWBvGPIIlY52bXBJqOYQDOMMedKGLF7fhk9mA7vAeuikNb5GG7MzoGtBm9diDmSZi6gTJIlKZMsRWHbJxIBs0nGAmUOpyimIVkIuYsl2amgfClmB5vCTNlgDXyFjrYRpchQCDX2etj8i40gHSR3vYs3r9SPonQJ8BVn9Jo2jYG8fuWC2AdIB4qO8XerC8yZZdmPBbyGgj9GXEZtOGN2sqoJ+SpWw0FOSbOJ4l8h472gHgBF3yUkzGe3CRicv4PC7AzA2cypX7kFmNYylbqQM0ZGfKb2uWL9jM9DT98lzsoERODrheAW1oSpixYj6YTVY9XHqJ2AJ5oNcRFumoGnFDaOaYJGPkbO8kX+1z0oKbbOmZyPZboS9lg62lWtdY2FoW8m9r4vjWJygaWN+UzQkKmkWK6FzBZfl8JZ1q6hDTqeWbtGI5Lw9yXkcsy8DS7NqKVw8sqkFYuJvISh1HAK+napdta7yBn9a9mr5tCtRIsG0tNwSWh+fsPhY9FgbMZfta1nhEXOSYsj1LjPMxhM11W1cfEKT7koK7z4dTeOSasPAhVGS8NRT5oEcuue52HTz1fQMNUX60bmg== 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:(13230031)(4636009)(39860400002)(396003)(376002)(136003)(346002)(82310400011)(1800799009)(186009)(451199024)(40470700004)(46966006)(36840700001)(26005)(1076003)(2616005)(40460700003)(7696005)(36860700001)(47076005)(82740400003)(356005)(81166007)(36756003)(86362001)(426003)(336012)(40480700001)(4326008)(8676002)(478600001)(8936002)(316002)(5660300002)(54906003)(70206006)(6916009)(70586007)(44832011)(6666004)(41300700001)(2906002)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB9936 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT038.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 321a9577-0528-4455-b5b3-08dbb92d6990 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FRzFo8rHpEMnZNYzuvyXthpKJWK0o90MPTICZ6EeQLyKH4Y20N6RtTsZGV4fqcfieZm73QrE2xlcW8HW0VhSNumXuKH8WmN+MeZ1ShmtNDSGSb11X88O3XMb0aS2prsPOK0UawePAQt0pyi7XCkDQKxV59mGHHvV1fYl5RCWlf0UdwRINCP0ThL16FttqF3oZoXspcK3fJWFU0HUUcvAxzxttwDTFQHkLZCKEHnWUYA7UwGSgjhl4/dV2neNQJpjl5L6BToTIts7NCVy9SsyvhH9G624XTadG+JKl2F3rSLNBuPZdk4BZlZ0nZE5k41BMXoUA9+7U4YmkQkt8D1zBQClEfMkuIHBAYBB8d231Rk6RURE0hU34PUL36L3HAwOJ/1aw5WEb2fFaRypNZ+fEpiTClJiI9VBl3ix2C8O+n9Ix8AUR4AUco5EkRExuuUhYKK7pO2prV1IH4eavz4VGC0Z60Hlv+ncrX+O0kNPodh002TQoJD7cJEsS7Oxud3ggSz/IiZYnloeI2JKrdHzy1VrxaZ30yBYtJ2qa+D7V9mCxpzvgQsdMYOAYzWN5SobQWDqAZ1pLsqnRuCgbQR0o/sOqibU1t0O9892sW10s3rPwYvWnBhZhMPOTvRZWoTFJz4p3OBruTUX9QSrnUmHfo/a8RApU0dBc5+NTh9FP4Geznd1lSYFuryerm5mSmSS1F0JnmPNdyQehot4HXEnnmkVYtKFtgCCyIY9o9VGc8IJRlPjCtgTZYxcOMF9f94c 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:(13230031)(4636009)(39860400002)(376002)(136003)(346002)(396003)(82310400011)(1800799009)(451199024)(186009)(36840700001)(40470700004)(46966006)(40460700003)(1076003)(2616005)(26005)(107886003)(7696005)(36860700001)(47076005)(86362001)(82740400003)(81166007)(36756003)(426003)(336012)(40480700001)(41300700001)(478600001)(5660300002)(44832011)(6916009)(316002)(54906003)(70586007)(70206006)(8936002)(4326008)(8676002)(6666004)(2906002);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Sep 2023 16:28:41.9550 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d3c3a515-78bc-4a06-4625-08dbb92d7cb8 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: AM7EUR03FT038.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB9094 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230919_092847_966004_AB914345 X-CRM114-Status: GOOD ( 12.66 ) 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 |
HWCAP for FEAT_LRCPC3
|
expand
|
diff --git a/tools/testing/selftests/arm64/abi/hwcap.c b/tools/testing/selftests/arm64/abi/hwcap.c index e3d262831d91..19d548b74111 100644 --- a/tools/testing/selftests/arm64/abi/hwcap.c +++ b/tools/testing/selftests/arm64/abi/hwcap.c @@ -289,6 +289,19 @@ static void uscat_sigbus(void) asm volatile(".inst 0xb820003f" : : : ); } +static void lrcpc3_sigill(void) +{ + int data[2] = { 1, 2 }; + + register int *src asm ("x0") = data; + register int data0 asm ("w2") = 0; + register int data1 asm ("w3") = 0; + + /* LDIAPP w2, w3, [x0] */ + asm volatile(".inst 0x99431802" + : "=r" (data0), "=r" (data1) : "r" (src) :); +} + static const struct hwcap_data { const char *name; unsigned long at_hwcap; @@ -348,6 +361,13 @@ static const struct hwcap_data { .cpuinfo = "ilrcpc", .sigill_fn = ilrcpc_sigill, }, + { + .name = "LRCPC3", + .at_hwcap = AT_HWCAP2, + .hwcap_bit = HWCAP2_LRCPC3, + .cpuinfo = "lrcpc3", + .sigill_fn = lrcpc3_sigill, + }, { .name = "LSE", .at_hwcap = AT_HWCAP,
Add a test for the newly added HWCAP2_LRCPC3. Signed-off-by: Joey Gouly <joey.gouly@arm.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will@kernel.org> --- tools/testing/selftests/arm64/abi/hwcap.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)