habanalabs: set max asid to 2
authorfarah kassabri <fkassabri@habana.ai>
Sun, 7 Feb 2021 10:34:52 +0000 (12:34 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Fri, 9 Apr 2021 11:09:22 +0000 (14:09 +0300)
currently we support only 2 asids in all asics.
asid 0 for driver, and asic 1 for user.
no need to setup 1024 asids configurations at init phase.

Signed-off-by: farah kassabri <fkassabri@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/include/gaudi/gaudi.h
drivers/misc/habanalabs/include/goya/goya.h

index f9ea897ae42c38ec96f281263d74cf52b3060c8b..ffae107b1693502f69f27169e055f075ff246e5d 100644 (file)
@@ -38,7 +38,7 @@
 
 #define QMAN_PQ_ENTRY_SIZE     16                      /* Bytes */
 
-#define MAX_ASID               1024
+#define MAX_ASID               2
 
 #define PROT_BITS_OFFS         0xF80
 
index 43d241891e4560f1cb27ef1db8e89760cf4ea9d8..1b4ca435021d7a39c3390add86800526c666f6f6 100644 (file)
@@ -30,7 +30,7 @@
 
 #define QMAN_PQ_ENTRY_SIZE     16                      /* Bytes */
 
-#define MAX_ASID               1024
+#define MAX_ASID               2
 
 #define PROT_BITS_OFFS         0xF80