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 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 4B0CCC433F5 for ; Mon, 7 Feb 2022 15:57:46 +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=aHF4GS+LRrsVjBY63/ZJvNaTdmH2JCMSXXThFoO93bc=; b=ce3DYjDSBNT5Jv xtN+1BGJ9JYWH83nQHcxB6usaUNTmLc8zXv6m09V2pGjDabnqnPIlDUq/e3iq4IuAAUVJoaLdWp7D GuLFbRWnaivV5aeshNlXsq/pkfY3k+3n5MqhQ/R9YJWoh7Qy/PMO3Qv9+X5BuRameUkJFCJb2db+J JL9xGL66LtZqTAPqgqxxdU2k8CX2a2AUySTYeMZNsqFsWCwkmXcTkPn73jgQbN+yg4vkT9b2s/WKi 9I+LniyGFdAx9TR/cMdkePpNbwLI2xIjDKLEdpY4zcoYoR0JgR+Kz+ItToCQB5WF7dv9K9Af3ulRP m/I9pCjh4xNBbE6jqWOw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nH6N0-00AtJw-Fd; Mon, 07 Feb 2022 15:56:02 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nH5td-00Agyk-UI for linux-arm-kernel@lists.infradead.org; Mon, 07 Feb 2022 15:25:43 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 78B6A6149F; Mon, 7 Feb 2022 15:25:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 767BAC36AE9; Mon, 7 Feb 2022 15:25:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644247540; bh=jFThs8TIOLg+EbxAyGgsmB8MI+17nKceITt5cYnyHpQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EA4G4UUIs7cBnvxnbreQBVRMR3payU5TsxXONpPJSj+YKa/qe9IgmWAGVtxMQU08i jZWbHYN711ZNnVTDFKMeExUR96oSXJQrEeySD4K92UUt6zj/u9AVrD3ZfHEy9KPkcW SXUluFElIMcgAZ4CR3N1riclVhSh5DT2G5LIIyAWp7RiJcC2EZ6FNL61jeKddQghX6 JdNFIsQh3hahprpwb3cmEcciaQPC9jTt3HFARoVZuzFxPX4pREspjg0/XkJDgybbcE SISDwcB7BOP0+fxwAkdw8JK6MPhFRA8eEUwpjcd/++7Vxe6LEUKIE7hSTYddJySKQn JVpemlR1cOEag== From: Mark Brown To: Catalin Marinas , Will Deacon , Marc Zyngier , Shuah Khan , Shuah Khan Cc: Alan Hayward , Luis Machado , Salil Akerkar , Basant Kumar Dwivedi , Szabolcs Nagy , James Morse , Alexandru Elisei , Suzuki K Poulose , linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, kvmarm@lists.cs.columbia.edu, Mark Brown Subject: [PATCH v11 38/40] kselftest/arm64: Add streaming SVE to SVE ptrace tests Date: Mon, 7 Feb 2022 15:21:07 +0000 Message-Id: <20220207152109.197566-39-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220207152109.197566-1-broonie@kernel.org> References: <20220207152109.197566-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1273; h=from:subject; bh=jFThs8TIOLg+EbxAyGgsmB8MI+17nKceITt5cYnyHpQ=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBiATjigRLh4yVraxBgm1y3ALioGMZBGQeZKxFRW6ba XV+hKAOJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYgE44gAKCRAk1otyXVSH0HuzB/ 9WjAynKDalpcIRLwuHtG92CavjIal+k3EbR+PndbzgukVbA0eL0TgwTXnZVBZOv8704RBJ+fAFDg65 ZUTZ/zm/xq3AB57V5gDyO4finnj0qMri8ssD8IsLZuzd0qoHIoAh5/tByW8qaD2G9jJby8NYxj8pdx UCp4q4JUoBMr+9O02fqMPdL84FVq7jTi2K7P0nCBcfg7NeXI+4QmHGUIjizEffkUQr/rMEdzf0P47t CtiAQrVRflp/3U7Fz24OzDojfqjyok/5RErX+cWaiJ/d2gL/d5nL0GrtdBAZCtOBYwtCjD7kHZ5NPG /i6tIS5aSLTCe3DC/iNM3rw/IB9KuO 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-20220207_072542_070463_BFF3BD9D X-CRM114-Status: GOOD ( 12.36 ) 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 4bd333768cc4..509b875cb7bb 100644 --- a/tools/testing/selftests/arm64/fp/sve-ptrace.c +++ b/tools/testing/selftests/arm64/fp/sve-ptrace.c @@ -26,6 +26,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; @@ -42,6 +46,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