mbox series

[0/5] crypto: qat - Disable VFs through a sysfs interface

Message ID 20240717114544.364892-1-michal.witwicki@intel.com (mailing list archive)
Headers show
Series crypto: qat - Disable VFs through a sysfs interface | expand

Message

Michal Witwicki July 17, 2024, 11:44 a.m. UTC
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

Comments

Herbert Xu Aug. 2, 2024, 1:15 p.m. UTC | #1
On Wed, Jul 17, 2024 at 07:44:55AM -0400, Michal Witwicki wrote:
> 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
> -- 
> 2.44.0

All applied.  Thanks.