accel/habanalabs/gaudi2: handle eq health heartbeat check
authorfarah kassabri <fkassabri@habana.ai>
Tue, 8 Aug 2023 09:56:47 +0000 (12:56 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 9 Oct 2023 09:37:21 +0000 (12:37 +0300)
commit7c4130e6ddd709be2033a6635c91d445cb2baea5
treebdf924dfe7763fad06a826e80e115c6b8e9cf390
parent72bff371b2e26a0088d4cb1b44aee20c77e423ba
accel/habanalabs/gaudi2: handle eq health heartbeat check

Add mechanism for fw eq health check. this will be done using two flows:
using the heartbeat mechanism and raising a dedicated interrupt to
indicate an eq failure like EQ full.
This patch will add implementation for the eq heartbeat for gaudi2 asic.

More info about the heartbeat mechanism:
Expand the heartbeat mechanism to monitor a new event that
will be sent from FW upon receiving heartbeat message.
that way driver can know that the eq is working or not.

Signed-off-by: farah kassabri <fkassabri@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/common/device.c
drivers/accel/habanalabs/common/habanalabs.h
drivers/accel/habanalabs/gaudi2/gaudi2.c
drivers/accel/habanalabs/include/gaudi2/gaudi2_async_ids_map_extended.h
include/linux/habanalabs/cpucp_if.h