From patchwork Wed Aug 19 11:48:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 247948 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:522:0:0:0:0 with SMTP id h2csp388890ils; Wed, 19 Aug 2020 04:51:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhPXgVYreI+0yarYb+PT0+Yctw8HjQP8PEYsIHNcbOkTKDVqKF2d/1STSE2NikW+Fg551g X-Received: by 2002:a17:907:7292:: with SMTP id dt18mr25893565ejc.512.1597837886974; Wed, 19 Aug 2020 04:51:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597837886; cv=none; d=google.com; s=arc-20160816; b=ZPFjWoOKCFjsO6j68Ru2Jr2gtJs1v/Dr5qWjKa4BEwUSaW7u7xAbQiwiTzvIm/u1Zs KJpX+VH8O8nn3kODBp1rNBuVgurdYFDhXY+zzl2JqXZgghm+/RAkxbjbaOTL2QRcpjA0 f4iaCbUPwOlS1AFFJSmprTnIrrZUVPZLaYjtcug1UkA4DcVE8b00ly8mk7oqyrC+IWkC DunF4uD2nqVPg8g76XlU7xfYuSMn6H6s5hhiiMhzTWEOSKhOhY1EbHtN0cLCWsAQRYvr 1agr3JbhXpOyw0MzuuBAntEydCj37bhw8HeUIjCE5dGaHsH17aTo2vxMmLY7XsoQ6dqe 1krg== 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=UxhaD64RA119CPlul8923sQrpmeBYgd4EtTNQBjVCQQ=; b=UUbSht48NfeJJBIqRCqS4W46RT6/vlh1BSlIKXsjEbhCrJ2PxNycEnqUNjYCDZSwQ6 QPxRXEd2SZ6S+2X6R5q/ZBbbKwehiPnK4dkx54kMbU7FHUc79DPlznqTH2A27ubCny4T zpCcOYmwYQmQPtjvqNKcMVpyw0TvzljSw04YnYSRaC2iv+gU9bysZS5SwpwZIMpMmZiE 1KuwtkD2UNZ34bLFLFGekqDmp0/ngSFy87hRALLIRC0y0BnLdqfqhpM/3+3c8mFn0IlK ZX8tMqtlP+4MEQcBF4kud2bA6Gu8vBFtW0CFez952LrdUkgKDmjsvW1jtX6srh0uNVC0 8Acg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bcTXGy6L; 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 qc15si14809083ejb.658.2020.08.19.04.51.26; Wed, 19 Aug 2020 04:51:26 -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=bcTXGy6L; 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 S1727926AbgHSLvZ (ORCPT + 6 others); Wed, 19 Aug 2020 07:51:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:53552 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727970AbgHSLuq (ORCPT ); Wed, 19 Aug 2020 07:50:46 -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 5DCDA205CB; Wed, 19 Aug 2020 11:50:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597837845; bh=4f5tVEWkke+JY2bFp1jVyAlyp6I8bhFSJk6GSfdkc+w=; h=From:To:Cc:Subject:Date:From; b=bcTXGy6L2gwsxBS7GuKvVY8AXSwHZj0xLZ2CImHhLAI/UwJRzIMNyn1cJMsvMMllH AbqtlhQGxc0G02A0abGJIpnWuvQEW/jfqUDzn5z1my0UgsktAujxw/l9F38aMOnvgh AwIvqPwXTjkt6PP+WMAC77CWJleOuZ0tWSwFKL/M= From: Mark Brown To: Will Deacon , Catalin Marinas , Shuah Khan , Dave Martin Cc: linux-kselftest@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v2 0/6] selftests: arm64: Add floating point selftests Date: Wed, 19 Aug 2020 12:48:31 +0100 Message-Id: <20200819114837.51466-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. v2: Rebased onto v5.9-rc1 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 -- 2.20.1 Acked-by: Shuah Khan Acked-by: Dave Martin