Re: [PATCH v2 06/18] loongarch/crc32: expose CRC32 functions through lib

2024-11-03 Thread WangYuli
On 2024/11/3 21:57, Eric Biggers wrote: On Sun, Nov 03, 2024 at 09:36:55PM +0800, WangYuli wrote: 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). Link: https://lore.kernel.org/all/0a7

Re: [PATCH v2 06/18] loongarch/crc32: expose CRC32 functions through lib

2024-11-03 Thread WangYuli
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). Link: https://lore.kernel.org/all/0a7d0a9e-c56e-4ee2-a83b-00164a450...@xen0n.name/ Therefore, we could not directly add ARCH_HAS_CRC32 to

Re: [PATCH v2 06/18] loongarch/crc32: expose CRC32 functions through lib

2024-11-03 Thread Eric Biggers
On Sun, Nov 03, 2024 at 09:36:55PM +0800, WangYuli wrote: > 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). > Link: > https://lore.kernel.org/all/0a7d0a9e-c56e-4ee2-a83b-00164a450...

[PATCH v2 06/18] loongarch/crc32: expose CRC32 functions through lib

2024-10-25 Thread Eric Biggers
From: Eric Biggers Move the loongarch CRC32 assembly code into the lib directory and wire it up to the library interface. This allows it to be used without going through the crypto API. It remains usable via the crypto API too via the shash algorithms that use the library interface. Thus all t