From patchwork Thu Jul 30 18:09:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 247282 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp2656412ilg; Thu, 30 Jul 2020 11:37:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9DdgB/VNL/A/ytT8aqTmO/1aLdHfTcxHRDZe1aVoEJteIKcGBhbWJBB2oHde/PECsA+n5 X-Received: by 2002:aa7:d455:: with SMTP id q21mr342758edr.164.1596134224213; Thu, 30 Jul 2020 11:37:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596134224; cv=none; d=google.com; s=arc-20160816; b=gpPWXC+DArc2ym0g7b0QoeVBkBauU82EjUPw1U7hwQqBw4g0qZzTL+EA0vykJuRkZf ryYgZNZIlJvX04OjPlKKbWOZdUFI79XGEai7p04nyjZkUB2kovRp0JreBc6vMbgWfbq8 Z3WZhqc+6a43GwpTKAbu/9w7swdAeNVBCRfeaZliDKNYz4QkRPtEU7uMyECVVLGQjjzC 8zNEw5KNVGB4V6dVhnv+rG+gleYRadZc4VGYWGlqkd6ZjGG3ae2lAyIBzR4Dd0o1aS5O zX47ds6QVEmL4xVQ0xnG+pXcnlprxlMHUPsOo5f83IXs7AHODtUC3KEec5d4l5vrppgv grUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=owYan8G2BhZaHEU382RpcNY4FApIgLuD/mGtE8SkWI0=; b=rr+EfIpo4FPSi7tnV6aXESHeeYeydnTTkQBdLt2JQOHA34fpeNKfT5hfmEiWRqJvpJ f4bEL5BKZLUX2vIJPwPOeFsGk/DKSwK+Y0I1MIGqScmEKrFlaLhqFfJNV1iOZIO09x8y voxvuhttqGV4C/qVOCUGJocRw0G61z8LDLd+7CgFBU+AlrzpDd/zh1qgPwy9ekkuA8Oy O7nwPEvwhAyOctfzuan0H6F+WbeM50vpZtvJ6ZInDcxrzEJa/jUr0+PsZTf834bvkG05 5OIAOem/MO6GCts6PZyYwm6ZzrJW5o2wKhi4P83cYSG1xBH22CKp+tbqHOjvoBU36LSv WxGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0u7Nl1GQ; spf=pass (google.com: domain of linux-kselftest-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kselftest-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s18si3774690ejd.164.2020.07.30.11.37.04; Thu, 30 Jul 2020 11:37:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kselftest-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0u7Nl1GQ; spf=pass (google.com: domain of linux-kselftest-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kselftest-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726544AbgG3ShD (ORCPT + 6 others); Thu, 30 Jul 2020 14:37:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:57048 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730199AbgG3ShD (ORCPT ); Thu, 30 Jul 2020 14:37:03 -0400 Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1AF3C2072A; Thu, 30 Jul 2020 18:37:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596134223; bh=9aa7GFDTeNUgLhP0YwH+lSjSF66FaNUkytsGodVj9jU=; h=From:To:Cc:Subject:Date:From; b=0u7Nl1GQzQR30vx5T8+l8YRnn9jXVe+AwGxuTdyut94CN336S26tiJSjC7Lce0dj9 hmLdkJHQ0KgKZ4mwzT4zr664kbY6VJW5LAfZ5jqkGJKma90wvkHb7IBLB9c/jW9tgV lpDsHtMSmHKsexVC2Awg3z7QwPQUE2czNCvjKL3c= From: Mark Brown To: Catalin Marinas , Will Deacon , Shuah Khan , Dave Martin Cc: linux-kselftest@vger.kernel.org, Mark Brown Subject: [PATCH 0/6] selftests: arm64: Add floating point selftests Date: Thu, 30 Jul 2020 19:09:14 +0100 Message-Id: <20200730180920.23527-1-broonie@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-kselftest-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org This series imports a series of tests for FPSIMD and SVE originally written by Dave Martin to the tree. Since these extensions have some overlap in terms of register usage and must sometimes be tested together they're dropped into a single directory. I've adapted some of the tests to run within the kselftest framework but there are also some stress tests here that are intended to be run as soak tests so aren't suitable for running by default and are mostly just integrated with the build system. There doesn't seem to be a more suitable home for those stress tests and they are very useful for work on these areas of the code so it seems useful to have them somewhere in tree. Mark Brown (6): selftests: arm64: Test case for enumeration of SVE vector lengths selftests: arm64: Add test for the SVE ptrace interface selftests: arm64: Add stress tests for FPSMID and SVE context switching selftests: arm64: Add utility to set SVE vector lengths selftests: arm64: Add wrapper scripts for stress tests selftests: arm64: Add build and documentation for FP tests tools/testing/selftests/arm64/Makefile | 2 +- tools/testing/selftests/arm64/fp/.gitignore | 5 + tools/testing/selftests/arm64/fp/Makefile | 17 + tools/testing/selftests/arm64/fp/README | 100 +++ .../testing/selftests/arm64/fp/asm-offsets.h | 11 + tools/testing/selftests/arm64/fp/assembler.h | 57 ++ .../testing/selftests/arm64/fp/fpsimd-stress | 60 ++ .../testing/selftests/arm64/fp/fpsimd-test.S | 482 +++++++++++++ .../selftests/arm64/fp/sve-probe-vls.c | 58 ++ .../selftests/arm64/fp/sve-ptrace-asm.S | 33 + tools/testing/selftests/arm64/fp/sve-ptrace.c | 336 +++++++++ tools/testing/selftests/arm64/fp/sve-stress | 59 ++ tools/testing/selftests/arm64/fp/sve-test.S | 672 ++++++++++++++++++ tools/testing/selftests/arm64/fp/vlset.c | 155 ++++ 14 files changed, 2046 insertions(+), 1 deletion(-) create mode 100644 tools/testing/selftests/arm64/fp/.gitignore create mode 100644 tools/testing/selftests/arm64/fp/Makefile create mode 100644 tools/testing/selftests/arm64/fp/README create mode 100644 tools/testing/selftests/arm64/fp/asm-offsets.h create mode 100644 tools/testing/selftests/arm64/fp/assembler.h create mode 100755 tools/testing/selftests/arm64/fp/fpsimd-stress create mode 100644 tools/testing/selftests/arm64/fp/fpsimd-test.S create mode 100644 tools/testing/selftests/arm64/fp/sve-probe-vls.c create mode 100644 tools/testing/selftests/arm64/fp/sve-ptrace-asm.S create mode 100644 tools/testing/selftests/arm64/fp/sve-ptrace.c create mode 100755 tools/testing/selftests/arm64/fp/sve-stress create mode 100644 tools/testing/selftests/arm64/fp/sve-test.S create mode 100644 tools/testing/selftests/arm64/fp/vlset.c base-commit: 9ebcfadb0610322ac537dd7aa5d9cbc2b2894c68 -- 2.20.1