From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from xry111.site (xry111.site [89.208.246.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C801817EF for ; Wed, 6 Jul 2022 02:51:41 +0000 (UTC) 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 Precedence: bulk X-Mailing-List: loongarch@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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