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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7A6A4C761AF for ; Fri, 31 Mar 2023 11:05:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=clChbUY6HUlXjD7iiE7m5qd91V1UIhXi8C2n4SmeRCI=; b=YUYPV5va3VGWUe g6kSQ0f4NhvlhD8iX1R6WRyvfEVRoa9eSn5mBYmdOzHBlQ6mesj4HH0b2SL3LU+npkcjAN9PrQttL i9FVVVimMVR7199PdLcmBmzfugwGjqS5j8zl0EMwSs7U3KrTfoyg9msVlE/VFDX9alalkD9+wXNCS 3VktDfoIJOP+IQZmoCCr57rEz3dYVT7AB6sByfC4NLLlyU6XjrtxTmGxm9OLUOj300LK1dno8Wy4i Fn3eDnOdgvFxkO1oyI9K7T3FyfKfWI4rEnTR0mQ+CxOAduK5AaFONIOeazG4YRszRm9p+noTj8H2E 8eziUsG6VQShnG7IJ/eg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1piCZN-0073SM-0l; Fri, 31 Mar 2023 11:05:21 +0000 Received: from gloria.sntech.de ([185.11.138.130]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1piCZK-0073Qh-0u; Fri, 31 Mar 2023 11:05:19 +0000 Received: from ip4d1634d3.dynamic.kabel-deutschland.de ([77.22.52.211] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1piCZI-00039t-Ef; Fri, 31 Mar 2023 13:05:16 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: linux-riscv@lists.infradead.org, palmer@dabbelt.com, anup@brainfault.org, atishp@atishpatra.org, kvm-riscv@lists.infradead.org, kvm@vger.kernel.org Cc: vineetg@rivosinc.com, greentime.hu@sifive.com, guoren@linux.alibaba.com, Vincent Chen , Andy Chiu , Paul Walmsley , Albert Ou , Guo Ren , Conor Dooley , Andy Chiu Subject: Re: [PATCH -next v17 08/20] riscv: Introduce struct/helpers to save/restore per-task Vector state Date: Fri, 31 Mar 2023 13:05:15 +0200 Message-ID: <3488641.iIbC2pHGDl@diego> In-Reply-To: <20230327164941.20491-9-andy.chiu@sifive.com> References: <20230327164941.20491-1-andy.chiu@sifive.com> <20230327164941.20491-9-andy.chiu@sifive.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230331_040518_314569_37DFF999 X-CRM114-Status: UNSURE ( 9.24 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@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: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Am Montag, 27. M=E4rz 2023, 18:49:28 CEST schrieb Andy Chiu: > From: Greentime Hu > = > Add vector state context struct to be added later in thread_struct. And > prepare low-level helper functions to save/restore vector contexts. > = > This include Vector Regfile and CSRs holding dynamic configuration state > (vstart, vl, vtype, vcsr). The Vec Register width could be implementation > defined, but same for all processes, so that is saved separately. > = > This is not yet wired into final thread_struct - will be done when > __switch_to actually starts doing this in later patches. > = > Given the variable (and potentially large) size of regfile, they are > saved in dynamically allocated memory, pointed to by datap pointer in > __riscv_v_ext_state. > = > Co-developed-by: Vincent Chen > Signed-off-by: Vincent Chen > Signed-off-by: Greentime Hu > Signed-off-by: Vineet Gupta > Signed-off-by: Andy Chiu > Acked-by: Conor Dooley > Reviewed-by: Guo Ren > Reviewed-by: Bj=F6rn T=F6pel Reviewed-by: Heiko Stuebner Tested-by: Heiko Stuebner _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv