summaryrefslogtreecommitdiffstats
path: root/include/uapi/misc
diff options
context:
space:
mode:
authorDani Liberman <dliberman@habana.ai>2022-10-30 13:08:37 +0200
committerOded Gabbay <ogabbay@kernel.org>2022-11-23 16:13:46 +0200
commitcb5fb665f30388cf8cb9becae86dcb84ace0ca88 (patch)
tree5eace6651e5adff312d3868d8a1c24187a3b4ec6 /include/uapi/misc
parent841cd2d7658d92e09354640c1887797f0da3d444 (diff)
downloadlinux-stable-cb5fb665f30388cf8cb9becae86dcb84ace0ca88.tar.gz
linux-stable-cb5fb665f30388cf8cb9becae86dcb84ace0ca88.tar.bz2
linux-stable-cb5fb665f30388cf8cb9becae86dcb84ace0ca88.zip
habanalabs/gaudi: add razwi notify event
Each time razwi (read-only zero, write ignore) happens, besides capturing its data, also notify the user about it. Signed-off-by: Dani Liberman <dliberman@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'include/uapi/misc')
-rw-r--r--include/uapi/misc/habanalabs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/misc/habanalabs.h b/include/uapi/misc/habanalabs.h
index 58343998bd63..7747e19e81fe 100644
--- a/include/uapi/misc/habanalabs.h
+++ b/include/uapi/misc/habanalabs.h
@@ -721,6 +721,7 @@ enum hl_server_type {
* HL_NOTIFIER_EVENT_DEVICE_UNAVAILABLE - Indicates device is unavailable
* HL_NOTIFIER_EVENT_USER_ENGINE_ERR - Indicates device engine in error state
* HL_NOTIFIER_EVENT_GENERAL_HW_ERR - Indicates device HW error
+ * HL_NOTIFIER_EVENT_RAZWI - Indicates razwi happened
*/
#define HL_NOTIFIER_EVENT_TPC_ASSERT (1ULL << 0)
#define HL_NOTIFIER_EVENT_UNDEFINED_OPCODE (1ULL << 1)
@@ -729,6 +730,7 @@ enum hl_server_type {
#define HL_NOTIFIER_EVENT_DEVICE_UNAVAILABLE (1ULL << 4)
#define HL_NOTIFIER_EVENT_USER_ENGINE_ERR (1ULL << 5)
#define HL_NOTIFIER_EVENT_GENERAL_HW_ERR (1ULL << 6)
+#define HL_NOTIFIER_EVENT_RAZWI (1ULL << 7)
/* Opcode for management ioctl
*