From mboxrd@z Thu Jan 1 00:00:00 1970 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DDF37C4332F for ; Tue, 19 Oct 2021 17:25:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C6D0661360 for ; Tue, 19 Oct 2021 17:25:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234469AbhJSR1m (ORCPT ); Tue, 19 Oct 2021 13:27:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:55872 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232127AbhJSR1l (ORCPT ); Tue, 19 Oct 2021 13:27:41 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 44093610E5; Tue, 19 Oct 2021 17:25:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634664328; bh=ZN5JIZMYAQ+hgzYrUF3T4Xtxh1popb3QWVWnFUDvm0M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BdLYbNwjvcMxuvCBdyc6og508dRMsW3AWJjRXkzXsnxX4F1KalZvdk3fOi7w1bVjG c4XJLZNDpQEwdsQ6v0GMKZQEiwo3EB/PsbKa4CiBVt43Zy9NZJJcHz+GZnZ1/PtAm8 4PKJi5AqMLClIaYJkGx8JXbjVlUaU8LeyCaynt4GSqZtKMAy93BEsJ9iykz4F+4qmi pwcPeXBtZdPRCcP9pH/HaQpp0eEojWJn6Kv0uCgm8Z+krvNdjIl3YwWs2RXZi52+g1 lriGLLNW2iQ7u2MgBzQE+zKIcao0HhXuXy60v8QIv4yyujn06NiF63YAUt6xooCltl X8+frVo2MVaUQ== From: Mark Brown To: Catalin Marinas , Will Deacon , Shuah Khan , Shuah Khan Cc: Alan Hayward , Luis Machado , Salil Akerkar , Basant Kumar Dwivedi , Szabolcs Nagy , linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, Mark Brown Subject: [PATCH v3 41/42] kselftest/arm64: Add streaming SVE to SVE ptrace tests Date: Tue, 19 Oct 2021 18:22:46 +0100 Message-Id: <20211019172247.3045838-42-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211019172247.3045838-1-broonie@kernel.org> References: <20211019172247.3045838-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1273; h=from:subject; bh=ZN5JIZMYAQ+hgzYrUF3T4Xtxh1popb3QWVWnFUDvm0M=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBhbv7jMw1aSMaLYOpSHmlAJ01VdHXdXklZl9UT/zmb q+DxHDiJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYW7+4wAKCRAk1otyXVSH0AXlB/ 47iBjZq6BHVtOOhe6hLVMdth9nb67ZoxmMsGgIdQWXree5OCbmAf/nuVhkVGtrq0YPt+to0r++tw0H UeuFRTBz+P9BWL1WUNKSl0DnYiFK6GMboZczQo45Pzlw6JLis7LHk/acomzI18VtW4opp+7aWjIHHi McmYe40g9vV+Xi3HRNp8Nh6uMmD+ZABhQYsfs6JQzdCSxpvqSlnFZBXr09eGD9Kh5j04uJwQ9tw7ON VJ76cdLmmspeoWURenG5OOF4T5fdsa/p//+tktbiXdnaiyzLC8gPwWXo7zvIEcKmMEctEcHhZJLOk+ Ywd3gzP6huYtVgjkX7BtydJJWNdryJ X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org In order to allow ptrace of streaming mode SVE registers we have added a new regset for streaming mode which in isolation offers the same ABI as regular SVE with a different vector type. Add this to the array of regsets we handle, together with additional tests for the interoperation of the two regsets. Signed-off-by: Mark Brown --- tools/testing/selftests/arm64/fp/sve-ptrace.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tools/testing/selftests/arm64/fp/sve-ptrace.c b/tools/testing/selftests/arm64/fp/sve-ptrace.c index af798b9d232c..00c35b9db27f 100644 --- a/tools/testing/selftests/arm64/fp/sve-ptrace.c +++ b/tools/testing/selftests/arm64/fp/sve-ptrace.c @@ -28,6 +28,10 @@ #define NT_ARM_SVE 0x405 #endif +#ifndef NT_ARM_SSVE +#define NT_ARM_SSVE 0x40b +#endif + struct vec_type { const char *name; unsigned long hwcap_type; @@ -44,6 +48,13 @@ static const struct vec_type vec_types[] = { .regset = NT_ARM_SVE, .prctl_set = PR_SVE_SET_VL, }, + { + .name = "Streaming SVE", + .hwcap_type = AT_HWCAP2, + .hwcap = HWCAP2_SME, + .regset = NT_ARM_SSVE, + .prctl_set = PR_SME_SET_VL, + }, }; #define VL_TESTS (((SVE_VQ_MAX - SVE_VQ_MIN) + 1) * 3) -- 2.30.2 From mboxrd@z Thu Jan 1 00:00:00 1970 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D6DB7C433F5 for ; Tue, 19 Oct 2021 17:56:54 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 9C8CE6103D for ; Tue, 19 Oct 2021 17:56:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9C8CE6103D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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=tVBFne0y5yHMIayCpkspXa7RqtXKOC1hdtQTvi1480g=; b=CIosAkq0XdWmqz pmlC88o0YIZUq2ow2uUzL0etuwehLef1ZN9B7RlUw8Vsb8ydbIh9rSTWALxEMMk08loE+rjB6Ni1S XouhH6TyxpxnDeNJhpYL2wotE92oG3XcUY66wZXJgEgepq4jTyPlufPGva/IzEz0MWlS4+WCuwJBL 4n3uLhoV0xG5W2y1YPY36Y3jRzMJ2UHqsZiavcqvGOxKi55CdpX8aV0QA/IhnLsxCvkCFDKsbX4X2 vcJ4oeIuMzo9ZKDGE9/PfP/7MMHZ33gMljCoJ705yOd2kLG8H+opk3F3KrRoIs4nVs/Gkpo2jYzrs tvrXUgkb0+UGc8gAtbBA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mctKZ-002Hjx-5b; Tue, 19 Oct 2021 17:55:19 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mcsrh-0025iY-8F for linux-arm-kernel@lists.infradead.org; Tue, 19 Oct 2021 17:25:32 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 44093610E5; Tue, 19 Oct 2021 17:25:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634664328; bh=ZN5JIZMYAQ+hgzYrUF3T4Xtxh1popb3QWVWnFUDvm0M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BdLYbNwjvcMxuvCBdyc6og508dRMsW3AWJjRXkzXsnxX4F1KalZvdk3fOi7w1bVjG c4XJLZNDpQEwdsQ6v0GMKZQEiwo3EB/PsbKa4CiBVt43Zy9NZJJcHz+GZnZ1/PtAm8 4PKJi5AqMLClIaYJkGx8JXbjVlUaU8LeyCaynt4GSqZtKMAy93BEsJ9iykz4F+4qmi pwcPeXBtZdPRCcP9pH/HaQpp0eEojWJn6Kv0uCgm8Z+krvNdjIl3YwWs2RXZi52+g1 lriGLLNW2iQ7u2MgBzQE+zKIcao0HhXuXy60v8QIv4yyujn06NiF63YAUt6xooCltl X8+frVo2MVaUQ== From: Mark Brown To: Catalin Marinas , Will Deacon , Shuah Khan , Shuah Khan Cc: Alan Hayward , Luis Machado , Salil Akerkar , Basant Kumar Dwivedi , Szabolcs Nagy , linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, Mark Brown Subject: [PATCH v3 41/42] kselftest/arm64: Add streaming SVE to SVE ptrace tests Date: Tue, 19 Oct 2021 18:22:46 +0100 Message-Id: <20211019172247.3045838-42-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211019172247.3045838-1-broonie@kernel.org> References: <20211019172247.3045838-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1273; h=from:subject; bh=ZN5JIZMYAQ+hgzYrUF3T4Xtxh1popb3QWVWnFUDvm0M=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBhbv7jMw1aSMaLYOpSHmlAJ01VdHXdXklZl9UT/zmb q+DxHDiJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYW7+4wAKCRAk1otyXVSH0AXlB/ 47iBjZq6BHVtOOhe6hLVMdth9nb67ZoxmMsGgIdQWXree5OCbmAf/nuVhkVGtrq0YPt+to0r++tw0H UeuFRTBz+P9BWL1WUNKSl0DnYiFK6GMboZczQo45Pzlw6JLis7LHk/acomzI18VtW4opp+7aWjIHHi McmYe40g9vV+Xi3HRNp8Nh6uMmD+ZABhQYsfs6JQzdCSxpvqSlnFZBXr09eGD9Kh5j04uJwQ9tw7ON VJ76cdLmmspeoWURenG5OOF4T5fdsa/p//+tktbiXdnaiyzLC8gPwWXo7zvIEcKmMEctEcHhZJLOk+ Ywd3gzP6huYtVgjkX7BtydJJWNdryJ X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211019_102529_403393_E8C081C8 X-CRM114-Status: GOOD ( 11.21 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org In order to allow ptrace of streaming mode SVE registers we have added a new regset for streaming mode which in isolation offers the same ABI as regular SVE with a different vector type. Add this to the array of regsets we handle, together with additional tests for the interoperation of the two regsets. Signed-off-by: Mark Brown --- tools/testing/selftests/arm64/fp/sve-ptrace.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tools/testing/selftests/arm64/fp/sve-ptrace.c b/tools/testing/selftests/arm64/fp/sve-ptrace.c index af798b9d232c..00c35b9db27f 100644 --- a/tools/testing/selftests/arm64/fp/sve-ptrace.c +++ b/tools/testing/selftests/arm64/fp/sve-ptrace.c @@ -28,6 +28,10 @@ #define NT_ARM_SVE 0x405 #endif +#ifndef NT_ARM_SSVE +#define NT_ARM_SSVE 0x40b +#endif + struct vec_type { const char *name; unsigned long hwcap_type; @@ -44,6 +48,13 @@ static const struct vec_type vec_types[] = { .regset = NT_ARM_SVE, .prctl_set = PR_SVE_SET_VL, }, + { + .name = "Streaming SVE", + .hwcap_type = AT_HWCAP2, + .hwcap = HWCAP2_SME, + .regset = NT_ARM_SSVE, + .prctl_set = PR_SME_SET_VL, + }, }; #define VL_TESTS (((SVE_VQ_MAX - SVE_VQ_MIN) + 1) * 3) -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel