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,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 13324C433E0 for ; Wed, 15 Jul 2020 17:13:00 +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 B455B206F4 for ; Wed, 15 Jul 2020 17:12:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ohx3Og2e"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="DTI0XZlU" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B455B206F4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org 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-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-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=V+hxuKd718zvc4gB0hJ3H4mEo/pWsdbnaZt1+CqvG3k=; b=ohx3Og2e4+x2OtU3rgIC6TXeg uVpsADL6PqMcOC318c5yDUX3irFhOeZ5LHlRWWM6rViLyS9sl9Nw4n03aAQ9TMX75qPhwUm+s7SKl Skc0prpP1ziBDtW9tUqhZ3iE/+zk4V8o62fx1IdWQiBV4pmqhazJFRicTY/t4c1CeAqGauL/MwkgM jgCGFx8enxuYV9lixUg+Bw56Pcf21HUPII1eGxGY5ZFzi2C1kRNiVUOGdRJ4HAlfC6b6GbZNd8jLg ghnetnW/mTU6oI99a7HGUj4LFJCiE6f6zmf6J/gh2i0lNtEEc6ngL1V1x7+NoBl2Fp/oeuikjq3Bq dGEjHCLng==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jvkwM-0001NH-J7; Wed, 15 Jul 2020 17:11:30 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jvkwI-0001MP-W1 for linux-arm-kernel@lists.infradead.org; Wed, 15 Jul 2020 17:11:27 +0000 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 2E5882065E; Wed, 15 Jul 2020 17:11:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594833085; bh=tVCwq07X/Nj864qTDWxUaSaywM/NFFnxM7MY3ZhUI7g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DTI0XZlUW6nfIDlEwUzA+1znRakA3015X1ZbUZb/Fmp3wUc76IG7bCSls2yyHp7mk 7oda0S78Sq4YJwAuZcEUIC7gporidPx2BT4qsMPg96kMprbVHvYbL5uD44BUCJcrHu QaBb/9QFSx6n1sLo64giMpv+n2Kl5QYCOz3ws+N8= Date: Wed, 15 Jul 2020 18:11:16 +0100 From: Mark Brown To: Dave Martin Subject: Re: [PATCH v3 0/8] arm64/sve: First steps towards optimizing syscalls Message-ID: <20200715171116.GK5431@sirena.org.uk> References: <20200629133556.39825-1-broonie@kernel.org> <20200715164931.GC30452@arm.com> MIME-Version: 1.0 In-Reply-To: <20200715164931.GC30452@arm.com> X-Cookie: 40 isn't old. If you're a tree. 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-20200715_131127_121495_A5E5CFC6 X-CRM114-Status: GOOD ( 13.47 ) 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: Julien Grall , Catalin Marinas , zhang.lei@jp.fujitsu.com, Will Deacon , linux-arm-kernel@lists.infradead.org, Daniel Kiss Content-Type: multipart/mixed; boundary="===============3960706105878547506==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============3960706105878547506== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="u3W6riq+uV6J42Ub" Content-Disposition: inline --u3W6riq+uV6J42Ub Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Jul 15, 2020 at 05:49:34PM +0100, Dave Martin wrote: > I wonder whether we ought to accompany this with a crude mechanism to > choose dynamically between setting TIF_SVE_NEEDS_FLUSH and keeping the > old behaviour. > My concern with doing this unconditionally has been that we can end up > with TIF_SVE permanently stuck on, which increases the per-task overhead. > This is not a worry if the user task really does use SVE once per > context switch, but not so good if, say, the libc startup probes for > SVE to initialise some internal logic but the task otherwise doesn't > use it. (This is just a worry: I haven't looked for evidence to support > it.) Yes, it's a concern. My thought was to follow this up with something which copies what some of the other architectures are doing for FP registers and go back to the existing behaviour after a certain number of syscalls. That has a bunch of room for debate and bikeshedding about what exactly an appropriate number might be of course. --u3W6riq+uV6J42Ub Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl8POLMACgkQJNaLcl1U h9DbCQf8CpfGcfrls8DV37GKEspa5bcurX1Ygm7fVCsRIqEE2bxKQLAnhPALOsTL uWMVjjo898qX6I0eDDM0hta5SvuMd8x/AhOBsn36UkEALQIKlWV5fAq+C4UrvK7Y V9Nx5p4tEmVJGnQTh7am2mmld2Or2LyA/lZZtW3O7X53ahBuEZAugrz5LxMZ+Rmo dY71mmAkyztzRDQBULlR0JvfTOSjRmPg2ixenA5n2IwCbVShTlfN0eEDdH7/mCcA sY8rf+XEUQo9/SB3iZcVsaMNz7Y1U/RgrgGPW0vrGCcf5wR/18cuB4iXF408pGOx W1AaJ/wJdBAJl5yzRbm6vbKBfkf7pw== =VG59 -----END PGP SIGNATURE----- --u3W6riq+uV6J42Ub-- --===============3960706105878547506== 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 --===============3960706105878547506==--