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, 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 A938DC433ED for ; Wed, 12 May 2021 14:24:57 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 EFEBF613E9 for ; Wed, 12 May 2021 14:24:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EFEBF613E9 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=desiato.20200630; 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=/w10z4Rbi6HxoZvL560pJPfWAA1Nw//NrZbkDNP9FSM=; b=Db5GxP3OOHKaosO0IN99TpbCZ cfIvBIz2emxSjy2nPi0cyb7ZlZ7WWm0F7BYfhIf2R9bbQOG+d+trs88nw2J6tmYQW+8Kbiw5OXl9c BFXVLxUfpppLItQt3EZNUQ/63u8FZtEzP4VAThPbLjC3G8bjViMNoVi28oUnN1vkpv+YxqQ3iIRZK WmaOOmTEblBZYhGJdHtwiqipCq5RuV7sMT2DuGC83wlqoH8oridSU7CIr2r08L9qlyRI4WzYUBChM wSfnheSVcIhWTeA6tIcEXKefmJMLz9kDbJ+FkW5B/nbqnXM9HNhHlnbJZZz83b1/0C9M5GDL4Udvm 2xlfxNXbA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lgple-00319N-P0; Wed, 12 May 2021 14:23:18 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgplc-00319C-07 for linux-arm-kernel@desiato.infradead.org; Wed, 12 May 2021 14:23:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=ka7X2kXmtQdz+duC3pTJTCJSZ4/TBpFXSVyNdGbufcg=; b=kE2XoZVF3zgHN1ce5S9sRx0h9m KfIqLXgAoa6tZy3Uvh86lgU/Cxmau6GYgRT3q1k16gcUqmgkw9fdPW0xQo6DF3ouJRvwQlJBtenxk ajywQrz6xQB4fXefI5eEtyIwziNPfy7iXB7ul4n6tgfkY9TZrAOFjAt0EUjdaCtLCp6B42i7264x1 e9UpbSU+Fs5U15u7S4o2+oJkRuMBceFMyKJj7i43diaBegIxBxZT7Hwr/7XJgnV/amxpejz8hSKWR UoMNCTrZ1BvkvXkmfdc+Qdiqlam2ZIsK6je/L0CozLNbHFQX2QRN7hTc/IAATF9YYUVjLCVIqhHiO kPzwpVCw==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgplZ-00ARTW-Em for linux-arm-kernel@lists.infradead.org; Wed, 12 May 2021 14:23:14 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 95B7F613E9; Wed, 12 May 2021 14:23:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620829392; bh=ka7X2kXmtQdz+duC3pTJTCJSZ4/TBpFXSVyNdGbufcg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WZBeyqkdHW4VP8ZBRH/DoQXSpVlQ8iY+TqjgBNOLSw2dSL6Qpu8UKbD8uP2wmUEAp 1/2i1AiN+npYvq5GWpZm4hNcjbCof29uKCekq4LhGa/edZzEuHiYrieJSaPLN3d6Un TdEQ4VO7W1RXI9utFZ5RlHrWAziREEoiYyR7AdT99TTqWs/3YGxQwWt4kZbaYZG14z eLlnWt2IexILi2X6eudh8mHe7AQyREFXy2fyx16OKzj3aCFvvvKOnAoBJFg1hnv9uX uQWGE+rWgXdyz0QHZz5vHm480KFRmziH0W/JoAFBK+BDQ3V80D9H1aOySJzXhTP7cF xL4j7LmO/uK+w== Date: Wed, 12 May 2021 15:22:32 +0100 From: Mark Brown To: Dave Martin Cc: Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 3/3] arm64/sve: Skip flushing Z registers with 128 bit vectors Message-ID: <20210512142232.GC6343@sirena.org.uk> References: <20210511160446.42871-1-broonie@kernel.org> <20210511160446.42871-4-broonie@kernel.org> <20210512134909.GF4187@arm.com> MIME-Version: 1.0 In-Reply-To: <20210512134909.GF4187@arm.com> X-Cookie: When your memory goes, forget it! 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-20210512_072313_561331_C93526C4 X-CRM114-Status: GOOD ( 16.55 ) 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="===============1637740223302646259==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============1637740223302646259== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="t0UkRYy7tHLRMCai" Content-Disposition: inline --t0UkRYy7tHLRMCai Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, May 12, 2021 at 02:49:09PM +0100, Dave Martin wrote: > On Tue, May 11, 2021 at 05:04:46PM +0100, Mark Brown wrote: > > +/* > > + * Zero all SVE registers but the first 128-bits of each vector > > + * > > + * x0 = VQ - 1 > This does require that ZCR_EL1.LEN has already been set to match x0, and > is not changed again before entering userspace. > It would be a good idea to at least describe this in a comment so that > this doesn't get forgotten later on, but there's a limit to how > foolproof this low-level backend code needs to be... Similar concerns exist for huge chunks of the existing SVE code (eg, the no further changes on vector length constraint is pretty much universal and is I'd say largely more of a "make sure you handle the register contents" thing on anything that changes the vector length). --t0UkRYy7tHLRMCai Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmCb5KcACgkQJNaLcl1U h9C90gf+M4oB6B8hctlIjExjngMEYETS9Aw4vRqoCD//jH/D7FL2zjkeeYCtKR4V z8LS89uZmPtu2AHgYayQmwo/TtgOQ6Wj5ffHMdrMZAL5UkyAC0syXnYPYfYze1tC ob8WXpknTblJ6nmKUE3QnUluu/RCBbd3IOV8dKToikLgcsWPBVaBu7Y0xf4OJ8lD yowByNFyC2SVltv7JeQdWYQ8Rc6IYd9z41rxrEkyjhMU1cT6YYYFYhIqyVIp+kVP qyTzaoxIUVJXa8kQ+6oThGgaWewaH9yJCJOcO1R+gXy04OQbtLQmwHfghFf0SKj4 M9vKkgJ+3KleyTff5DqgxzCoIEDmgg== =QmRE -----END PGP SIGNATURE----- --t0UkRYy7tHLRMCai-- --===============1637740223302646259== 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 --===============1637740223302646259==--