crypto: qat - add support for zstd
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 1 replyIn review
- v11 patch 0 repliesSuperseded
Changes in v2 from the cover letter
- Add a patch to fix a build error on architectures without a native byte-swap instruction
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | crypto: qat - use swab32 macrodrivers/ | +6 | 0 replies | |
| 2/2 | crypto: qat - add support for zstddrivers/ drivers/ drivers/ +14 more | +773 | 0 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Laurent M Coquerel |
|---|---|
| 1/2 | |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/2] crypto: qat - add support for zstd
The Intel QuickAssist Technology (QAT) driver currently supports deflate compression via the acomp API, but lacks support for the ZSTD algorithm.
This series adds ZSTD compression support for QAT GEN4, QAT GEN5 and QAT GEN6 devices.
On GEN4 and GEN5, hardware compresses data using LZ4s (a QAT-specific variant of LZ4). The LZ4s output is then parsed and passed to the kernel zstd library via zstd_compress_sequences_and_literals() to produce a standard ZSTD stream. The post-processing step uses per-CPU scratch buffers managed via the acomp stream infrastructure.
On GEN6, both compression and decompression are natively offloaded to the accelerator. Decompression of frames with a history window exceeding the 64 KB hardware limit falls back to software.
A filtering mechanism is also introduced to prevent GEN2 plug-in cards, which do not support ZSTD or LZ4s, from being selected for these algorithms when a GEN4, GEN5 or GEN6 embedded device is also present on the system.
In summary:
- Patch #1 fixes a build error on architectures without a native byte-swap instruction
- Patch #2 exposes the ZSTD algorithm through the acomp API for QAT GEN4, GEN5 and GEN6 accelerators
Changes since v1:
- Add a patch to fix a build error on architectures without a native byte-swap instruction
Giovanni Cabiddu (2):
crypto: qat - use swab32 macro
crypto: qat - add support for zstd
drivers/crypto/intel/qat/Kconfig | 1 + .../intel/qat/qat_420xx/adf_420xx_hw_data.c | 1 + .../intel/qat/qat_4xxx/adf_4xxx_hw_data.c | 1 + .../intel/qat/qat_6xxx/adf_6xxx_hw_data.c | 17 + drivers/crypto/intel/qat/qat_common/Makefile | 1 + .../intel/qat/qat_common/adf_accel_devices.h | 6 + .../intel/qat/qat_common/adf_common_drv.h | 6 +- .../intel/qat/qat_common/adf_gen4_hw_data.c | 18 +- .../crypto/intel/qat/qat_common/adf_init.c | 6 +- .../crypto/intel/qat/qat_common/icp_qat_fw.h | 7 + .../intel/qat/qat_common/icp_qat_fw_comp.h | 2 + .../crypto/intel/qat/qat_common/icp_qat_hw.h | 3 +- .../intel/qat/qat_common/icp_qat_hw_20_comp.h | 10 +- .../intel/qat/qat_common/qat_comp_algs.c | 524 +++++++++++++++++- .../intel/qat/qat_common/qat_comp_req.h | 9 + .../qat/qat_common/qat_comp_zstd_utils.c | 165 ++++++ .../qat/qat_common/qat_comp_zstd_utils.h | 13 + .../intel/qat/qat_common/qat_compression.c | 23 +- 18 files changed, 779 insertions(+), 34 deletions(-) create mode 100644 drivers/crypto/intel/qat/qat_common/qat_comp_zstd_utils.c create mode 100644 drivers/crypto/intel/qat/qat_common/qat_comp_zstd_utils.h
base-commit: 93e03a16c015b8e55e2ec97865f67d9bf1ec1921
Signature · 1 line
2.53.0