summaryrefslogtreecommitdiff
path: root/include/linux/habanalabs
diff options
context:
space:
mode:
authorfarah kassabri <fkassabri@habana.ai>2023-08-23 12:36:25 +0300
committerOded Gabbay <ogabbay@kernel.org>2023-10-09 12:37:21 +0300
commit764bfd138f359423b299b7bf3fcbabb56b981ef5 (patch)
tree56e1e9704fad58fc8f122c91c4a4b8dc73181a05 /include/linux/habanalabs
parent7c4130e6ddd709be2033a6635c91d445cb2baea5 (diff)
accel/habanalabs/gaudi2: add eq health check using irq
This is the second patch for applying the eq health check mechanism which will add support for the interrupt flow for gaudi2 asic. More info about the interrupt mechanism: set a dedicated msix for the eq error interrupt, and add interrupt handler for it. when FW detects some issue with EQ like EQ_FULL, it'll raise that interrupt and driver should reset the device. Driver will inform the FW which msix index to use through the already existing handshake mechanism which will send msix info message to fw. Signed-off-by: farah kassabri <fkassabri@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'include/linux/habanalabs')
-rw-r--r--include/linux/habanalabs/cpucp_if.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/habanalabs/cpucp_if.h b/include/linux/habanalabs/cpucp_if.h
index a18fa81aad1f..84d74c4ee4d3 100644
--- a/include/linux/habanalabs/cpucp_if.h
+++ b/include/linux/habanalabs/cpucp_if.h
@@ -1004,6 +1004,7 @@ enum cpucp_msi_type {
CPUCP_NIC_PORT5_MSI_TYPE,
CPUCP_NIC_PORT7_MSI_TYPE,
CPUCP_NIC_PORT9_MSI_TYPE,
+ CPUCP_EVENT_QUEUE_ERR_MSI_TYPE,
CPUCP_NUM_OF_MSI_TYPES
};