History

habanalabs: add new opcodes for INFO IOCTL

Add implementation for new opcodes in the INFO IOCTL: 1. Retrieve the replaced DRAM rows from f/w. 2. Retrieve the pending DRAM rows from f/w.

farah kassabri committed 5 years ago

Commit 49c052d1 parent d4194f25 files · +148 −1Browse files

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

Unified · Split

include/uapi/misc/habanalabs.h+4−0
@@ -334,6 +334,8 @@ enum hl_server_type { · 333 unmodified lines
334 * HL_INFO_TOTAL_ENERGY - Retrieve total energy consumption334 * HL_INFO_TOTAL_ENERGY - Retrieve total energy consumption
335 * HL_INFO_PLL_FREQUENCY - Retrieve PLL frequency335 * HL_INFO_PLL_FREQUENCY - Retrieve PLL frequency
336 * HL_INFO_OPEN_STATS - Retrieve info regarding recent device open calls336 * HL_INFO_OPEN_STATS - Retrieve info regarding recent device open calls
337 * HL_INFO_DRAM_REPLACED_ROWS - Retrieve DRAM replaced rows info
338 * HL_INFO_DRAM_PENDING_ROWS - Retrieve DRAM pending rows num
337 */339 */
338#define HL_INFO_HW_IP_INFO 0340#define HL_INFO_HW_IP_INFO 0
339#define HL_INFO_HW_EVENTS 1341#define HL_INFO_HW_EVENTS 1
@@ -353,6 +355,8 @@ enum hl_server_type { · 13 unmodified lines
353#define HL_INFO_PLL_FREQUENCY 16355#define HL_INFO_PLL_FREQUENCY 16
354#define HL_INFO_POWER 17356#define HL_INFO_POWER 17
355#define HL_INFO_OPEN_STATS 18357#define HL_INFO_OPEN_STATS 18
358#define HL_INFO_DRAM_REPLACED_ROWS 21
359#define HL_INFO_DRAM_PENDING_ROWS 22
356 360
357#define HL_INFO_VERSION_MAX_LEN 128361#define HL_INFO_VERSION_MAX_LEN 128
358#define HL_INFO_CARD_NAME_MAX_LEN 16362#define HL_INFO_CARD_NAME_MAX_LEN 16