]> git.ipfire.org Git - thirdparty/linux.git/commit
crypto: hisilicon/qm - support doorbell enable control
authorZongyu Wu <wuzongyu1@huawei.com>
Mon, 18 May 2026 14:29:56 +0000 (22:29 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 29 May 2026 05:54:43 +0000 (13:54 +0800)
commitcc3b6331ccb06ec481439cef464b38cfa35c2802
tree1795f0e5701c9c819e4023a577af977f42a71e8e
parentb632bd38f2072982c7588629a1437e8ffa05c6e7
crypto: hisilicon/qm - support doorbell enable control

The driver notifies the hardware to handle task through
doorbell. Currently, doorbell is enabled by default. To
prevent the process from sending doorbells during hardware
reset scenarios, which could cause the hardware to process
doorbells and trigger new errors:

For example, when the physical machine is resetting the device,
doorbells are still being sent from the virtual machine.

Therefore, the driver disables doorbell during hardware
unavailability. After hardware initialization is completed,
doorbell is enabled, and any task sent during the unavailability
period will return errors.

The hardware supports the PF to disable doorbells for all functions,
while the VF can only disable its own doorbell function. When the PF
is reset, it will disable doorbells for all functions. When VF is
reset, it only disables its own doorbell and does not affect tasks
on other functions.

Signed-off-by: Zongyu Wu <wuzongyu1@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/qm.c
include/linux/hisi_acc_qm.h