Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2910677imw; Wed, 6 Jul 2022 13:56:33 -0700 (PDT) X-Google-Smtp-Source: AGRyM1taOfle//ShX+ckeWLso4bIScgEZwcVcGTzZAZUaQD0RZx+4p3//NiB7jvHe6z1RwzV3tgV X-Received: by 2002:a50:fe98:0:b0:435:a8b:c4c3 with SMTP id d24-20020a50fe98000000b004350a8bc4c3mr55815432edt.78.1657140993458; Wed, 06 Jul 2022 13:56:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657140993; cv=none; d=google.com; s=arc-20160816; b=ATZpsbAVUbXmb1h9tGdedY0X9aIQAhp9d3M4X9SWrbDXHRz+YhUJAKYlaKVo0P4bYV U84ALzZ2gEB8cHbBz+W/ssQe4U1BBxoILyUs1/Rj4BbfIXKMGyN8n7jqU2I7jIEG8Oq4 aU5mifmAGMf9+JJ5sdZBce1VQ0FkX2m/f3FeBaNXqlJ7xj4kVjsyqx9jFkaxwadK44k4 B/8ebut9KMpAPjn8W20Jv8pZgMT3aBXPnYCJccZzfrZoDp1Otr7mPlq4xQ7IjfcJRYLN golxTXC+PmO0J0johHbSFw/3l+rHDle7o/8CJFq6ZjvbLkMZFG7GmqUFKmoYRAB/ppOf 67sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:cc:to:from :date:references:in-reply-to:message-id:mime-version:user-agent :feedback-id:dkim-signature:dkim-signature; bh=JWPNKX/+pD9teKBNPYO1ogTvnIYrOYoB5uZTtDcno+w=; b=pT9/6CPcn6GVZQ+MvUM72k5Zr4BrmcJsRdd+/7S8f2SW5Ddn19uCJpiBZfsJLJdnUm +vosfgLbc/ogBV51bEDleLg16UATIqy+hbo/5fgydax0FRRA9Qz4543mLl629dGWvZCG OFSFCKHsGRS5UB86i2VZucBBL1HyFbnLaO0urHQeTaZZ1gufN9lwGaIZLEH1iEAGr8uK hMDSon2X7fdAbN8HBfzUGuWdaRKDYlLdidVoydXiLlfbItHN3vPbrLhv/eTGsCbkrFD2 jSxffuJwBoslZ1VBDCNtf/2fpiKZS7neRfGkx71pHqUybrPlH7iGQxsSXBXtqnNqj/UR 6mSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=gTE30MsP; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=rtzbgRpQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qw3-20020a1709066a0300b00726e8b63a88si16488869ejc.814.2022.07.06.13.56.07; Wed, 06 Jul 2022 13:56:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=gTE30MsP; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=rtzbgRpQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230481AbiGFUuN (ORCPT + 99 others); Wed, 6 Jul 2022 16:50:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230268AbiGFUuL (ORCPT ); Wed, 6 Jul 2022 16:50:11 -0400 Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 438591AD82 for ; Wed, 6 Jul 2022 13:50:10 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id A1EB8320098D; Wed, 6 Jul 2022 16:50:06 -0400 (EDT) Received: from imap44 ([10.202.2.94]) by compute4.internal (MEProxy); Wed, 06 Jul 2022 16:50:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1657140606; x= 1657227006; bh=JWPNKX/+pD9teKBNPYO1ogTvnIYrOYoB5uZTtDcno+w=; b=g TE30MsPFqwzhMvCPXnTClEyzGXA9D736g0XkXWI5Q/SOClMttShto/W4QETzqE+r 2pdbzMeXNNlYZtzg60gMNU28fffmiXNYEI7ll9hfRLovzxRYXMPTjA32x0hrdG7O 1VB9b2dwozSKeyCO46cAe+4TfzMn3gaoTcSaE0L5MAeiejfx/YWUOU27uBe63yAW 9QZU7TMD5kljikCQ/+OTG7BVvZfJW4W1As1EsrXLJyW6gqf3RojMRXKuWxIaOa7q Q43opW3cxlLPZuBzDtWM4Qx4ocoF2vnQaXLhYeQ7uqZw2IuhNrOOnb77qj7FsvnV zqC9Z+dYHRd19DZWH9lPQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1657140606; x= 1657227006; bh=JWPNKX/+pD9teKBNPYO1ogTvnIYrOYoB5uZTtDcno+w=; b=r tzbgRpQ0jMJzMZYVJx+UElhZxURVEJuN4jl6HAfTUsjppvmEe5+6v3o/OW/Z3Cwj 2En+RT2iPFZPOoDc17EeMEIy617wwsiS8I+3uXT+qMSmpLvW89TJ9Me/EHg7YTye YqnLmvfv3b6Jyl/RIhw8swXJrnQcBejDLJrKdtpoxk7D3CMIEU5VBLyoE0KiawL3 2W6pn70fY0qccak5gzLT7yUsdb/t+SX761aH7ScQNIga11tn1TBFGhRupgJxfrU5 iCzH5tkvEkqrZ0UT/GXamBzrMdGl8BQ1ZtoFARoQz8Fxphgpv3A/yP9K/xfpa99I 1zLX1QOTURYZsy6OTdghw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudeifedgudehfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgfgsehtqhertderreejnecuhfhrohhmpedf lfhirgiguhhnucgjrghnghdfuceojhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtg homheqnecuggftrfgrthhtvghrnhepudefgeeftedugeehffdtheefgfevffelfefghefh jeeugeevtefhudduvdeihefgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepjhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomh X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id DCC8336A0071; Wed, 6 Jul 2022 16:50:04 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-719-gc39a70fa89-fm-20220629.002-gc39a70fa Mime-Version: 1.0 Message-Id: <9d064771-9402-4e84-96f8-4713cddf42f2@www.fastmail.com> In-Reply-To: References: <20220704153612.314112-1-huqi@loongson.cn> <4273e104-8392-6a06-5d18-a1933978d8c3@xen0n.name> <22a1ba993e298ce12a374decefebeca484240883.camel@xry111.site> <16c9ccaa5e5a2ffd39272cff6f66e487c659b571.camel@xry111.site> Date: Wed, 06 Jul 2022 21:49:43 +0100 From: "Jiaxun Yang" To: "Qi Hu" , "Xi Ruoyao" , "Huacai Chen" Cc: "Xuerui Wang" , loongarch@lists.linux.dev, LKML Subject: Re: [PATCH v2] LoongArch: Clean useless vcsr in loongarch_fpu. Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org =E5=9C=A82022=E5=B9=B47=E6=9C=886=E6=97=A5=E4=B8=83=E6=9C=88 =E4=B8=8A=E5= =8D=885:00=EF=BC=8CQi Hu=E5=86=99=E9=81=93=EF=BC=9A > On 2022/7/6 10:51, Xi Ruoyao wrote: >> On Wed, 2022-07-06 at 10:35 +0800, Huacai Chen wrote: >> >>> Maybe Xuerui and Ruoyao have some misunderstanding. LSX/LASX will >>> surely be upstream, this has nothing to do with cleanup VCSR16. >>> Because FP/LSX/LASX share the same control bits in FCSR now. >> My guess: >> >> Almost all behavior of vector unit is controlled by FCSR (for example, >> the rounding of both FPU and vector unit should be controlled by FCSR >> altogether), except one bit similar to the bit 24 of MSACSR ("flush to >> zero") is in VCSR [^1]. And "flush to zero" is not really useful so = it >> will be removed in 3A6000, and we'll not use it for 3A5000. > Actually, flush to zero has been removed in 3A5000. >> >> [^1]: A more bold guess: the hardware engineers could have just said >> "let's wire this register called MSACSR in GS464V as FCSR16/VCSR in >> LA464, maybe it will be useful and who knows?" But now in practice i= t's >> not useful. >> >> Am I correct? > The hardware(LA464) has removed the vcsr("has but not use" is=20 > incorrect), and here are some details: > > - For all FP operations, including LSX/LASX, they are controlled by=20 > fcsr0/1/2/3. > > - For LSX/LASX other operations, they are *not* controlled by any othe= r=20 > CSR now. And fcsr16 to fcsr31 are reserved to control these operations=20 > (now they are *undefined*). Sorry but what do you meant by =E2=80=9Cthese=E2=80=9D here? If it means LSX/LASX, are you trying to say that future chip=E2=80=99s L= SX/LASX won=E2=80=99t be compatible with present 3A5000? As your said fcsr16 and fcsr31 are undef= ined for now. Thanks - > > - Flush to zero(MSACSR.FS) is removed and not supported. > > - If you use "movfcsr2gr" to read the fcsr16, the value is *UNDEFINED*. --=20 - Jiaxun