History

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.

Dani Liberman committed 4 years ago

Commit cb5fb661 parent 841cd2d4 files · +31 −18Browse files

Showing the changes to include/uapi/misc (1 of 4 files). Show all

Unified · Split

include/uapi/misc/habanalabs.h+2−0
@@ -721,6 +721,7 @@ enum hl_server_type { · 720 unmodified lines
721 * HL_NOTIFIER_EVENT_DEVICE_UNAVAILABLE - Indicates device is unavailable721 * HL_NOTIFIER_EVENT_DEVICE_UNAVAILABLE - Indicates device is unavailable
722 * HL_NOTIFIER_EVENT_USER_ENGINE_ERR - Indicates device engine in error state722 * HL_NOTIFIER_EVENT_USER_ENGINE_ERR - Indicates device engine in error state
723 * HL_NOTIFIER_EVENT_GENERAL_HW_ERR - Indicates device HW error723 * HL_NOTIFIER_EVENT_GENERAL_HW_ERR - Indicates device HW error
724 * HL_NOTIFIER_EVENT_RAZWI - Indicates razwi happened
724 */725 */
725#define HL_NOTIFIER_EVENT_TPC_ASSERT (1ULL << 0)726#define HL_NOTIFIER_EVENT_TPC_ASSERT (1ULL << 0)
726#define HL_NOTIFIER_EVENT_UNDEFINED_OPCODE (1ULL << 1)727#define HL_NOTIFIER_EVENT_UNDEFINED_OPCODE (1ULL << 1)
@@ -729,6 +730,7 @@ enum hl_server_type { · 2 unmodified lines
729#define HL_NOTIFIER_EVENT_DEVICE_UNAVAILABLE (1ULL << 4)730#define HL_NOTIFIER_EVENT_DEVICE_UNAVAILABLE (1ULL << 4)
730#define HL_NOTIFIER_EVENT_USER_ENGINE_ERR (1ULL << 5)731#define HL_NOTIFIER_EVENT_USER_ENGINE_ERR (1ULL << 5)
731#define HL_NOTIFIER_EVENT_GENERAL_HW_ERR (1ULL << 6)732#define HL_NOTIFIER_EVENT_GENERAL_HW_ERR (1ULL << 6)
733#define HL_NOTIFIER_EVENT_RAZWI (1ULL << 7)
732 734
733/* Opcode for management ioctl735/* Opcode for management ioctl
734 *736 *