uacce: supports device isolation feature
authorKai Ye <yekai13@huawei.com>
Sat, 19 Nov 2022 07:48:15 +0000 (07:48 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jan 2023 11:06:26 +0000 (12:06 +0100)
commite3e289fbc0b520cf469469e8cdba84a50424eb65
treedacb4275ddd034fc5c657f6bc4c992f6eba584f9
parent40bf2fcd85e5997b419e49f72d0df694b8274586
uacce: supports device isolation feature

UACCE adds the hardware error isolation feature. To improve service
reliability, some uacce devices that frequently encounter hardware
errors are isolated. Therefore, this feature is added.

Users can configure the hardware error threshold by 'isolate_strategy'
sysfs node. The user space can get the device isolated state by 'isolate'
sysfs node. If the number of device errors exceeds the configured error
threshold, the device will be isolated. It means the uacce device is
unavailable.

Signed-off-by: Kai Ye <yekai13@huawei.com>
Link: https://lore.kernel.org/r/20221119074817.12063-2-yekai13@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/uacce/uacce.c
include/linux/uacce.h