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)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 29 Dec 2025 00:44:14 +0000 (08:44 +0800)
commit961ac9d97be72267255f1ed841aabf6694b17454
tree45dc6a8084051b733f1c0331eabd2c7466101cb1
parentb74fd80d7fe578898a76344064d2678ce1efda61
crypto: qat - fix duplicate restarting msg during AER error

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>
drivers/crypto/intel/qat/qat_common/adf_aer.c