Skip to content

crypto: qat - improve recovery flows

Mun Chun Yep linux-crypto 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 1 replyIn review
  2. v19 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- Removed redundant default value in Kconfig
- Removed ccflags define, use the CONFIG option directly in the code
- Reworked the AER reset and recovery flow

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9crypto: qat - add heartbeat error simulatorDocumentation/ABI/testing/debugfs-driver-qat drivers/crypto/intel/qat/Kconfig drivers/crypto/intel/qat/qat_common/Makefile +6 more+214 -60 replies
2/9crypto: qat - add fatal error notify methoddrivers/crypto/intel/qat/qat_common/adf_aer.c drivers/crypto/intel/qat/qat_common/adf_common_drv.h drivers/crypto/intel/qat/qat_common/adf_init.c+45 -00 replies
3/9crypto: qat - disable arbitration before resetdrivers/crypto/intel/qat/qat_common/adf_aer.c+8 -00 replies
4/9crypto: qat - update PFVF protocol for recoverydrivers/crypto/intel/qat/qat_common/adf_accel_devices.h drivers/crypto/intel/qat/qat_common/adf_aer.c drivers/crypto/intel/qat/qat_common/adf_pfvf_msg.h +5 more+109 -20 replies
5/9crypto: qat - re-enable sriov after pf resetdrivers/crypto/intel/qat/qat_common/adf_aer.c drivers/crypto/intel/qat/qat_common/adf_cfg_strings.h drivers/crypto/intel/qat/qat_common/adf_common_drv.h +1 more+79 -40 replies
6/9crypto: qat - add fatal error notificationdrivers/crypto/intel/qat/qat_common/adf_heartbeat.c drivers/crypto/intel/qat/qat_common/adf_isr.c+9 -10 replies
7/9crypto: qat - add auto reset on errorDocumentation/ABI/testing/sysfs-driver-qat drivers/crypto/intel/qat/qat_common/adf_accel_devices.h drivers/crypto/intel/qat/qat_common/adf_aer.c +2 more+69 -10 replies
8/9crypto: qat - limit heartbeat notificationsdrivers/crypto/intel/qat/qat_common/adf_heartbeat.c drivers/crypto/intel/qat/qat_common/adf_heartbeat.h+17 -30 replies
9/9crypto: qat - improve aer error reset handlingdrivers/crypto/intel/qat/qat_common/adf_aer.c+25 -10 replies

Reviews trailers per patch

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

PatchGiovanni CabidduLucas Segarra FernandezAhsan AttaMarkas Rapoportas
1/9R-b R-b R-b R-b
2/9R-b R-b R-b
3/9R-b R-b R-b
4/9R-b R-b R-b
5/9R-b R-b R-b
6/9R-b R-b R-b
7/9R-b R-b R-b
8/9R-b R-b R-b
9/9R-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 4 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/9] crypto: qat - improve recovery flows

This set improves the error recovery flows in the QAT drivers and adds a mechanism to test it through an heartbeat simulator.

When a QAT device reports either a fatal error, or an AER fatal error, or fails an heartbeat check, the PF driver sends an error notification to the VFs through PFVF comms and if auto_reset is enabled then the device goes through reset flows for error recovery.
If SRIOV is enabled when an error is encountered, this is re-enabled after the reset cycle is done.

Changed in v2:
- Removed redundant default value in Kconfig
- Removed ccflags define, use the CONFIG option directly in the code
- Reworked the AER reset and recovery flow

Damian Muszynski (2):
crypto: qat - add heartbeat error simulator
crypto: qat - add auto reset on error

Furong Zhou (3):
crypto: qat - add fatal error notify method
crypto: qat - disable arbitration before reset
crypto: qat - limit heartbeat notifications

Mun Chun Yep (4):
crypto: qat - update PFVF protocol for recovery
crypto: qat - re-enable sriov after pf reset
crypto: qat - add fatal error notification
crypto: qat - improve aer error reset handling

 Documentation/ABI/testing/debugfs-driver-qat  |  26 ++++
 Documentation/ABI/testing/sysfs-driver-qat    |  20 +++
 drivers/crypto/intel/qat/Kconfig              |  14 +++
 drivers/crypto/intel/qat/qat_common/Makefile  |   2 +
 .../intel/qat/qat_common/adf_accel_devices.h  |   2 +
 drivers/crypto/intel/qat/qat_common/adf_aer.c | 116 +++++++++++++++++-
 .../intel/qat/qat_common/adf_cfg_strings.h    |   1 +
 .../intel/qat/qat_common/adf_common_drv.h     |  10 ++
 .../intel/qat/qat_common/adf_heartbeat.c      |  20 ++-
 .../intel/qat/qat_common/adf_heartbeat.h      |  21 ++++
 .../qat/qat_common/adf_heartbeat_dbgfs.c      |  52 ++++++++
 .../qat/qat_common/adf_heartbeat_inject.c     |  76 ++++++++++++
 .../intel/qat/qat_common/adf_hw_arbiter.c     |  25 ++++
 .../crypto/intel/qat/qat_common/adf_init.c    |  12 ++
 drivers/crypto/intel/qat/qat_common/adf_isr.c |   7 +-
 .../intel/qat/qat_common/adf_pfvf_msg.h       |   7 +-
 .../intel/qat/qat_common/adf_pfvf_pf_msg.c    |  64 +++++++++-
 .../intel/qat/qat_common/adf_pfvf_pf_msg.h    |  21 ++++
 .../intel/qat/qat_common/adf_pfvf_pf_proto.c  |   8 ++
 .../intel/qat/qat_common/adf_pfvf_vf_proto.c  |   6 +
 .../crypto/intel/qat/qat_common/adf_sriov.c   |  38 +++++-
 .../crypto/intel/qat/qat_common/adf_sysfs.c   |  37 ++++++
 22 files changed, 571 insertions(+), 14 deletions(-)
 create mode 100644 drivers/crypto/intel/qat/qat_common/adf_heartbeat_inject.c
Signature · 1 line
2.34.1