summaryrefslogtreecommitdiff
path: root/drivers/misc/habanalabs/include
diff options
context:
space:
mode:
authorMoti Haimovski <mhaimovski@habana.ai>2020-08-23 13:23:13 +0300
committerOded Gabbay <oded.gabbay@gmail.com>2020-09-22 18:49:53 +0300
commit7edf341b9ef5012408a2ddac7ba30bc94e1dffaf (patch)
tree3e2e1d2ffefb27e98b69e35b7f290ba08ad1d344 /drivers/misc/habanalabs/include
parentd83fe66928b2ff50367c983c345d17f7b8769235 (diff)
downloadlinux-7edf341b9ef5012408a2ddac7ba30bc94e1dffaf.tar.xz
habanalabs: add num_hops to hl_mmu_properties
This commit adds the number of HOPs supported by the device to the device MMU properties. Signed-off-by: Moti Haimovski <mhaimovski@habana.ai> Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/misc/habanalabs/include')
-rw-r--r--drivers/misc/habanalabs/include/hw_ip/mmu/mmu_general.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/habanalabs/include/hw_ip/mmu/mmu_general.h b/drivers/misc/habanalabs/include/hw_ip/mmu/mmu_general.h
index 468bb045fbd1..dedf20e8f956 100644
--- a/drivers/misc/habanalabs/include/hw_ip/mmu/mmu_general.h
+++ b/drivers/misc/habanalabs/include/hw_ip/mmu/mmu_general.h
@@ -29,6 +29,8 @@
#define HOP3_SHIFT 21
#define HOP4_SHIFT 12
+#define MMU_ARCH_5_HOPS 5
+
#define HOP_PHYS_ADDR_MASK (~FLAGS_MASK)
#define HL_PTE_SIZE sizeof(u64)