Skip to content

crypto: qat - PFVF fixes and refactoring

Giovanni Cabiddu linux-crypto 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12crypto: qat - detect PFVF collision after ACKdrivers/crypto/qat/qat_common/adf_pf2vf_msg.c+7 -00 replies
2/12crypto: qat - disregard spurious PFVF interruptsdrivers/crypto/qat/qat_common/adf_pf2vf_msg.c drivers/crypto/qat/qat_common/adf_vf_isr.c+12 -00 replies
3/12crypto: qat - remove unnecessary collision prevention step in PFVFdrivers/crypto/qat/qat_common/adf_pf2vf_msg.c+1 -190 replies
4/12crypto: qat - fix handling of VF to PF interruptsdrivers/crypto/qat/qat_c3xxx/adf_c3xxx_hw_data.c drivers/crypto/qat/qat_c62x/adf_c62x_hw_data.c drivers/crypto/qat/qat_common/adf_accel_devices.h +6 more+133 -760 replies
5/12crypto: qat - remove duplicated logic across GEN2 driversdrivers/crypto/qat/qat_c3xxx/adf_c3xxx_hw_data.c drivers/crypto/qat/qat_c3xxx/adf_c3xxx_hw_data.h drivers/crypto/qat/qat_c62x/adf_c62x_hw_data.c +5 more+107 -2450 replies
6/12crypto: qat - use hweight for bit countingdrivers/crypto/qat/qat_common/adf_gen2_hw_data.c+2 -140 replies
7/12crypto: qat - make pfvf send message direction agnosticdrivers/crypto/qat/qat_common/adf_pf2vf_msg.c+8 -70 replies
8/12crypto: qat - move pfvf collision detection valuesdrivers/crypto/qat/qat_common/adf_pf2vf_msg.c drivers/crypto/qat/qat_common/adf_pf2vf_msg.h+9 -90 replies
9/12crypto: qat - rename pfvf collision constantsdrivers/crypto/qat/qat_common/adf_pf2vf_msg.c+13 -130 replies
10/12crypto: qat - add VF and PF wrappers to common send functiondrivers/crypto/qat/qat_common/adf_common_drv.h drivers/crypto/qat/qat_common/adf_pf2vf_msg.c drivers/crypto/qat/qat_common/adf_vf2pf_msg.c+36 -80 replies
11/12crypto: qat - extract send and wait from adf_vf2pf_request_version()drivers/crypto/qat/qat_common/adf_pf2vf_msg.c+37 -130 replies
12/12crypto: qat - share adf_enable_pf2vf_comms() from adf_pf2vf_msg.cdrivers/crypto/qat/qat_4xxx/adf_4xxx_hw_data.c drivers/crypto/qat/qat_c3xxx/adf_c3xxx_hw_data.c drivers/crypto/qat/qat_c62x/adf_c62x_hw_data.c +3 more+26 -230 replies

Reviews trailers per patch

5 of 12 patches have a Reviewed-by or Acked-by.

PatchMarco ChiapperoGiovanni Cabiddu
1/12
2/12R-b
3/12R-b
4/12
5/12
6/12R-b
7/12
8/12R-b
9/12R-b
10/12
11/12
12/12

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/12] crypto: qat - PFVF fixes and refactoring

This set includes few fixes and refactors in the QAT driver, mainly related to the PFVF communication mechanism.

Here is a summary of the changes:
* Patches #1 and #2 fix a bug in the PFVF protocol related to collision detection;
* Patch #3 optimizes the PFVF protocol protocol by removing an unnecessary timeout;
* Patch #4 makes the VF to PF interrupt related logic device specific;
* Patches #5 and #6 remove duplicated logic across devices and homegrown logic;
* Patches #7 to #12 are just refactoring of the PFVF code in preparation for updates to the protocol.

Giovanni Cabiddu (3):
crypto: qat - detect PFVF collision after ACK
crypto: qat - disregard spurious PFVF interrupts
crypto: qat - use hweight for bit counting

Marco Chiappero (9):
crypto: qat - remove unnecessary collision prevention step in PFVF
crypto: qat - fix handling of VF to PF interrupts
crypto: qat - remove duplicated logic across GEN2 drivers
crypto: qat - make pfvf send message direction agnostic
crypto: qat - move pfvf collision detection values
crypto: qat - rename pfvf collision constants
crypto: qat - add VF and PF wrappers to common send function
crypto: qat - extract send and wait from adf_vf2pf_request_version()
crypto: qat - share adf_enable_pf2vf_comms() from adf_pf2vf_msg.c

 .../crypto/qat/qat_4xxx/adf_4xxx_hw_data.c    |   4 +-
 .../crypto/qat/qat_c3xxx/adf_c3xxx_hw_data.c  |  89 +------
 .../crypto/qat/qat_c3xxx/adf_c3xxx_hw_data.h  |  13 +-
 .../crypto/qat/qat_c62x/adf_c62x_hw_data.c    |  87 +------
 .../crypto/qat/qat_c62x/adf_c62x_hw_data.h    |  12 -
 .../crypto/qat/qat_common/adf_accel_devices.h |   5 +
 .../crypto/qat/qat_common/adf_common_drv.h    |   9 +-
 .../crypto/qat/qat_common/adf_gen2_hw_data.c  |  98 ++++++++
 .../crypto/qat/qat_common/adf_gen2_hw_data.h  |  27 ++
 drivers/crypto/qat/qat_common/adf_isr.c       |  20 +-
 drivers/crypto/qat/qat_common/adf_pf2vf_msg.c | 238 ++++++++++--------
 drivers/crypto/qat/qat_common/adf_pf2vf_msg.h |   9 -
 drivers/crypto/qat/qat_common/adf_vf2pf_msg.c |   4 +-
 drivers/crypto/qat/qat_common/adf_vf_isr.c    |   6 +
 .../qat/qat_dh895xcc/adf_dh895xcc_hw_data.c   | 123 ++++-----
 .../qat/qat_dh895xcc/adf_dh895xcc_hw_data.h   |  14 +-
 16 files changed, 361 insertions(+), 397 deletions(-)
Signature · 1 line
2.31.1