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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B187CC64EC7 for ; Tue, 28 Feb 2023 22:31:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229623AbjB1WbV (ORCPT ); Tue, 28 Feb 2023 17:31:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229792AbjB1WbS (ORCPT ); Tue, 28 Feb 2023 17:31:18 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C2522ED5C for ; Tue, 28 Feb 2023 14:31:18 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AC678611D5 for ; Tue, 28 Feb 2023 22:31:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F34D0C433D2; Tue, 28 Feb 2023 22:31:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1677623477; bh=7/qNXPrtsBGH9MKoywHXDwQvHhOKCm3REudFDrbnPHg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pRR2Z+u2PWE1yIvGGi2EGc5X+9NDnuJyz0PKr96VCyllLMlmSQ5EjuDXzk1RXOUle woDPeyxP/cIVb1Wc1Iapel0hgsH6bXjfHrQhIBlnX8vDijyxyUtmXwaT9PdqZf4dsX RK2ya0kWGQjgHbs8/t/ZC9BZQOUNLELpdfYPSwZhuqLq7c8TEhbvoeU4psFAvYCHuB Dmdpm+ObbjALB8Hvwl9oOSBMHCk9NxVK/4lq6nVLrPul1tpKazc1pBv1Jsjpe0o1Sv uJyTAsSJhx66NyiNu7K96OGetT3ljeJadYdS80nubWJ0Gp1tL18XYY4XMY0PNmjTyZ cCp+/P3evcsIA== Date: Tue, 28 Feb 2023 22:31:11 +0000 From: Conor Dooley To: Andy Chiu Cc: linux-riscv@lists.infradead.org, palmer@dabbelt.com, anup@brainfault.org, atishp@atishpatra.org, kvm-riscv@lists.infradead.org, kvm@vger.kernel.org, vineetg@rivosinc.com, greentime.hu@sifive.com, guoren@linux.alibaba.com, Vincent Chen , Paul Walmsley , Albert Ou , Atish Patra , Anup Patel , Guo Ren Subject: Re: [PATCH -next v14 03/19] riscv: Add new csr defines related to vector extension Message-ID: References: <20230224170118.16766-1-andy.chiu@sifive.com> <20230224170118.16766-4-andy.chiu@sifive.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Wht2Hpp5etlnN4NY" Content-Disposition: inline In-Reply-To: <20230224170118.16766-4-andy.chiu@sifive.com> Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org --Wht2Hpp5etlnN4NY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 24, 2023 at 05:01:02PM +0000, Andy Chiu wrote: > From: Greentime Hu >=20 > Follow the riscv vector spec to add new csr numbers. >=20 > [guoren@linux.alibaba.com: first porting for new vector related csr] > Acked-by: Guo Ren > Co-developed-by: Guo Ren > Signed-off-by: Guo Ren > Co-developed-by: Vincent Chen > Signed-off-by: Vincent Chen > Signed-off-by: Greentime Hu > Reviewed-by: Palmer Dabbelt > Suggested-by: Vineet Gupta > Signed-off-by: Andy Chiu > [andyc: added SR_FS_VS] > Reviewed-by: Conor Dooley > Reviewed-by: Heiko Stuebner > --- > arch/riscv/include/asm/csr.h | 18 ++++++++++++++++-- > 1 file changed, 16 insertions(+), 2 deletions(-) >=20 > diff --git a/arch/riscv/include/asm/csr.h b/arch/riscv/include/asm/csr.h > index 0e571f6483d9..add51662b7c3 100644 > --- a/arch/riscv/include/asm/csr.h > +++ b/arch/riscv/include/asm/csr.h > @@ -24,16 +24,24 @@ > #define SR_FS_CLEAN _AC(0x00004000, UL) > #define SR_FS_DIRTY _AC(0x00006000, UL) > =20 > +#define SR_VS _AC(0x00000600, UL) /* Vector Status */ > +#define SR_VS_OFF _AC(0x00000000, UL) > +#define SR_VS_INITIAL _AC(0x00000200, UL) > +#define SR_VS_CLEAN _AC(0x00000400, UL) > +#define SR_VS_DIRTY _AC(0x00000600, UL) I just noticed that these are space-aligned, while the file uses tabs. Could you please fix that up when you resubmit? Thanks, Conor. --Wht2Hpp5etlnN4NY Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCY/6ArwAKCRB4tDGHoIJi 0jCFAQChM2oiWmbuWIMy/5wEHYV4fPQQL3uCLSl4v07VLhZ3oQD+NTWvLvIRHkNk SuJ8AMj4XJriJFSSCrcxOCIYLjqULAc= =Gg4o -----END PGP SIGNATURE----- --Wht2Hpp5etlnN4NY--