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 869FDC7618A for ; Mon, 20 Mar 2023 13:07:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231437AbjCTNHt (ORCPT ); Mon, 20 Mar 2023 09:07:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231432AbjCTNHr (ORCPT ); Mon, 20 Mar 2023 09:07:47 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D4E71B2C6 for ; Mon, 20 Mar 2023 06:07:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1679317666; x=1710853666; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=7w0/Fv7Y6Ejl6TmQJMw+6C+2veIfg3OxJTIOTANspNQ=; b=f/3DoExI40U1J+1JCUqGunpVytezRVNjjkjGqrkm5Ejb9blrPfquThyS wihIW545CWHMboSClJ6Vi9xLmGjTtP72RlnuRldqCS63jsH/7BPJH0bY6 xSSx/+/y9j8E0Tp245aQczly4MvSQB+JAdL4fYPEJLi8DMlaMRJ3md40X K3mUuTqZF+v7EdzZoRn2zfyNzjjbWuuOJS1Y85c7npp0NEp1mSuIjaIY8 y7G1uOHkwACn2siQh50KRvXL1jSw2G8lxxgThI7Q/qEOC3Dd3G6wv9cns lMnlTbyghT4DfPUjl+KFdRKMup3GyffGado3UctmiDooIp100pAe26NnM A==; X-IronPort-AV: E=Sophos;i="5.98,274,1673938800"; d="asc'?scan'208";a="217103041" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 20 Mar 2023 06:07:44 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Mon, 20 Mar 2023 06:07:44 -0700 Received: from wendy (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Mon, 20 Mar 2023 06:07:41 -0700 Date: Mon, 20 Mar 2023 13:07:11 +0000 From: Conor Dooley To: Andy Chiu CC: , , , , , , , , , Nick Knight , Vincent Chen , Ruinland Tsai , Paul Walmsley , Albert Ou , Guo Ren , Sunil V L , Kefeng Wang , Heiko Stuebner , Jisheng Zhang , Dmitry Vyukov , "Eric W. Biederman" , Peter Zijlstra Subject: Re: [PATCH -next v15 09/19] riscv: Add task switch support for vector Message-ID: <38d91df7-1a94-4e55-acff-fa74899091d3@spud> References: <20230317113538.10878-1-andy.chiu@sifive.com> <20230317113538.10878-10-andy.chiu@sifive.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="DAVGBkmh26aPh/E2" Content-Disposition: inline In-Reply-To: <20230317113538.10878-10-andy.chiu@sifive.com> Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org --DAVGBkmh26aPh/E2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 17, 2023 at 11:35:28AM +0000, Andy Chiu wrote: > From: Greentime Hu >=20 > This patch adds task switch support for vector. It also supports all > lengths of vlen. >=20 > Suggested-by: Andrew Waterman > Co-developed-by: Nick Knight > Signed-off-by: Nick Knight > Co-developed-by: Guo Ren > Signed-off-by: Guo Ren > Co-developed-by: Vincent Chen > Signed-off-by: Vincent Chen > Co-developed-by: Ruinland Tsai > Signed-off-by: Ruinland Tsai > Signed-off-by: Greentime Hu > Signed-off-by: Vineet Gupta > Signed-off-by: Andy Chiu > @@ -131,6 +166,9 @@ static __always_inline bool has_vector(void) { return= false; } > static inline bool riscv_v_vstate_query(struct pt_regs *regs) { return f= alse; } > #define riscv_v_vsize (0) > #define riscv_v_setup_vsize() do {} while (0) ^ vim complains that you added a space here, between the first and second tabs. Otherwise, Reviewed-by: Conor Dooley Thanks, Conor. > +#define riscv_v_vstate_save(task, regs) do {} while (0) > +#define riscv_v_vstate_restore(task, regs) do {} while (0) > +#define __switch_to_vector(__prev, __next) do {} while (0) > #define riscv_v_vstate_off(regs) do {} while (0) > #define riscv_v_vstate_on(regs) do {} while (0) --DAVGBkmh26aPh/E2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZBhafwAKCRB4tDGHoIJi 0kjXAQD5Exvw6yVA+/p+41zcBfq0O+x3U+OW1HdH9H8D9oznigEA7MUhkJdXlA+j w8tQBq4mmlJuAbuBaJPiL4SFfayTYgo= =j0ZU -----END PGP SIGNATURE----- --DAVGBkmh26aPh/E2--