Linux Kernel Selftest development
 help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel.org>
To: Dave Martin <Dave.Martin@arm.com>
Cc: Will Deacon <will@kernel.org>,
	Catalin Marinas <catalin.marinas@arm.com>,
	Shuah Khan <shuah@kernel.org>,
	linux-arm-kernel@lists.infradead.org,
	linux-kselftest@vger.kernel.org
Subject: Re: [PATCH v2 6/6] selftests: arm64: Add build and documentation for FP tests
Date: Tue, 1 Sep 2020 16:47:02 +0100	[thread overview]
Message-ID: <20200901154702.GF6262@sirena.org.uk> (raw)
In-Reply-To: <20200901153840.GA6642@arm.com>

[-- Attachment #1: Type: text/plain, Size: 1451 bytes --]

On Tue, Sep 01, 2020 at 04:38:42PM +0100, Dave Martin wrote:

> I don't know whether this is worth following up with a TODO?

> Some things I was aware of:

Well volunteered :P

>  * The sve-test/fpsimd-test programs contain a lot of common
>    boilerplate and could probably be merged together.

>  * A fair amount of the asm in sve-test/fpsimd-test could be converted
>    to C, with -fgeneral-regs-only.  This would be helpful since the
>    code is highly unmaintainable in its current form (I know, I've
>    tried).  Calling library functions would still be a problem, but we
>    might be able to lift a printf implementation and some basic syscall
>    wrappers from elsewhere rather than reimplementing everything from
>    scratch.

Or just keep the existing asm for the syscall/print wrappers.

>  * The sve-stress/fpsimd-stress scripts could likewise be merged.
>    Also, doing the required process management from the shell seems a
>    doomed enterprise and it never really worked 100% right.  Eventually
>    it might be worth rewriting a common test driver for these in a real
>    language.

>  * While the tests confirm that basic aspects of the SVE support don't
>    explode, there is not a lot of checking that the kernel does the
>    _correct_ thing -- so there's scope for improvement here if somebody
>    gets around to it.

Yeah, more errors get trapped by the kernel's own internal checking than
by the tests themselves.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2020-09-01 15:47 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-19 11:48 [PATCH v2 0/6] selftests: arm64: Add floating point selftests Mark Brown
2020-08-19 11:48 ` [PATCH v2 1/6] selftests: arm64: Test case for enumeration of SVE vector lengths Mark Brown
2020-08-19 11:48 ` [PATCH v2 2/6] selftests: arm64: Add test for the SVE ptrace interface Mark Brown
2020-08-19 11:48 ` [PATCH v2 3/6] selftests: arm64: Add stress tests for FPSMID and SVE context switching Mark Brown
2020-08-19 11:48 ` [PATCH v2 4/6] selftests: arm64: Add utility to set SVE vector lengths Mark Brown
2020-08-19 11:48 ` [PATCH v2 5/6] selftests: arm64: Add wrapper scripts for stress tests Mark Brown
2020-08-19 11:48 ` [PATCH v2 6/6] selftests: arm64: Add build and documentation for FP tests Mark Brown
2020-09-01 15:38   ` Dave Martin
2020-09-01 15:47     ` Mark Brown [this message]
2020-09-01 16:06       ` Dave Martin
2020-08-31 21:45 ` [PATCH v2 0/6] selftests: arm64: Add floating point selftests Shuah Khan
2020-09-01 13:21   ` Will Deacon
2020-09-01 15:27     ` Dave Martin
2020-09-18 16:17 ` Will Deacon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200901154702.GF6262@sirena.org.uk \
    --to=broonie@kernel.org \
    --cc=Dave.Martin@arm.com \
    --cc=catalin.marinas@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=shuah@kernel.org \
    --cc=will@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox