]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: qat - fix heartbeat error injection
authorDamian Muszynski <damian.muszynski@intel.com>
Tue, 7 Apr 2026 10:04:26 +0000 (12:04 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 5 May 2026 08:15:24 +0000 (16:15 +0800)
commit2e96024632b386c86860aa78639940fc96d6fcc9
tree6e2664d237b301add457dd1b98ef31769acb2330
parent52d167bb09181452a8358163b034bb038b1d26dc
crypto: qat - fix heartbeat error injection

The current implementation of the heartbeat error injection uses
adf_disable_arb_thd() to stop a specific accelerator engine thread
from processing requests. This does not reliably prevent the device
from generating responses.

Fix the error injection by disabling the device arbiter through
exit_arb() instead. This properly simulates a device failure by
stopping all arbitration, which results in missing responses for
sent requests.

Remove the now unused adf_disable_arb_thd() function and its
declaration.

Fixes: e2b67859ab6e ("crypto: qat - add heartbeat error simulator")
Signed-off-by: Damian Muszynski <damian.muszynski@intel.com>
Reviewed-by: Ahsan Atta <ahsan.atta@intel.com>
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/intel/qat/qat_common/adf_common_drv.h
drivers/crypto/intel/qat/qat_common/adf_heartbeat_inject.c
drivers/crypto/intel/qat/qat_common/adf_hw_arbiter.c