]> git.proxmox.com Git - mirror_zfs.git/commit
module/icp/asm-arm/sha2: enable non-SIMD asm kernels on armv5/6
authorShengqi Chen <harry-chen@outlook.com>
Tue, 5 Dec 2023 20:01:09 +0000 (04:01 +0800)
committerGitHub <noreply@github.com>
Tue, 5 Dec 2023 20:01:09 +0000 (12:01 -0800)
commit727497ccdfcccc26517a596ec75e8db400b62932
tree84c4ea9a4189c57e11f3edb648b3be57f894e023
parent5f2700eee5428b9ca4d4689c6985e751b733cbc6
module/icp/asm-arm/sha2: enable non-SIMD asm kernels on armv5/6

My merged pull request #15557 fixes compilation of sha2 kernels on arm
v5/6. However, the compiler guards only allows sha256/512_armv7_impl to
be used when __ARM_ARCH > 6. This patch enables these ASM kernels on all
arm architectures. Some compiler guards are adjusted accordingly to
avoid the unnecessary compilation of SIMD (e.g., neon, armv8ce) kernels
on old architectures.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
Closes #15623
module/icp/algs/sha2/sha256_impl.c
module/icp/algs/sha2/sha512_impl.c
module/icp/asm-arm/sha2/sha256-armv7.S
module/icp/asm-arm/sha2/sha512-armv7.S