Skip to content

btrfs-progs: crypto: cleanup and prepare for new architectures

Qu Wenruo linux-btrfs 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 0 repliesNew
  2. v12 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Introduce new cleanups as a preparation for new architectures
- Enhance hash-*test to bring more coverage

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7btrfs-progs: cleanup inline asm usagecommon/cpu-utils.c crypto/crc32c.c crypto/hash-speedtest.c +1 more+26 -820 replies
2/7btrfs-progs: crypto/crc32c: port crc32c-pcl optimization to CMakefile crypto/crc32c-pcl-intel-asm_64.S crypto/crc32c.c+258 -3880 replies
3/7btrfs-progs: rename cpu features to prepare for other archscommon/cpu-utils.c common/cpu-utils.h crypto/blake2b-ref.c +4 more+60 -600 replies
4/7btrfs-progs: simplify the cpu utils for future expanasioncommon/cpu-utils.c config/ax_gcc_builtin.m4 configure.ac +2 more+29 -300 replies
5/7btrfs-progs: crypto: select accelerated algo directly for testingcommon/cpu-utils.c common/cpu-utils.h crypto/blake2.h +9 more+84 -490 replies
6/7btrfs-progs: crypto: hash-speedtest: cover more block sizescrypto/hash-speedtest.c+74 -580 replies
7/7btrfs-progs: crypto: hash-vectest: cover more block sizes.gitignore crypto/hash-vectest.c+163 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/7] btrfs-progs: crypto: cleanup and prepare for new architectures

[CHANGELOG]
v2:
- Introduce new cleanups as a preparation for new architectures
- Enhance hash-*test to bring more coverage

The patchset is split into 3 mostly independent parts:

- ASM cleanup
Patch 1 and 2.
To remove existing inlined or dedicated ASM file usages. Use compiler wrappers instead, and port an existing ASM file for pclmul optimization to pure C with compiler wrappers.

- Minor rename and cleanups for new architecture
Patch 3 ~ 5.

- Enhance existing hash-*test
Patch 6 and 7.

To bring more block sizes.

Qu Wenruo (7):
btrfs-progs: cleanup inline asm usage
btrfs-progs: crypto/crc32c: port crc32c-pcl optimization to C
btrfs-progs: rename cpu features to prepare for other archs
btrfs-progs: simplify the cpu utils for future expanasion
btrfs-progs: crypto: select accelerated algo directly for testing
btrfs-progs: crypto: hash-speedtest: cover more block sizes
btrfs-progs: crypto: hash-vectest: cover more block sizes

 .gitignore                       |   1 +
 Makefile                         |  14 --
 common/cpu-utils.c               | 104 +++------
 common/cpu-utils.h               |  19 +-
 config/ax_gcc_builtin.m4         |   1 +
 configure.ac                     |   1 +
 crypto/blake2.h                  |   2 +
 crypto/blake2b-ref.c             |  30 ++-
 crypto/crc32c-pcl-intel-asm_64.S | 370 -------------------------------
 crypto/crc32c.c                  | 320 +++++++++++++++++++++++---
 crypto/crc32c.h                  |   2 +
 crypto/hash-speedtest.c          | 179 ++++++++-------
 crypto/hash-vectest.c            | 212 ++++++++++++++++--
 crypto/hash.c                    |   9 +
 crypto/hash.h                    |   2 +
 crypto/sha.h                     |   2 +
 crypto/sha224-256.c              |  18 +-
 libbtrfs/crc32c.c                |  43 +---
 18 files changed, 676 insertions(+), 653 deletions(-)
 delete mode 100644 crypto/crc32c-pcl-intel-asm_64.S

--
2.56.0