Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1979707imw; Tue, 5 Jul 2022 20:12:04 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vtFZVvlGmn/gZvTXpCN1UN41Nrl87YTHP75tIWtNzULPoMGWbZeA/6ZrIdbD5rxUpgDb87 X-Received: by 2002:a17:903:2447:b0:16a:3b58:48c1 with SMTP id l7-20020a170903244700b0016a3b5848c1mr46786369pls.44.1657077124475; Tue, 05 Jul 2022 20:12:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657077124; cv=none; d=google.com; s=arc-20160816; b=sqPtoZlAoLQFomHNJ8osGlABqBR2IKcWL6o5sRaIGobm1VPVxo1WJUN5Os5Gt042i7 QCyrJD7ygOtz7SBmXfgCOn1C9ZEbvez3v5HJ6p0B2JLSaIdRgIkq7fb6Cr77UdDnnvot jItvxm/1HJ6wHTiDd4BdYRkuZGNCbFmeJ3rOTv2UORER5/XERNtWW3hgBrqdhVSM6OEd V5vnd1WfTcTmYbOMADz01ey4ZB9dzw7Cn+ubPOJ1OdotLPf9OcnlFgys9DnhRl8RJaA/ 3fnChtGB86Idz1uhTXbmMAp/iuQTqi4sZrh2otNHCedA9Cjc7I91b/omSRc8NC5oZxqO ADvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=WLgwHu5+YWdbrSe5HD1oSeew27in4Fjney+rI70EVw8=; b=vPg5sD4WHCU7CRCy5xJuaxlU6t4oChGA8wg+tF2Y51Iwxfocqef0xfGIz/8/At7Sb6 kX6txipaXAZY0yeYJR8H1kAXm5VTnA2w3vSnRpt4NyzlWOCgj3Sd6GkzJu4G8aofWSHD ZnWLvzT5ClMxeQ9qGTLKPmgACFiilMGHLAxUPTG5MqQGeyz/PIkx/Iw34WdCJV1igmAq m5LUg9EzVJtp3CoQm1UKQfmHg+A+uz975+isCyoJIeWYxpDzhIfNuMJJRgr+n3zakb+V EH+SqtMqDIAsYAD5DNpf8/6cNQ+4kHTBp9E/RXwyaEwtY45USUQCwzjvlqe00QKoPazs PW3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=c7XvjotU; 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=REJECT sp=REJECT dis=NONE) header.from=xry111.site Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s17-20020a632c11000000b0041151f29788si32282070pgs.773.2022.07.05.20.11.51; Tue, 05 Jul 2022 20:12:04 -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=@xry111.site header.s=default header.b=c7XvjotU; 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=REJECT sp=REJECT dis=NONE) header.from=xry111.site Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230198AbiGFCvr (ORCPT + 99 others); Tue, 5 Jul 2022 22:51:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229739AbiGFCvq (ORCPT ); Tue, 5 Jul 2022 22:51:46 -0400 X-Greylist: delayed 60647 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 05 Jul 2022 19:51:45 PDT Received: from xry111.site (xry111.site [IPv6:2001:470:683e::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38F1E1A05C for ; Tue, 5 Jul 2022 19:51:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1657075901; bh=rJv/EpGFFRx0itZGtKusK67I1kLrUdm2Rr17FuK6Uxc=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=c7XvjotUG1AsXQHaXU1GQkUrbM49gH6A6gAYzAfKb6KYzf0aB4s6WvsC1WeSmaTOE i/hhFcnvnQ50N4y56sThaTBnpILataJfzvIkrhyOz1TnQzS6twyIOOkPCSZpbU7Qx7 SLed7bZvXOMXZ30GbIM2zwyK4l3lVgeg6EUiE1Cg= Received: from [IPv6:240e:358:1139:6500:dc73:854d:832e:4] (unknown [IPv6:240e:358:1139:6500:dc73:854d:832e:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id D2259669A8; Tue, 5 Jul 2022 22:51:33 -0400 (EDT) Message-ID: Subject: Re: [PATCH v2] LoongArch: Clean useless vcsr in loongarch_fpu. From: Xi Ruoyao To: Huacai Chen Cc: WANG Xuerui , Qi Hu , Jiaxun Yang , loongarch@lists.linux.dev, LKML Date: Wed, 06 Jul 2022 10:51:20 +0800 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> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.3 MIME-Version: 1.0 X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD, SPF_HELO_PASS,SPF_PASS,T_PDS_OTHER_BAD_TLD,T_SCC_BODY_TEXT_LINE autolearn=no 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 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. [^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 it's not useful. Am I correct? --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University