Skip to content

crypto: qat - Disable VFs through a sysfs interface

Michal Witwicki linux-crypto 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5crypto: qat - preserve ADF_GENERAL_SECdrivers/crypto/intel/qat/qat_420xx/adf_drv.c drivers/crypto/intel/qat/qat_4xxx/adf_drv.c drivers/crypto/intel/qat/qat_c3xxx/adf_drv.c +14 more+60 -610 replies
2/5crypto: qat - disable IOV in adf_dev_stop()drivers/crypto/intel/qat/qat_common/adf_init.c+2 -20 replies
3/5crypto: qat - fix recovery flow for VFsdrivers/crypto/intel/qat/qat_common/adf_pfvf_vf_msg.c drivers/crypto/intel/qat/qat_common/adf_pfvf_vf_msg.h drivers/crypto/intel/qat/qat_common/adf_vf_isr.c+17 -00 replies
4/5crypto: qat - ensure correct order in VF restarting handlerdrivers/crypto/intel/qat/qat_common/adf_pfvf_pf_msg.c+6 -30 replies
5/5crypto: qat - allow disabling SR-IOV VFsdrivers/crypto/intel/qat/qat_common/adf_sriov.c+128 -660 replies

Reviews trailers per patch

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

PatchGiovanni CabidduPrzemek Kitszel
1/5R-b R-b
2/5R-b R-b
3/5R-b R-b
4/5R-b R-b
5/5R-b R-b

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 0/5] crypto: qat - Disable VFs through a sysfs interface

The main goal of this patch series is to introduce the ability to disable SR-IOV VFs by writing zero to the sriov_numvfs sysfs file. Alongside this, a few additional enhancements and fixes have been implemented.

Summary of Changes:
Patch #1: Preserves the entire ADF_GENERAL_SEC section during device
shutdown.
Patch #2: Adjusts the order in adf_dev_stop() to disable IOV before
stopping the AEs.
Patch #3: Adds support for the ADF_VF2PF_MSGTYPE_RESTARTING_COMPLETE
message to ensure proper VF shutdown notification.
Patch #4: Fixes a race condition by setting the vf->restarting flag
before sending the restart message.
Patch #5: Enables SR-IOV VF disablement through the sysfs interface.

Adam Guerin (1):
crypto: qat - preserve ADF_GENERAL_SEC

Michal Witwicki (4):
crypto: qat - disable IOV in adf_dev_stop()
crypto: qat - fix recovery flow for VFs
crypto: qat - ensure correct order in VF restarting handler
crypto: qat - allow disabling SR-IOV VFs

 drivers/crypto/intel/qat/qat_420xx/adf_drv.c  |   4 +-
 drivers/crypto/intel/qat/qat_4xxx/adf_drv.c   |   4 +-
 drivers/crypto/intel/qat/qat_c3xxx/adf_drv.c  |   4 +-
 .../crypto/intel/qat/qat_c3xxxvf/adf_drv.c    |   4 +-
 drivers/crypto/intel/qat/qat_c62x/adf_drv.c   |   4 +-
 drivers/crypto/intel/qat/qat_c62xvf/adf_drv.c |   4 +-
 drivers/crypto/intel/qat/qat_common/adf_aer.c |   2 +-
 drivers/crypto/intel/qat/qat_common/adf_cfg.c |  29 +++
 drivers/crypto/intel/qat/qat_common/adf_cfg.h |   2 +
 .../intel/qat/qat_common/adf_common_drv.h     |   2 +-
 .../crypto/intel/qat/qat_common/adf_ctl_drv.c |   6 +-
 .../crypto/intel/qat/qat_common/adf_init.c    |  44 +---
 .../intel/qat/qat_common/adf_pfvf_pf_msg.c    |   9 +-
 .../intel/qat/qat_common/adf_pfvf_vf_msg.c    |  14 ++
 .../intel/qat/qat_common/adf_pfvf_vf_msg.h    |   1 +
 .../crypto/intel/qat/qat_common/adf_sriov.c   | 194 ++++++++++++------
 .../crypto/intel/qat/qat_common/adf_sysfs.c   |   4 +-
 .../crypto/intel/qat/qat_common/adf_vf_isr.c  |   4 +-
 .../crypto/intel/qat/qat_dh895xcc/adf_drv.c   |   4 +-
 .../crypto/intel/qat/qat_dh895xccvf/adf_drv.c |   4 +-
 20 files changed, 212 insertions(+), 131 deletions(-)

base-commit: 64409cf846e03f8372654e3b50cd31644b277f8c

Signature · 1 line
2.44.0