OpenCloudOS-Kernel/drivers/misc/habanalabs
Oded Gabbay a28ce422a6 habanalabs: disable CPU access on timeouts
This patch provides a workaround for a bug in the F/W where the response
time for a request from KMD may take more then 100ms. This could cause the
queue between KMD and the F/W to get out of sync.

The WA is to:
1. Increase the timeout of ALL requests to 1s.
2. In case a request isn't answered in time, mark the state as
"cpu_disabled" and prevent sending further requests from KMD to the F/W.
This will eventually lead to a heartbeat failure and hard reset of the
device.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-02-28 13:04:59 +01:00
..
goya habanalabs: disable CPU access on timeouts 2019-02-28 13:04:59 +01:00
include habanalabs: add MMU DRAM default page mapping 2019-02-28 13:04:59 +01:00
Kconfig misc/habanalabs: adjust Kconfig to fix build errors 2019-02-27 16:02:19 +01:00
Makefile habanalabs: add debugfs support 2019-02-18 09:46:46 +01:00
asid.c habanalabs: add context and ASID modules 2019-02-18 09:46:44 +01:00
command_buffer.c habanalabs: add debugfs support 2019-02-18 09:46:46 +01:00
command_submission.c habanalabs: add debugfs support 2019-02-18 09:46:46 +01:00
context.c habanalabs: add virtual memory and MMU modules 2019-02-18 09:46:46 +01:00
debugfs.c habanalabs: disable CPU access on timeouts 2019-02-28 13:04:59 +01:00
device.c habanalabs: disable CPU access on timeouts 2019-02-28 13:04:59 +01:00
habanalabs.h habanalabs: disable CPU access on timeouts 2019-02-28 13:04:59 +01:00
habanalabs_drv.c habanalabs: make functions static or declare them 2019-02-27 16:00:20 +01:00
habanalabs_ioctl.c habanalabs: implement INFO IOCTL 2019-02-18 09:46:46 +01:00
hw_queue.c habanalabs: add command submission module 2019-02-18 09:46:45 +01:00
hwmon.c habanalabs: disable CPU access on timeouts 2019-02-28 13:04:59 +01:00
irq.c habanalabs: add device reset support 2019-02-18 09:46:45 +01:00
memory.c habanalabs: add MMU DRAM default page mapping 2019-02-28 13:04:59 +01:00
mmu.c habanalabs: add MMU DRAM default page mapping 2019-02-28 13:04:59 +01:00
sysfs.c habanalabs: disable CPU access on timeouts 2019-02-28 13:04:59 +01:00