crypto: qat - enable deflate for QAT GEN4
authorGiovanni Cabiddu <giovanni.cabiddu@intel.com>
Mon, 28 Nov 2022 12:21:21 +0000 (12:21 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 9 Dec 2022 10:44:59 +0000 (18:44 +0800)
commit5b14b2b307e4045b38a4961718cbe9c17cef2bf4
tree7022e51fb181b519d7e1922eaa26ed325ae3a57e
parent1198ae56c9a520384dcf53f01cd9adecd73751d0
crypto: qat - enable deflate for QAT GEN4

Enable deflate for QAT GEN4 devices.

This adds
  (1) logic to create configuration entries at probe time for the
  compression instances for QAT GEN4 devices;
  (2) the implementation of QAT GEN4 specific compression operations,
  required since the creation of the compression request template is
  different between GEN2 and GEN4; and
  (3) updates to the firmware API related to compression for GEN4.

The implementation configures the device to produce data compressed
dynamically, optimized for throughput over compression ratio.

Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Wojciech Ziemba <wojciech.ziemba@intel.com>
Reviewed-by: Adam Guerin <adam.guerin@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_4xxx/adf_4xxx_hw_data.c
drivers/crypto/qat/qat_4xxx/adf_4xxx_hw_data.h
drivers/crypto/qat/qat_4xxx/adf_drv.c
drivers/crypto/qat/qat_common/Makefile
drivers/crypto/qat/qat_common/adf_gen4_dc.c [new file with mode: 0644]
drivers/crypto/qat/qat_common/adf_gen4_dc.h [new file with mode: 0644]
drivers/crypto/qat/qat_common/icp_qat_hw_20_comp.h [new file with mode: 0644]
drivers/crypto/qat/qat_common/icp_qat_hw_20_comp_defs.h [new file with mode: 0644]