Skip to content

Commit f765fef

Browse files
committed
crypto: qat - disable IOV in adf_dev_stop()
JIRA: https://issues.redhat.com/browse/RHEL-52749 Upstream Status: merged into the linux.git commit b6c7d36 Author: Michal Witwicki <michal.witwicki@intel.com> Date: Wed Jul 17 07:44:57 2024 -0400 crypto: qat - disable IOV in adf_dev_stop() Disabling IOV has the side effect of re-enabling the AEs that might attempt to do DMAs into the heartbeat buffers. Move the disable_iov() function in adf_dev_stop() before the AEs are stopped. Fixes: ed8ccae ("crypto: qat - Add support for SRIOV") Signed-off-by: Michal Witwicki <michal.witwicki@intel.com> Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Vladis Dronov <vdronov@redhat.com>
1 parent 370fc47 commit f765fef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/crypto/intel/qat/qat_common/adf_init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,8 @@ static void adf_dev_stop(struct adf_accel_dev *accel_dev)
323323
if (hw_data->stop_timer)
324324
hw_data->stop_timer(accel_dev);
325325

326+
hw_data->disable_iov(accel_dev);
327+
326328
if (wait)
327329
msleep(100);
328330

@@ -386,8 +388,6 @@ static void adf_dev_shutdown(struct adf_accel_dev *accel_dev)
386388

387389
adf_tl_shutdown(accel_dev);
388390

389-
hw_data->disable_iov(accel_dev);
390-
391391
if (test_bit(ADF_STATUS_IRQ_ALLOCATED, &accel_dev->status)) {
392392
hw_data->free_irq(accel_dev);
393393
clear_bit(ADF_STATUS_IRQ_ALLOCATED, &accel_dev->status);

0 commit comments

Comments
 (0)