2024-02-27 09:24:51

by Xi Ruoyao

[permalink] [raw]
Subject: Re: [PATCH] loongarch/crypto: Clean up useless assignment operations

On Tue, 2024-02-27 at 15:42 +0800, WANG Xuerui wrote:
> Sorry. I have checked the manual and it turns out you & Yuli are
> correct: even though the narrower CRC instructions doesn't require
> GRLEN=64, they still *aren't* part of LA32 (LoongArch reference manual
> v1.10, Volume 1, Table 2-1). Counter-intuitive as it is, the original
> patch is correct nevertheless.

But I don't think the table in the spec will 100% reflect the real
status of the LA32 hardware. And we should use CPUCFG to detect it
anyway.

Based on my experience programming some aeronautic device I'd say having
some hardware CRC support should be useful even in embedded area.

--
Xi Ruoyao <[email protected]>
School of Aerospace Science and Technology, Xidian University