summaryrefslogtreecommitdiffstats
path: root/include/uapi/misc/habanalabs.h
diff options
context:
space:
mode:
authorOfir Bitton <obitton@habana.ai>2020-10-05 13:40:10 +0200
committerOded Gabbay <ogabbay@kernel.org>2020-11-30 09:47:33 +0100
commit66a76401c50b2638fd95dd31f365fd64be307d6a (patch)
treeb68c7e871b87d7770a1e0caae13aa6c80f44ad9a /include/uapi/misc/habanalabs.h
parenthabanalabs: fix hard reset print and comment (diff)
downloadlinux-66a76401c50b2638fd95dd31f365fd64be307d6a.tar.xz
linux-66a76401c50b2638fd95dd31f365fd64be307d6a.zip
habanalabs: add 'needs reset' state in driver
The new state indicates that device should be reset in order to re-gain funcionality. This unique state can occur if reset_on_lockup is disabled and an actual lockup has occurred. 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 'include/uapi/misc/habanalabs.h')
-rw-r--r--include/uapi/misc/habanalabs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/uapi/misc/habanalabs.h b/include/uapi/misc/habanalabs.h
index 61f8f9144b54..d9cc782aba21 100644
--- a/include/uapi/misc/habanalabs.h
+++ b/include/uapi/misc/habanalabs.h
@@ -242,7 +242,8 @@ enum gaudi_engine_id {
enum hl_device_status {
HL_DEVICE_STATUS_OPERATIONAL,
HL_DEVICE_STATUS_IN_RESET,
- HL_DEVICE_STATUS_MALFUNCTION
+ HL_DEVICE_STATUS_MALFUNCTION,
+ HL_DEVICE_STATUS_NEEDS_RESET
};
/* Opcode for management ioctl