[PATCH v9 0/3] crypto: hisilicon - supports device isolation feature

From: Kai Ye
Date: Tue Oct 25 2022 - 08:48:00 EST


1.Add the uacce hardware error isolation interface. Supports
configures the hardware error isolation frequency.
2.Defining the isolation strategy for ACC by uacce sysfs node. If the
number of hardware errors in a per hour exceeds the configured value,
the device will not be available in user space. The VF device use the
PF device isolation strategy.

changes v1->v2:
- deleted dev_to_uacce api.
- add vfs node doc.
- move uacce->ref to driver.
changes v2->v3:
- deleted some redundant code.
- use qm state instead of reference count.
- add null pointer check.
- isolate_strategy_read() instead of a copy.
changes v3->v4:
- modify a comment
changes v4->v5:
- use bool instead of atomic.
- isolation frequency instead of isolation command.
changes v5->v6:
- add is_visible in uacce.
- add the description of the isolation strategy file node.
changes v6->v7
- add an example for isolate_strategy in Documentation.
changes v7->v8
- update the correct date.
changes v8->v9
- move isolation strategy from qm to uacce.

Kai Ye (3):
uacce: supports device isolation feature
Documentation: add a isolation strategy sysfs node for uacce
crypto: hisilicon/qm - add the device isolation feature for acc

Documentation/ABI/testing/sysfs-driver-uacce | 27 ++++
drivers/crypto/hisilicon/qm.c | 66 +++++++--
drivers/misc/uacce/uacce.c | 145 +++++++++++++++++++
include/linux/uacce.h | 43 +++++-
4 files changed, 271 insertions(+), 10 deletions(-)

--
2.17.1