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.1 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 AAD90C433E0 for ; Wed, 10 Feb 2021 14:56:55 +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 4709D64E74 for ; Wed, 10 Feb 2021 14:56:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4709D64E74 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=FAa09O2OH3UpczG1VIHh08VuJWEeV2T1JDbG5VIQNSs=; b=2p1ODLdpBFmb8kEsh/qxi/ix7 LElodHyc4VpUeQQWEJXWv2pOkQPHUd6LP7LEAwa7DVUEu5pTSWsRvmdbR/6/TFPN9EU2i04Ad4f2p 4Uy1r1g4tKCLCZV11OBWE1mu5xVkGvCVdD+jfeU/ZshhyURtpjGqvMmOFaBLeKJIVsuvFXFlvxbwM MvxvBZcdQz8BsbK8Xho5pOS+uHEmVc4KRrLOD6518/pin9IFpr3OkPluYXctYzr54L55aXvbw+j3r rERpdmeuvWh5vgJpC2wqZiiwatoxjVNsaYbVA8f2zEMpOMC9/K9VTcKEk7mDjzitKOFEQBvsgtb8B OEnYvO7IQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l9quD-0006Yu-EU; Wed, 10 Feb 2021 14:55:49 +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 1l9quA-0006YE-MN for linux-arm-kernel@lists.infradead.org; Wed, 10 Feb 2021 14:55:47 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id DF8A964D7F; Wed, 10 Feb 2021 14:55:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612968945; bh=G5LaUkTX8g2kVxfI9ueFdaoyKJk5Vqfo4+MYXw9kqUQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gUaqyfBQlWE+/sp/lzPPQRSve/h5/dyO2E2m6eVxZHE1GDGyt9MK1DRzxH6YfhMQ5 niDch5AMu+bpu0YcgOc/csUmsUsd36uV4Q6p1HUCayftqCkJy0I3vQp1OeMr8362yw SATbHcD9tVhravCkZTFz86UctDxBuaoRyzmUwfmesqwKyLsMx3gsinPoWsLkeDpPol 71bke45AyYx/iR3v7YR3t9DHa71vcJPmlaYDkkqFNxJg13lOMbGB/0gXaZUDS9XIyr ObJVyBEWeZxWMFQCJXeVg59tE1KPYDcpFFOQgitvvQ3aIdpBqh9fg7Q7onTyO7O+f3 e7t6loWcUIP1A== Date: Wed, 10 Feb 2021 14:54:52 +0000 From: Mark Brown To: Dave Martin Subject: Re: [PATCH v7 1/2] arm64/sve: Split TIF_SVE into separate execute and register state flags Message-ID: <20210210145452.GA4748@sirena.org.uk> References: <20210201122901.11331-1-broonie@kernel.org> <20210201122901.11331-2-broonie@kernel.org> <20210210105650.GI21837@arm.com> MIME-Version: 1.0 In-Reply-To: <20210210105650.GI21837@arm.com> X-Cookie: Are we live or on tape? 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-20210210_095546_823832_FDF0FAA6 X-CRM114-Status: GOOD ( 20.16 ) 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 , Julien Grall , Catalin Marinas , Zhang Lei , Will Deacon , linux-arm-kernel@lists.infradead.org, Daniel Kiss Content-Type: multipart/mixed; boundary="===============0761597762821659714==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============0761597762821659714== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="3MwIy2ne0vdjdPXF" Content-Disposition: inline --3MwIy2ne0vdjdPXF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Feb 10, 2021 at 10:56:55AM +0000, Dave Martin wrote: > On Mon, Feb 01, 2021 at 12:29:00PM +0000, Mark Brown wrote: > > + if (test_thread_flag(TIF_SVE_EXEC)) { > > + vl = sve_vq_from_vl(current->thread.sve_vl) - 1; > One more nit: because of the confusion that can arises from "vl" being a > somewhat overloaded term in the architecture, I was trying to avoid > using the name "vl" for anything that isn't the vector length in bytes. > Can this instead be renamed to vq_minus_1 to match the function > arguments it's passed for? Oh, *that's* what that's all about. I spent quite a bit of time trying to figure out why we were sometimes using vq_minus_1 but never managed to get to the bottom of it - it's an awkward name and there's nothing in the code that explains the logic behind when we use it so it was really confusing. We can do the rename but I'm not sure it's achieving the goal of comprehensibility. > (You could save a couple of lines by moving the declaration here and > combining it with this assignment too.) Not really the coding style in the file though. --3MwIy2ne0vdjdPXF Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmAj87sACgkQJNaLcl1U h9CKWAgAhMeE9F3v3upvSKzKJdQ02SNApWRAMSlmUP4rL5io0tnCbrncvMWyOr1Y GrbClpEmbYKHCXsJqHglQudvKizrYcnR6ae7h8dD3rGWOFmNISjqrsMid80OGUCc A29SzDIpWz9FN3sJiNdErPGzauAxorM00u1hun+ACsLIPyBEdEdxM2RDcdI4RV90 eKWxnxyb4Nvl7khaRTaROYauqMQYFRz9CHiWL7ws5TMmW/f/AUkoSJe0Ew65GB7p K09F6eDgG7aXp3dq/yDuUHKZOGFd0Ix8ocTlUulPf9zpm+E6KLldKG22Lus2zwnf U9836MXUHeoaqW8dOqbDnko2U9lTVw== =KW4X -----END PGP SIGNATURE----- --3MwIy2ne0vdjdPXF-- --===============0761597762821659714== 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 --===============0761597762821659714==--