History

habanalabs: allow fail on inability to respect hint

A new user flag is required to make memory map hint mandatory, in contrast to the current situation where it is best effort. This is due to the requirement to map certain data to specific pre-determined device virtual address ranges.

Yuri Nudelman committed 5 years ago

Commit 486e1971 parent 1ae32b92 files · +43 −3Browse files

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

Unified · Split

include/uapi/misc/habanalabs.h+1−0
@@ -813,6 +813,7 @@ union hl_wait_cs_args { · 812 unmodified lines
813813 #define HL_MEM_CONTIGUOUS 0x1
814814 #define HL_MEM_SHARED 0x2
815815 #define HL_MEM_USERPTR 0x4
816+#define HL_MEM_FORCE_HINT 0x8
816817
817818 struct hl_mem_in {
818819 union {