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 X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no 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 9B3A8C433E2 for ; Tue, 1 Sep 2020 16:06:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7DB592078B for ; Tue, 1 Sep 2020 16:06:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731613AbgIAQGH (ORCPT ); Tue, 1 Sep 2020 12:06:07 -0400 Received: from foss.arm.com ([217.140.110.172]:44860 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729211AbgIAQGD (ORCPT ); Tue, 1 Sep 2020 12:06:03 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 18DE21045; Tue, 1 Sep 2020 09:06:03 -0700 (PDT) Received: from arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 32FA13F71F; Tue, 1 Sep 2020 09:06:02 -0700 (PDT) Date: Tue, 1 Sep 2020 17:06:00 +0100 From: Dave Martin To: Mark Brown Cc: Catalin Marinas , Shuah Khan , Will Deacon , linux-kselftest@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 6/6] selftests: arm64: Add build and documentation for FP tests Message-ID: <20200901160559.GC6642@arm.com> References: <20200819114837.51466-1-broonie@kernel.org> <20200819114837.51466-7-broonie@kernel.org> <20200901153840.GA6642@arm.com> <20200901154702.GF6262@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200901154702.GF6262@sirena.org.uk> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kselftest-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org On Tue, Sep 01, 2020 at 04:47:02PM +0100, Mark Brown wrote: > 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. OK, I can follow up with a patch so long as these points sounds reasonable to you. Either way, it's not urgent. Cheers ---Dave 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 X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no 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 ED655C43461 for ; Tue, 1 Sep 2020 16:07:22 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B52EA20BED for ; Tue, 1 Sep 2020 16:07:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="J7UqEzOv" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B52EA20BED Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=dseEwNCErLRzNJuMLebIVdkGRUhW+LTU2y4BPVrCNic=; b=J7UqEzOvj2m5WSTeUYbInNFTp 9AYlqz6gj/ZsontfiViDSsY7FDYAVHTnWBF3QXYy5CgOfuJ4PDBs7nJEYCbhtd0h7cuOcndRp+ac7 zWoRe2kZc1hoTqOmMj6p4HE/96yIoruh5hpubekpSSvEkLqE9g+sT21f0T4pycfXx2ZRJTwSUZcWE Jp2BrbEEladoDFshutu/sCoT5SeV9jwB98UyqkGdjVbMBlLdI/tp+UBEhUzduNCuw4ZMV1nUejqMh 1/1er6GCxZbjcSDspZasUuKBflCRCshG422z/3EkBQvvQgYJ5Y33Q4VgVpr92EiO8/BG9jwLPvqdJ T3Cl1Q4KA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kD8nO-0005ho-FE; Tue, 01 Sep 2020 16:06:06 +0000 Received: from foss.arm.com ([217.140.110.172]) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kD8nM-0005h2-D4 for linux-arm-kernel@lists.infradead.org; Tue, 01 Sep 2020 16:06:05 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 18DE21045; Tue, 1 Sep 2020 09:06:03 -0700 (PDT) Received: from arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 32FA13F71F; Tue, 1 Sep 2020 09:06:02 -0700 (PDT) Date: Tue, 1 Sep 2020 17:06:00 +0100 From: Dave Martin To: Mark Brown Subject: Re: [PATCH v2 6/6] selftests: arm64: Add build and documentation for FP tests Message-ID: <20200901160559.GC6642@arm.com> References: <20200819114837.51466-1-broonie@kernel.org> <20200819114837.51466-7-broonie@kernel.org> <20200901153840.GA6642@arm.com> <20200901154702.GF6262@sirena.org.uk> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200901154702.GF6262@sirena.org.uk> User-Agent: Mutt/1.5.23 (2014-03-12) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200901_120604_496513_4E2AD0B3 X-CRM114-Status: GOOD ( 24.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, Catalin Marinas , Shuah Khan , linux-kselftest@vger.kernel.org, Will Deacon 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 On Tue, Sep 01, 2020 at 04:47:02PM +0100, Mark Brown wrote: > 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. OK, I can follow up with a patch so long as these points sounds reasonable to you. Either way, it's not urgent. Cheers ---Dave _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel