crypto: hisilicon/qm - define the device isolation strategy
authorKai Ye <yekai13@huawei.com>
Sat, 19 Nov 2022 07:48:17 +0000 (07:48 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jan 2023 11:06:26 +0000 (12:06 +0100)
commitcd0ac51c5760d4eed4981be5de9cad0255976512
tree323c486bd15ded60bdf24257c1a4a4ad1d5c4d5d
parentf65ccb82f5987630f6f4439357a8cf4be8c3840f
crypto: hisilicon/qm - define the device isolation strategy

Define the device isolation strategy by the device driver. The
user configures a hardware error threshold value by uacce interface.
If the number of hardware errors exceeds the value of setting error
threshold in one hour. The device will not be available in user space.
The VF device use the PF device isolation strategy. All the hardware
errors are processed by PF driver.

Signed-off-by: Kai Ye <yekai13@huawei.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Link: https://lore.kernel.org/r/20221119074817.12063-4-yekai13@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/hisilicon/qm.c
include/linux/hisi_acc_qm.h