summaryrefslogtreecommitdiff
path: root/drivers/misc/habanalabs/include/common
diff options
context:
space:
mode:
authorOfir Bitton <obitton@habana.ai>2020-12-01 10:39:54 +0200
committerOded Gabbay <ogabbay@kernel.org>2020-12-28 08:47:38 +0200
commit9c9013cbd8338ff8eac732d115c9005bc512cbc5 (patch)
treea0ff7d3fb82f3317e2210aff2f601ce863a72bbe /drivers/misc/habanalabs/include/common
parent6585489e808d9964dbde9dad89ac8e792e1185fc (diff)
habanalabs: preboot hard reset support
FW hard reset capability indication is now moved to preboot stage. Driver will check if HW is dirty only after it validated preboot is up. If HW is dirty, driver will perform a hard reset according to the FW capability. In addition, FW defines a new message which driver need to send in order to initiate a hard reset. Signed-off-by: Ofir Bitton <obitton@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/misc/habanalabs/include/common')
-rw-r--r--drivers/misc/habanalabs/include/common/hl_boot_if.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/habanalabs/include/common/hl_boot_if.h b/drivers/misc/habanalabs/include/common/hl_boot_if.h
index e5801ecf0cb2..755c4800f002 100644
--- a/drivers/misc/habanalabs/include/common/hl_boot_if.h
+++ b/drivers/misc/habanalabs/include/common/hl_boot_if.h
@@ -204,6 +204,8 @@ enum kmd_msg {
KMD_MSG_GOTO_WFE,
KMD_MSG_FIT_RDY,
KMD_MSG_SKIP_BMC,
+ RESERVED,
+ KMD_MSG_RST_DEV,
};
enum cpu_msg_status {