habanalabs: reset device in case of sync error
authorOhad Sharabi <osharabi@habana.ai>
Mon, 8 Feb 2021 12:53:56 +0000 (14:53 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Fri, 9 Apr 2021 11:09:22 +0000 (14:09 +0300)
commit5d6a198f9dba12c78f82a0436d64bd683c031b13
tree046f7912a19af19db27ebf3547e9d1eec246f52f
parent17b59dd3399c45d8e96dcc2c7d1761231dc638b6
habanalabs: reset device in case of sync error

As the F/wW is the first to detect out of sync event, a new event is
added to notify the driver on such event. In which case the driver
performs hard reset.

Signed-off-by: Ohad Sharabi <osharabi@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/gaudi/gaudi.c
drivers/misc/habanalabs/goya/goya.c
drivers/misc/habanalabs/include/common/cpucp_if.h
drivers/misc/habanalabs/include/gaudi/gaudi_async_events.h
drivers/misc/habanalabs/include/goya/goya_async_events.h