Skip to content

crypto: qat - PFVF updates and improved GEN4 support

Marco Chiappero linux-crypto 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest24 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/24crypto: qat - get compression extended capabilitiesdrivers/crypto/qat/qat_common/adf_accel_devices.h drivers/crypto/qat/qat_common/adf_admin.c drivers/crypto/qat/qat_common/icp_qat_fw_init_admin.h+41 -10 replies
2/24crypto: qat - set CIPHER capability for QAT GEN2drivers/crypto/qat/qat_common/adf_gen2_hw_data.c+9 -30 replies
3/24crypto: qat - set COMPRESSION capability for QAT GEN2drivers/crypto/qat/qat_common/adf_gen2_hw_data.c drivers/crypto/qat/qat_common/adf_gen2_hw_data.h drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c+10 -10 replies
4/24crypto: qat - extend crypto capability detection for 4xxxdrivers/crypto/qat/qat_4xxx/adf_4xxx_hw_data.c drivers/crypto/qat/qat_common/icp_qat_hw.h+34 -40 replies
5/24crypto: qat - support the reset of ring pairs on PFdrivers/crypto/qat/qat_4xxx/adf_4xxx_hw_data.c drivers/crypto/qat/qat_4xxx/adf_4xxx_hw_data.h drivers/crypto/qat/qat_common/adf_accel_devices.h +2 more+67 -00 replies
6/24crypto: qat - add the adf_get_pmisc_base() helper functiondrivers/crypto/qat/qat_common/adf_admin.c drivers/crypto/qat/qat_common/adf_common_drv.h drivers/crypto/qat/qat_common/adf_gen2_hw_data.c +5 more+61 -1150 replies
7/24crypto: qat - make PFVF message construction direction agnosticdrivers/crypto/qat/qat_common/adf_gen2_pfvf.c drivers/crypto/qat/qat_common/adf_pfvf_msg.h drivers/crypto/qat/qat_common/adf_pfvf_pf_msg.c +3 more+120 -710 replies
8/24crypto: qat - make PFVF send and receive direction agnosticdrivers/crypto/qat/qat_common/adf_accel_devices.h drivers/crypto/qat/qat_common/adf_gen2_pfvf.c drivers/crypto/qat/qat_common/adf_pfvf_pf_proto.c +1 more+89 -370 replies
9/24crypto: qat - set PFVF_MSGORIGIN just before sendingdrivers/crypto/qat/qat_common/adf_gen2_pfvf.c drivers/crypto/qat/qat_common/adf_pfvf_pf_msg.c drivers/crypto/qat/qat_common/adf_pfvf_pf_proto.c +1 more+7 -110 replies
10/24crypto: qat - abstract PFVF messages with struct pfvf_messagedrivers/crypto/qat/qat_common/Makefile drivers/crypto/qat/qat_common/adf_accel_devices.h drivers/crypto/qat/qat_common/adf_gen2_pfvf.c +9 more+184 -830 replies
11/24crypto: qat - leverage bitfield.h utils for PFVF messagesdrivers/crypto/qat/qat_common/adf_pfvf_msg.h drivers/crypto/qat/qat_common/adf_pfvf_pf_proto.c drivers/crypto/qat/qat_common/adf_pfvf_vf_msg.c+14 -140 replies
12/24crypto: qat - leverage read_poll_timeout in PFVF senddrivers/crypto/qat/qat_common/adf_gen2_pfvf.c+8 -120 replies
13/24crypto: qat - improve the ACK timings in PFVF senddrivers/crypto/qat/qat_common/adf_gen2_pfvf.c drivers/crypto/qat/qat_common/adf_pfvf_utils.h+4 -30 replies
14/24crypto: qat - store the PFVF protocol version of the endpointsdrivers/crypto/qat/qat_common/adf_accel_devices.h drivers/crypto/qat/qat_common/adf_pfvf_pf_proto.c drivers/crypto/qat/qat_common/adf_pfvf_vf_msg.c +1 more+9 -20 replies
15/24crypto: qat - store the ring-to-service mappingdrivers/crypto/qat/qat_4xxx/adf_4xxx_hw_data.c drivers/crypto/qat/qat_c3xxx/adf_c3xxx_hw_data.c drivers/crypto/qat/qat_c3xxxvf/adf_c3xxxvf_hw_data.c +8 more+44 -00 replies
16/24crypto: qat - introduce support for PFVF block messagesdrivers/crypto/qat/Kconfig drivers/crypto/qat/qat_common/adf_pfvf_msg.h drivers/crypto/qat/qat_common/adf_pfvf_pf_msg.h +6 more+442 -30 replies
17/24crypto: qat - exchange device capabilities over PFVFdrivers/crypto/qat/qat_common/adf_accel_devices.h drivers/crypto/qat/qat_common/adf_pfvf_msg.h drivers/crypto/qat/qat_common/adf_pfvf_pf_msg.c +5 more+112 -40 replies
18/24crypto: qat - support fast ACKs in the PFVF protocoldrivers/crypto/qat/qat_common/adf_accel_devices.h drivers/crypto/qat/qat_common/adf_gen2_pfvf.c drivers/crypto/qat/qat_common/adf_pfvf_msg.h +2 more+91 -300 replies
19/24crypto: qat - exchange ring-to-service mappings over PFVFdrivers/crypto/qat/qat_common/adf_pfvf_msg.h drivers/crypto/qat/qat_common/adf_pfvf_pf_msg.c drivers/crypto/qat/qat_common/adf_pfvf_pf_msg.h +4 more+63 -10 replies
20/24crypto: qat - config VFs based on ring-to-svc mappingdrivers/crypto/qat/qat_c3xxxvf/adf_drv.c drivers/crypto/qat/qat_c62xvf/adf_drv.c drivers/crypto/qat/qat_common/adf_common_drv.h +3 more+34 -130 replies
21/24crypto: qat - add PFVF support to the GEN4 host driverdrivers/crypto/qat/qat_4xxx/adf_4xxx_hw_data.c drivers/crypto/qat/qat_common/Makefile drivers/crypto/qat/qat_common/adf_gen4_pfvf.c +2 more+196 -100 replies
22/24crypto: qat - add PFVF support to enable the reset of ring pairsdrivers/crypto/qat/qat_common/adf_pfvf_msg.h drivers/crypto/qat/qat_common/adf_pfvf_pf_proto.c drivers/crypto/qat/qat_common/adf_pfvf_vf_proto.c+67 -00 replies
23/24crypto: qat - allow detection of dc capabilities for 4xxxdrivers/crypto/qat/qat_4xxx/adf_4xxx_hw_data.c drivers/crypto/qat/qat_common/icp_qat_hw.h+44 -260 replies
24/24crypto: qat - add support for compression for 4xxxdrivers/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 +5 more+147 -130 replies

Reviews trailers per patch

All 24 patches have a Reviewed-by or Acked-by.

PatchFiona TraheMarco ChiapperoGiovanni Cabiddu
1/24R-b R-b
2/24R-b R-b
3/24R-b R-b
4/24R-b R-b
5/24R-b
6/24R-b
7/24R-b R-b
8/24R-b R-b
9/24R-b R-b
10/24R-b R-b
11/24R-b R-b
12/24R-b
13/24R-b
14/24R-b R-b
15/24R-b R-b
16/24R-b
17/24R-b R-b
18/24R-b R-b
19/24R-b R-b
20/24R-b R-b
21/24R-b
22/24R-b R-b
23/24R-b R-b
24/24R-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 3 reviewers.

Read the v1 thread

Cover letter [PATCH 00/24] crypto: qat - PFVF updates and improved GEN4 support

This set mainly revolves around PFVF and support for compression on GEN4 devices.

Along with misc quality improvements to the PFVF code, it includes the following major changes:
* Improved detection of HW capabilities for both GEN2 and GEN4 devices
* PFVF protocol updates, up to version 4, which include Block Messages and Fast ACK
* PFVF support for the GEN4 host driver
* Support for enabling and reporting the compression service on GEN4 devices
* Support for Ring Pair reset by VFs on GEN4 devices
* The refactoring of PFVF code to allow for the introduction of GEN4 support

Giovanni Cabiddu (5):
crypto: qat - get compression extended capabilities
crypto: qat - set CIPHER capability for QAT GEN2
crypto: qat - set COMPRESSION capability for QAT GEN2
crypto: qat - extend crypto capability detection for 4xxx
crypto: qat - allow detection of dc capabilities for 4xxx

Marco Chiappero (18):
crypto: qat - support the reset of ring pairs on PF
crypto: qat - add the adf_get_pmisc_base() helper function
crypto: qat - make PFVF message construction direction agnostic
crypto: qat - make PFVF send and receive direction agnostic
crypto: qat - set PFVF_MSGORIGIN just before sending
crypto: qat - abstract PFVF messages with struct pfvf_message
crypto: qat - leverage bitfield.h utils for PFVF messages
crypto: qat - leverage read_poll_timeout in PFVF send
crypto: qat - improve the ACK timings in PFVF send
crypto: qat - store the PFVF protocol version of the endpoints
crypto: qat - store the ring-to-service mapping
crypto: qat - introduce support for PFVF block messages
crypto: qat - exchange device capabilities over PFVF
crypto: qat - support fast ACKs in the PFVF protocol
crypto: qat - exchange ring-to-service mappings over PFVF
crypto: qat - config VFs based on ring-to-svc mapping
crypto: qat - add PFVF support to the GEN4 host driver
crypto: qat - add PFVF support to enable the reset of ring pairs

Tomasz Kowalik (1):
crypto: qat - add support for compression for 4xxx

 drivers/crypto/qat/Kconfig                    |   1 +
 .../crypto/qat/qat_4xxx/adf_4xxx_hw_data.c    | 145 ++++++--
 .../crypto/qat/qat_4xxx/adf_4xxx_hw_data.h    |   2 +
 drivers/crypto/qat/qat_4xxx/adf_drv.c         |  33 ++
 .../crypto/qat/qat_c3xxx/adf_c3xxx_hw_data.c  |   1 +
 .../qat/qat_c3xxxvf/adf_c3xxxvf_hw_data.c     |   1 +
 drivers/crypto/qat/qat_c3xxxvf/adf_drv.c      |   4 -
 .../crypto/qat/qat_c62x/adf_c62x_hw_data.c    |   1 +
 .../qat/qat_c62xvf/adf_c62xvf_hw_data.c       |   1 +
 drivers/crypto/qat/qat_c62xvf/adf_drv.c       |   4 -
 drivers/crypto/qat/qat_common/Makefile        |   4 +-
 .../crypto/qat/qat_common/adf_accel_devices.h |  28 +-
 .../crypto/qat/qat_common/adf_accel_engine.c  |   8 +-
 drivers/crypto/qat/qat_common/adf_admin.c     |  47 ++-
 drivers/crypto/qat/qat_common/adf_cfg.c       |   1 +
 .../crypto/qat/qat_common/adf_cfg_common.h    |  13 +
 .../crypto/qat/qat_common/adf_cfg_strings.h   |   3 +
 .../crypto/qat/qat_common/adf_common_drv.h    |  12 +
 .../crypto/qat/qat_common/adf_gen2_hw_data.c  |  57 ++--
 .../crypto/qat/qat_common/adf_gen2_hw_data.h  |   9 +
 drivers/crypto/qat/qat_common/adf_gen2_pfvf.c | 316 +++++++++++++-----
 .../crypto/qat/qat_common/adf_gen4_hw_data.c  |  62 +++-
 .../crypto/qat/qat_common/adf_gen4_hw_data.h  |  17 +
 drivers/crypto/qat/qat_common/adf_gen4_pfvf.c | 148 ++++++++
 drivers/crypto/qat/qat_common/adf_gen4_pfvf.h |  17 +
 drivers/crypto/qat/qat_common/adf_init.c      |   9 +-
 drivers/crypto/qat/qat_common/adf_isr.c       |  28 +-
 drivers/crypto/qat/qat_common/adf_pfvf_msg.h  | 202 +++++++++--
 .../crypto/qat/qat_common/adf_pfvf_pf_msg.c   |  35 +-
 .../crypto/qat/qat_common/adf_pfvf_pf_msg.h   |   8 +
 .../crypto/qat/qat_common/adf_pfvf_pf_proto.c | 262 +++++++++++++--
 .../crypto/qat/qat_common/adf_pfvf_pf_proto.h |   2 +-
 .../crypto/qat/qat_common/adf_pfvf_utils.c    |  65 ++++
 .../crypto/qat/qat_common/adf_pfvf_utils.h    |  31 ++
 .../crypto/qat/qat_common/adf_pfvf_vf_msg.c   |  98 +++++-
 .../crypto/qat/qat_common/adf_pfvf_vf_msg.h   |   2 +
 .../crypto/qat/qat_common/adf_pfvf_vf_proto.c | 284 ++++++++++++++--
 .../crypto/qat/qat_common/adf_pfvf_vf_proto.h |   7 +-
 drivers/crypto/qat/qat_common/adf_sriov.c     |  39 ++-
 drivers/crypto/qat/qat_common/adf_vf_isr.c    |  14 +-
 .../qat/qat_common/icp_qat_fw_init_admin.h    |   4 +-
 drivers/crypto/qat/qat_common/icp_qat_hw.h    |  13 +-
 drivers/crypto/qat/qat_common/qat_crypto.c    |  25 ++
 drivers/crypto/qat/qat_common/qat_hal.c       |  41 +--
 .../qat/qat_dh895xcc/adf_dh895xcc_hw_data.c   |   3 +
 .../qat_dh895xccvf/adf_dh895xccvf_hw_data.c   |   1 +
 drivers/crypto/qat/qat_dh895xccvf/adf_drv.c   |   4 -
 47 files changed, 1776 insertions(+), 336 deletions(-)
 create mode 100644 drivers/crypto/qat/qat_common/adf_gen4_pfvf.c
 create mode 100644 drivers/crypto/qat/qat_common/adf_gen4_pfvf.h
 create mode 100644 drivers/crypto/qat/qat_common/adf_pfvf_utils.c
 create mode 100644 drivers/crypto/qat/qat_common/adf_pfvf_utils.h
Signature · 1 line
2.31.1