From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Martin Subject: Re: [PATCH v3 07/28] arm64/sve: Low-level SVE architectural state manipulation functions Date: Wed, 11 Oct 2017 15:39:28 +0100 Message-ID: <20171011143928.GD19485@e103592.cambridge.arm.com> References: <1507660725-7986-1-git-send-email-Dave.Martin@arm.com> <1507660725-7986-8-git-send-email-Dave.Martin@arm.com> <20171011142819.jheh4jwb347demj6@armageddon.cambridge.arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:34042 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751086AbdJKOjd (ORCPT ); Wed, 11 Oct 2017 10:39:33 -0400 Content-Disposition: inline In-Reply-To: <20171011142819.jheh4jwb347demj6@armageddon.cambridge.arm.com> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Catalin Marinas Cc: linux-arch@vger.kernel.org, Okamoto Takayuki , libc-alpha@sourceware.org, Ard Biesheuvel , Szabolcs Nagy , Richard Sandiford , Will Deacon , Alex =?iso-8859-1?Q?Benn=E9e?= , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org On Wed, Oct 11, 2017 at 03:28:19PM +0100, Catalin Marinas wrote: > On Tue, Oct 10, 2017 at 07:38:24PM +0100, Dave P Martin wrote: > > Manipulating the SVE architectural state, including the vector and > > predicate registers, first-fault register and the vector length, > > requires the use of dedicated instructions added by SVE. > > > > This patch adds suitable assembly functions for saving and > > restoring the SVE registers and querying the vector length. > > Setting of the vector length is done as part of register restore. > > > > Since people building kernels may not all get an SVE-enabled > > toolchain for a while, this patch uses macros that generate > > explicit opcodes in place of assembler mnemonics. > > > > Signed-off-by: Dave Martin > > Reviewed-by: Alex Bennée > > Acked-by: Catalin Marinas > > (not adding reviewed-by as I haven't checked the instruction encodings, > I just trust you to be correct ;)) Agreed, I am sometimes correct. Better, Alex _did_ check the encodings against binutils :)