aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/uapi/misc
diff options
context:
space:
mode:
authorYuri Nudelman <ynudelman@habana.ai>2021-06-03 17:51:58 +0300
committerOded Gabbay <ogabbay@kernel.org>2021-08-29 09:47:44 +0300
commit486e19795f2ee11f0334e2e3fcf8951d4981ff88 (patch)
tree535891f7368c670b36fd9f3d94e3d4d57e76dcf6 /include/uapi/misc
parenthabanalabs: support hint addresses range reservation (diff)
downloadwireguard-linux-486e19795f2ee11f0334e2e3fcf8951d4981ff88.tar.xz
wireguard-linux-486e19795f2ee11f0334e2e3fcf8951d4981ff88.zip
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. Signed-off-by: Yuri Nudelman <ynudelman@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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/misc/habanalabs.h b/include/uapi/misc/habanalabs.h
index a47a731e4527..18765eb75b65 100644
--- a/include/uapi/misc/habanalabs.h
+++ b/include/uapi/misc/habanalabs.h
@@ -813,6 +813,7 @@ union hl_wait_cs_args {
#define HL_MEM_CONTIGUOUS 0x1
#define HL_MEM_SHARED 0x2
#define HL_MEM_USERPTR 0x4
+#define HL_MEM_FORCE_HINT 0x8
struct hl_mem_in {
union {