]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
crypto: qat - fix duplicate restarting msg during AER error
authorHarshita Bhilwaria <harshita.bhilwaria@intel.com>
Wed, 17 Dec 2025 05:46:06 +0000 (11:16 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jan 2026 15:31:21 +0000 (16:31 +0100)
[ Upstream commit 961ac9d97be72267255f1ed841aabf6694b17454 ]

The restarting message from PF to VF is sent twice during AER error
handling: once from adf_error_detected() and again from
adf_disable_sriov().
This causes userspace subservices to shutdown unexpectedly when they
receive a duplicate restarting message after already being restarted.

Avoid calling adf_pf2vf_notify_restarting() and
adf_pf2vf_wait_for_restarting_complete() from adf_error_detected() so
that the restarting msg is sent only once from PF to VF.

Fixes: 9567d3dc760931 ("crypto: qat - improve aer error reset handling")
Signed-off-by: Harshita Bhilwaria <harshita.bhilwaria@intel.com>
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Ahsan Atta <ahsan.atta@intel.com>
Reviewed-by: Ravikumar PM <ravikumar.pm@intel.com>
Reviewed-by: Srikanth Thokala <srikanth.thokala@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/crypto/intel/qat/qat_common/adf_aer.c

index 4cb8bd83f570714ccf5732540f1f9594553f44cc..bd19d3a14422a60b6ad324a59fa5cd42a2ff204a 100644 (file)
@@ -41,8 +41,6 @@ static pci_ers_result_t adf_error_detected(struct pci_dev *pdev,
        adf_error_notifier(accel_dev);
        adf_pf2vf_notify_fatal_error(accel_dev);
        adf_dev_restarting_notify(accel_dev);
-       adf_pf2vf_notify_restarting(accel_dev);
-       adf_pf2vf_wait_for_restarting_complete(accel_dev);
        pci_clear_master(pdev);
        adf_dev_down(accel_dev);