From patchwork Mon Sep 13 12:54:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 12489195 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 296B6C4332F for ; Mon, 13 Sep 2021 13:20:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 163E66113B for ; Mon, 13 Sep 2021 13:20:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240449AbhIMNVQ (ORCPT ); Mon, 13 Sep 2021 09:21:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:34836 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240357AbhIMNU2 (ORCPT ); Mon, 13 Sep 2021 09:20:28 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4020660FA0; Mon, 13 Sep 2021 13:18:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631539124; bh=mA+0CsuIfJkgDiC6lErrWJ/d7egZo8invcZOmdXVmcw=; h=From:To:Cc:Subject:Date:From; b=X1Itwk8uzhl9R5+P/dW4Ty3ZUvVN9iRMP04zXoWvWN8vn7xIeIF6Xfw89tIN6vNKY sM+7eh/L6vG2qLUV+ikepRGUVJBTYlaB9oDL+TGR/6WCd/zasJHoGo6YLRUnKZyhms cgk1dwI++stNjPFycgb1Eghoh/Jw7qQoz9btfOLHOhDbJfAKGC2W2fFCcaSHU/sKNc 3/jB/L/Tiwihj/4BoYYlp1ITnn/Scg0HdM7uvSNORimx7wUzaX9fqKg28zzbWutzOA +w0hYVjBdeJYliJWNFcttd+LPYzvXqQ6qLsyTP/uVgPl8T+RiXvshFpCBK2VQUw1cT ravae1dlJJFwA== From: Mark Brown To: Catalin Marinas , Will Deacon , Shuah Khan , Shuah Khan Cc: linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, Mark Brown Subject: [PATCH v1 0/8] selftests: arm64: SVE ptrace test rework Date: Mon, 13 Sep 2021 13:54:57 +0100 Message-Id: <20210913125505.52619-1-broonie@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1539; h=from:subject; bh=mA+0CsuIfJkgDiC6lErrWJ/d7egZo8invcZOmdXVmcw=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBhP0oiwiuP5irtY9k38zY4yBBsYwbYq2TmgQuPNY+O pjmsYKiJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYT9KIgAKCRAk1otyXVSH0O0iB/ 9V3eyvh7j1+KeRJpClTv14LVGGsLF9j7CERN9Cob41AL5+pfO60khtw6Q3epB7JU7kBZmOkaFJetDw SydpnAQPOclqmvfqWRp0DyGkUHAn1iEjHfMBeaG/jLbP/97crl6P2GsmPkMKlai9Twd90v0PljXOSJ rZIP32EfCZBorqv0GSp3JxrqoEz6NLoFQKC1uybVXo7IM1cGFwd1P16MEsBLLhFZFBiRxlhTitHJRN MGa4r9ukpXhXKmVnqR2n4EO2/IuplRqt5AzLIVafteHvg7I29Gsx1k9IApbwg7uwlZc4zXLcyHQboR WgouZIfFVHoVtSpvFbcGBB8ClzNxOg X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org This series overhauls the selftests we have for the SVE ptrace interface to make them much more comprehensive than they are currently, making the coverage of the data read and written more complete. The new coverage for setting data on all vector lengths showed the issue with using the wrong buffer size with ptrace reported and fixed by: https://lore.kernel.org/linux-arm-kernel/20210909165356.10675-1-broonie@kernel.org/ (arm64/sve: Use correct size when reinitialising SVE state). Mark Brown (8): selftests: arm64: Use a define for the number of SVE ptrace tests to be run selftests: arm64: Don't log child creation as a test in SVE ptrace test selftests: arm64: Remove extraneous register setting code selftests: arm64: Document what the SVE ptrace test is doing selftests: arm64: Clarify output when verifying SVE register set selftests: arm64: Verify interoperation of SVE and FPSIMD register sets selftests: arm64: More comprehensively test the SVE ptrace interface selftests: arm64: Move FPSIMD in SVE ptrace test into a function tools/testing/selftests/arm64/fp/Makefile | 2 +- tools/testing/selftests/arm64/fp/TODO | 9 +- .../selftests/arm64/fp/sve-ptrace-asm.S | 33 -- tools/testing/selftests/arm64/fp/sve-ptrace.c | 460 ++++++++++++------ 4 files changed, 321 insertions(+), 183 deletions(-) delete mode 100644 tools/testing/selftests/arm64/fp/sve-ptrace-asm.S base-commit: 6880fa6c56601bb8ed59df6c30fd390cc5f6dd8f