summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorOhad Sharabi <osharabi@habana.ai>2022-04-10 10:19:42 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-05-22 21:01:18 +0200
commit5d1a0de2c778f369970dd50f6713e95068926a8b (patch)
treecb9e460ceda645a806dc760f96d5347decf43fda /include
parenthabanalabs: Stop using iommu_present() (diff)
downloadlinux-5d1a0de2c778f369970dd50f6713e95068926a8b.tar.xz
linux-5d1a0de2c778f369970dd50f6713e95068926a8b.zip
habanalabs: add prefetch flag to the MAP operation
This patch let the user decide whether the translations done in the page tables will be fetched directly to the STLB right after the map. We want to let the user control whether to perform prefetch upon map operation. To do so a memory flag was added, to be used in the MAP ioctl, called HL_MEM_PREFETCH and if set- the mappings will be fetched directly to the STLB after map operation. Signed-off-by: Ohad Sharabi <osharabi@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-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 ca2af5f98056..3576bf2b4841 100644
--- a/include/uapi/misc/habanalabs.h
+++ b/include/uapi/misc/habanalabs.h
@@ -1134,6 +1134,7 @@ union hl_wait_cs_args {
#define HL_MEM_SHARED 0x2
#define HL_MEM_USERPTR 0x4
#define HL_MEM_FORCE_HINT 0x8
+#define HL_MEM_PREFETCH 0x40
/**
* structure hl_mem_in - structure that handle input args for memory IOCTL