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=-8.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 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 DEF39C4338F for ; Mon, 2 Aug 2021 16:23:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C1BFB60F9E for ; Mon, 2 Aug 2021 16:23:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232733AbhHBQX7 (ORCPT ); Mon, 2 Aug 2021 12:23:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:39864 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232725AbhHBQX7 (ORCPT ); Mon, 2 Aug 2021 12:23:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 22C4860F55; Mon, 2 Aug 2021 16:23:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627921429; bh=fd0w1leBpZOJYXNsXSHQymGiFrTvsUyV8+apyFqO3Vo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rlNmuaEcNUJU3Ex1p3JPV0swOJZCg6GKrLclfL78dIfHlNe0wtSwTnXVNXtPOTKJp Rhhr6VHurUld6WiDQ3IAtUdl9Ov97WED4czGMLcxcg6vGjplgKbewHhLN406Vxfm3C ZR9dwTQ5Tqweq5dGClvwuHABhI+l//ZN+M/e2zpcMalQx3U9ymcjboGaATRdr1LIIh vUXU1IuMIyoHrkEwa+m7KySILmMRGEP+KRJSfg6siSlS+pwn1Ir7bd3H09SqzUYf/l 4iciUBTCLfCkCE1UVNF7IhX+/Q8OKcbJ6m81gurvElZGYRXPC7w/Ty32B1IIQQR+pS IhYJ+nCuwNQuQ== Date: Mon, 2 Aug 2021 17:23:31 +0100 From: Mark Brown To: Dave Martin Cc: Catalin Marinas , Will Deacon , Shuah Khan , linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v3 3/4] kselftest/arm64: Add tests for SVE vector configuration Message-ID: <20210802162331.GJ4668@sirena.org.uk> References: <20210729151518.46388-1-broonie@kernel.org> <20210729151518.46388-4-broonie@kernel.org> <20210729160642.GP1724@arm.com> <20210729173411.GT4670@sirena.org.uk> <20210802102517.GA25258@arm.com> <20210802113330.GD4668@sirena.org.uk> <20210802123749.GB25258@arm.com> <20210802141939.GF4668@sirena.org.uk> <20210802153614.GC25258@arm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="utPK4TBebyzZxMrE" Content-Disposition: inline In-Reply-To: <20210802153614.GC25258@arm.com> X-Cookie: There's only one everything. User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org --utPK4TBebyzZxMrE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Aug 02, 2021 at 04:36:15PM +0100, Dave Martin wrote: > On Mon, Aug 02, 2021 at 03:19:39PM +0100, Mark Brown wrote: > > popen() appears to be break the _SET_VL_ONEXEC test. Between a lack of > > strace in my test filesystem and not spotting anything obvious in the > > glibc sources I can't tell exactly where it's doing something different, > > though it does feel like it should be a separate testcase if it's > Ah, dang, popen() will run the target program via a shell, so there will > actually be two fork-exec()s, with the VL being reset to default by the > second exec. Oh, of course - it's basically a more useful system(). The bit where it adds the sh invocation was buried somewhere in the glibc source I didn't find. > This is the kind of reason why I tend not to go for it, I guess -- > it looks convenient, but it's just that little bit overcooked as an API. > *sigh* Well, if you're working at the stdio level it's fine I think but this program is at the level below that. --utPK4TBebyzZxMrE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmEIHAIACgkQJNaLcl1U h9A6GQf/fOOEjQoqwxQmiqEZMKB+y9/JbHA0Xq11RMwaD3+Hq7+cV3muzAFjz5dm dt/A0IaLXG8oPzZbWQCygNYkLFM1/4qBu0gBx7lrxOOQSkd3wTV1g0B1Nzw6hY7t my/7vPIrRCQknm61cIaYjsJOoJlKDCDnsqjKw1NwEeoQQMmQX/V/WYDPQO3fW6GK orQf8/K7Ldjvae41Fc+yywMC0xO4a3Nnvze1bRceHutjDz9+RKxgSHphBtBXK9Bd z2SrLPdokOVATMnGjKgm9io6jsnTDFlIDbF1tTYaVSHMPLHCb+qyGptIH/4KsbyS 9FfbUbSVqZF+OKNOu1/icrTWZlB8Iw== =wSrF -----END PGP SIGNATURE----- --utPK4TBebyzZxMrE-- 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=-6.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 E1BB0C4338F for ; Mon, 2 Aug 2021 16:25:26 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 A9EAB60F55 for ; Mon, 2 Aug 2021 16:25:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org A9EAB60F55 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=7fhIfZg7j1KQsOBKLlduJ4CLKIFgRQh+W1cGU1L72PU=; b=X1Qi+peSzt/WBYVj7FaAY0pMCc xIomZjCeB1yacKm4fpmN8fx6igvQr2MGaHXCoDjm1c8rzhhfXneHTk2S1V4FvMBcRadQnU7qmC72E WJkhNaxOAeSFEQOrV4WYdDEemMjE7UpMhpdrHIE2zQL3MZgL1Y54dAXRguGGdkY9oulUeJzjkBJsZ 4gYY31taBylwZVKf/tm2LJZZl9gaOdfavSEKNaMZeKnKnZvfo8CpEuIFQ5tMMIbSS38yH0BDas8pK aA9VRiZ+sBtaNtW3sTA+5RhycwIFhsKbjpgPrbSHJNb/Bgngx7HO054ztdPEND9B6CsYahkp2oSGk D7h1JfeQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mAajJ-00H9VJ-C3; Mon, 02 Aug 2021 16:23:53 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mAajF-00H9Ul-Uu for linux-arm-kernel@lists.infradead.org; Mon, 02 Aug 2021 16:23:51 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 22C4860F55; Mon, 2 Aug 2021 16:23:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627921429; bh=fd0w1leBpZOJYXNsXSHQymGiFrTvsUyV8+apyFqO3Vo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rlNmuaEcNUJU3Ex1p3JPV0swOJZCg6GKrLclfL78dIfHlNe0wtSwTnXVNXtPOTKJp Rhhr6VHurUld6WiDQ3IAtUdl9Ov97WED4czGMLcxcg6vGjplgKbewHhLN406Vxfm3C ZR9dwTQ5Tqweq5dGClvwuHABhI+l//ZN+M/e2zpcMalQx3U9ymcjboGaATRdr1LIIh vUXU1IuMIyoHrkEwa+m7KySILmMRGEP+KRJSfg6siSlS+pwn1Ir7bd3H09SqzUYf/l 4iciUBTCLfCkCE1UVNF7IhX+/Q8OKcbJ6m81gurvElZGYRXPC7w/Ty32B1IIQQR+pS IhYJ+nCuwNQuQ== Date: Mon, 2 Aug 2021 17:23:31 +0100 From: Mark Brown To: Dave Martin Cc: Catalin Marinas , Will Deacon , Shuah Khan , linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v3 3/4] kselftest/arm64: Add tests for SVE vector configuration Message-ID: <20210802162331.GJ4668@sirena.org.uk> References: <20210729151518.46388-1-broonie@kernel.org> <20210729151518.46388-4-broonie@kernel.org> <20210729160642.GP1724@arm.com> <20210729173411.GT4670@sirena.org.uk> <20210802102517.GA25258@arm.com> <20210802113330.GD4668@sirena.org.uk> <20210802123749.GB25258@arm.com> <20210802141939.GF4668@sirena.org.uk> <20210802153614.GC25258@arm.com> MIME-Version: 1.0 In-Reply-To: <20210802153614.GC25258@arm.com> X-Cookie: There's only one everything. User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210802_092350_059445_77F9CCF1 X-CRM114-Status: GOOD ( 19.02 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============5052843747910160016==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============5052843747910160016== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="utPK4TBebyzZxMrE" Content-Disposition: inline --utPK4TBebyzZxMrE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Aug 02, 2021 at 04:36:15PM +0100, Dave Martin wrote: > On Mon, Aug 02, 2021 at 03:19:39PM +0100, Mark Brown wrote: > > popen() appears to be break the _SET_VL_ONEXEC test. Between a lack of > > strace in my test filesystem and not spotting anything obvious in the > > glibc sources I can't tell exactly where it's doing something different, > > though it does feel like it should be a separate testcase if it's > Ah, dang, popen() will run the target program via a shell, so there will > actually be two fork-exec()s, with the VL being reset to default by the > second exec. Oh, of course - it's basically a more useful system(). The bit where it adds the sh invocation was buried somewhere in the glibc source I didn't find. > This is the kind of reason why I tend not to go for it, I guess -- > it looks convenient, but it's just that little bit overcooked as an API. > *sigh* Well, if you're working at the stdio level it's fine I think but this program is at the level below that. --utPK4TBebyzZxMrE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmEIHAIACgkQJNaLcl1U h9A6GQf/fOOEjQoqwxQmiqEZMKB+y9/JbHA0Xq11RMwaD3+Hq7+cV3muzAFjz5dm dt/A0IaLXG8oPzZbWQCygNYkLFM1/4qBu0gBx7lrxOOQSkd3wTV1g0B1Nzw6hY7t my/7vPIrRCQknm61cIaYjsJOoJlKDCDnsqjKw1NwEeoQQMmQX/V/WYDPQO3fW6GK orQf8/K7Ldjvae41Fc+yywMC0xO4a3Nnvze1bRceHutjDz9+RKxgSHphBtBXK9Bd z2SrLPdokOVATMnGjKgm9io6jsnTDFlIDbF1tTYaVSHMPLHCb+qyGptIH/4KsbyS 9FfbUbSVqZF+OKNOu1/icrTWZlB8Iw== =wSrF -----END PGP SIGNATURE----- --utPK4TBebyzZxMrE-- --===============5052843747910160016== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============5052843747910160016==--