crypto: qat - rework in preparation for qat_4xxx driver
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest31 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/31 | crypto: qat - update IV in softwaredrivers/ drivers/ | +89 | 0 replies | |
| 2/31 | crypto: qat - mask device capabilities with soft strapsdrivers/ drivers/ drivers/ +13 more | +109 | 0 replies | |
| 3/31 | crypto: qat - num_rings_per_bank is device dependentdrivers/ drivers/ drivers/ +7 more | +47 | 0 replies | |
| 4/31 | crypto: qat - fix configuration of iov threadsdrivers/ drivers/ drivers/ +8 more | +115 | 0 replies | |
| 5/31 | crypto: qat - split transport CSR access logicdrivers/ drivers/ drivers/ +10 more | +198 | 0 replies | |
| 6/31 | crypto: qat - relocate GEN2 CSR access codedrivers/ drivers/ drivers/ | +68 | 0 replies | |
| 7/31 | crypto: qat - abstract admin interfacedrivers/ drivers/ drivers/ +4 more | +39 | 0 replies | |
| 8/31 | crypto: qat - add packed to init admin structuresdrivers/ | +2 | 0 replies | |
| 9/31 | crypto: qat - rename ME in AEdrivers/ drivers/ | +4 | 0 replies | |
| 10/31 | crypto: qat - change admin sequencedrivers/ | +2 | 0 replies | |
| 11/31 | crypto: qat - use admin mask to send fw constantsdrivers/ drivers/ | +2 | 0 replies | |
| 12/31 | crypto: qat - update constants tabledrivers/ | +22 | 0 replies | |
| 13/31 | crypto: qat - remove writes into WQCFGdrivers/ | +0 | 0 replies | |
| 14/31 | crypto: qat - remove unused macros in arbiter moduledrivers/ | +0 | 0 replies | |
| 15/31 | crypto: qat - abstract arbiter accessdrivers/ drivers/ drivers/ +4 more | +50 | 0 replies | |
| 16/31 | crypto: qat - add support for capability detectiondrivers/ drivers/ drivers/ +7 more | +93 | 0 replies | |
| 17/31 | crypto: qat - register crypto instances based on capabilitydrivers/ drivers/ | +21 | 0 replies | |
| 18/31 | crypto: qat - enable ring after pair is programmeddrivers/ | +19 | 0 replies | |
| 19/31 | crypto: qat - abstract build ring basedrivers/ drivers/ drivers/ +2 more | +12 | 0 replies | |
| 20/31 | crypto: qat - replace constant masks with GENMASKdrivers/ drivers/ | +2 | 0 replies | |
| 21/31 | crypto: qat - use BIT_ULL() - 1 pattern for masksdrivers/ drivers/ | +2 | 0 replies | |
| 22/31 | crypto: qat - abstract writes to arbiter enabledrivers/ drivers/ drivers/ +1 more | +20 | 0 replies | |
| 23/31 | crypto: qat - remove hardcoded bank irq clear flag maskdrivers/ drivers/ | +2 | 0 replies | |
| 24/31 | crypto: qat - call functions in adf_sriov if availabledrivers/ | +10 | 0 replies | |
| 25/31 | crypto: qat - remove unnecessary void* castsdrivers/ | +10 | 0 replies | |
| 26/31 | crypto: qat - change return value in adf_cfg_add_key_value_param()drivers/ | +1 | 0 replies | |
| 27/31 | crypto: qat - change return value in adf_cfg_key_val_get()drivers/ | +1 | 0 replies | |
| 28/31 | crypto: qat - refactor qat_crypto_create_instances()drivers/ | +41 | 0 replies | |
| 29/31 | crypto: qat - refactor qat_crypto_dev_config()drivers/ | +41 | 0 replies | |
| 30/31 | crypto: qat - allow for instances in different banksdrivers/ drivers/ | +28 | 0 replies | |
| 31/31 | crypto: qat - extend ae_maskdrivers/ | +1 | 0 replies |
Reviews trailers per patch
All 31 patches have a Reviewed-by or Acked-by.
| Patch | Andy Shevchenko | Indrasena Reddy Gali | Fiona Trahe | Wojciech Ziemba | Maksim Lukoshkov |
|---|---|---|---|---|---|
| 1/31 | R-b | T-b | |||
| 2/31 | R-b | R-b | R-b | ||
| 3/31 | R-b | R-b | |||
| 4/31 | R-b | R-b | R-b | ||
| 5/31 | R-b | R-b | R-b | ||
| 6/31 | R-b | R-b | R-b | ||
| 7/31 | R-b | R-b | R-b | ||
| 8/31 | R-b | R-b | R-b | ||
| 9/31 | R-b | R-b | R-b | ||
| 10/31 | R-b | R-b | R-b | ||
| 11/31 | R-b | R-b | R-b | ||
| 12/31 | R-b | R-b | R-b | ||
| 13/31 | R-b | R-b | R-b | ||
| 14/31 | R-b | R-b | R-b | ||
| 15/31 | R-b | R-b | R-b | ||
| 16/31 | R-b | R-b | R-b | ||
| 17/31 | R-b | R-b | R-b | ||
| 18/31 | R-b | R-b | R-b | R-b | |
| 19/31 | R-b | R-b | R-b | R-b | |
| 20/31 | R-b | ||||
| 21/31 | R-b | ||||
| 22/31 | R-b | R-b | R-b | ||
| 23/31 | R-b | R-b | R-b | ||
| 24/31 | R-b | R-b | R-b | R-b | |
| 25/31 | R-b | ||||
| 26/31 | R-b | ||||
| 27/31 | R-b | ||||
| 28/31 | R-b | ||||
| 29/31 | R-b | ||||
| 30/31 | R-b | R-b | R-b | ||
| 31/31 | R-b | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.
Cover letter [PATCH 00/31] crypto: qat - rework in preparation for qat_4xxx driver
This set is an initial rework of the QAT driver in preparation for the inclusion of the qat_4xxx driver (QAT GEN4).
Summary of changes:
* IV update logic moved to software to remove allocation of the IV buffer in the data-path and allow for devices that are not capable of updating it when performing AES-CBC or AES-CTR.
* Added logic to detect the presence of engines and accelerators via soft-straps and fuse registers.
* Added infrastructure to support devices with an arbitrary number of rings per bank.
* Introduced adf_gen2_hw_data.[c|h] that contain logic that is common between QAT GEN2 devices (c62x, c3xxx and dh895xcc).
* Abstracted logic that configures iov threads.
* Abstracted access to transport CSRs.
* Abstracted, refactored and updated admin interface logic.
* Abstracted and refactored arbiter logic.
* Changed sequence on how arbitration is enabled on rings.
* Added support for device capability detection.
* Replaced hardcoded masks.
* Changed logic in adf_sriov.c to allow for drivers that do not implement some of the functions of that module.
* Refactored logic related to device configuration and instance creation.
* Changed logic to allow for instances in different banks.
* Extended accelerator mask.
Ahsan Atta (1):
crypto: qat - num_rings_per_bank is device dependent
Giovanni Cabiddu (28):
crypto: qat - mask device capabilities with soft straps
crypto: qat - fix configuration of iov threads
crypto: qat - split transport CSR access logic
crypto: qat - relocate GEN2 CSR access code
crypto: qat - abstract admin interface
crypto: qat - add packed to init admin structures
crypto: qat - rename ME in AE
crypto: qat - change admin sequence
crypto: qat - use admin mask to send fw constants
crypto: qat - update constants table
crypto: qat - remove writes into WQCFG
crypto: qat - remove unused macros in arbiter module
crypto: qat - abstract arbiter access
crypto: qat - register crypto instances based on capability
crypto: qat - enable ring after pair is programmed
crypto: qat - abstract build ring base
crypto: qat - replace constant masks with GENMASK
crypto: qat - use BIT_ULL() - 1 pattern for masks
crypto: qat - abstract writes to arbiter enable
crypto: qat - remove hardcoded bank irq clear flag mask
crypto: qat - call functions in adf_sriov if available
crypto: qat - remove unnecessary void* casts
crypto: qat - change return value in adf_cfg_add_key_value_param()
crypto: qat - change return value in adf_cfg_key_val_get()
crypto: qat - refactor qat_crypto_create_instances()
crypto: qat - refactor qat_crypto_dev_config()
crypto: qat - allow for instances in different banks
crypto: qat - extend ae_mask
Marco Chiappero (2):
crypto: qat - update IV in software
crypto: qat - add support for capability detection
.../crypto/qat/qat_c3xxx/adf_c3xxx_hw_data.c | 49 ++++- .../crypto/qat/qat_c3xxx/adf_c3xxx_hw_data.h | 5 + drivers/crypto/qat/qat_c3xxx/adf_drv.c | 11 +- .../qat/qat_c3xxxvf/adf_c3xxxvf_hw_data.c | 7 +- drivers/crypto/qat/qat_c3xxxvf/adf_drv.c | 4 +- .../crypto/qat/qat_c62x/adf_c62x_hw_data.c | 49 ++++- .../crypto/qat/qat_c62x/adf_c62x_hw_data.h | 5 + drivers/crypto/qat/qat_c62x/adf_drv.c | 11 +- .../qat/qat_c62xvf/adf_c62xvf_hw_data.c | 7 +- drivers/crypto/qat/qat_c62xvf/adf_drv.c | 4 +- drivers/crypto/qat/qat_common/Makefile | 1 + .../crypto/qat/qat_common/adf_accel_devices.h | 58 +++++- drivers/crypto/qat/qat_common/adf_admin.c | 77 ++++---- drivers/crypto/qat/qat_common/adf_cfg.c | 4 +- .../crypto/qat/qat_common/adf_cfg_strings.h | 3 +- .../crypto/qat/qat_common/adf_gen2_hw_data.c | 181 ++++++++++++++++++ .../crypto/qat/qat_common/adf_gen2_hw_data.h | 123 ++++++++++++ .../crypto/qat/qat_common/adf_hw_arbiter.c | 94 ++++----- drivers/crypto/qat/qat_common/adf_isr.c | 4 +- drivers/crypto/qat/qat_common/adf_sriov.c | 74 ++----- drivers/crypto/qat/qat_common/adf_transport.c | 130 +++++++++---- .../qat_common/adf_transport_access_macros.h | 67 ------- .../qat/qat_common/adf_transport_debug.c | 32 ++-- .../qat/qat_common/adf_transport_internal.h | 2 +- drivers/crypto/qat/qat_common/adf_vf_isr.c | 5 +- .../qat/qat_common/icp_qat_fw_init_admin.h | 6 +- drivers/crypto/qat/qat_common/icp_qat_hw.h | 23 +++ drivers/crypto/qat/qat_common/qat_algs.c | 136 +++++++------ drivers/crypto/qat/qat_common/qat_crypto.c | 162 ++++++++++------ drivers/crypto/qat/qat_common/qat_crypto.h | 26 ++- drivers/crypto/qat/qat_common/qat_hal.c | 27 +-- .../qat/qat_dh895xcc/adf_dh895xcc_hw_data.c | 60 +++++- .../qat/qat_dh895xcc/adf_dh895xcc_hw_data.h | 5 + drivers/crypto/qat/qat_dh895xcc/adf_drv.c | 9 +- .../qat_dh895xccvf/adf_dh895xccvf_hw_data.c | 7 +- drivers/crypto/qat/qat_dh895xccvf/adf_drv.c | 4 +- 36 files changed, 1024 insertions(+), 448 deletions(-) create mode 100644 drivers/crypto/qat/qat_common/adf_gen2_hw_data.c create mode 100644 drivers/crypto/qat/qat_common/adf_gen2_hw_data.h
Signature · 1 line
2.26.2