Skip to contentSkip to conversation

habanalabs: set max asid to 2

PATCH New Oded Gabbay 1 participant 1 message Feb 16, 2021 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 habanalabs: set max asid to 2

From: farah kassabri <[email protected]>

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.

---
 drivers/misc/habanalabs/include/gaudi/gaudi.h | 2 +-
 drivers/misc/habanalabs/include/goya/goya.h   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/misc/habanalabs/include/gaudi/gaudi.h +1 -1
index f9ea897ae42c..ffae107b1693 100644
@@ -38,7 +38,7 @@
 
 #define QMAN_PQ_ENTRY_SIZE	16			/* Bytes */
 
-#define MAX_ASID		1024
+#define MAX_ASID		2
 
 #define PROT_BITS_OFFS		0xF80
 
drivers/misc/habanalabs/include/goya/goya.h +1 -1
index 43d241891e45..1b4ca435021d 100644
@@ -30,7 +30,7 @@
 
 #define QMAN_PQ_ENTRY_SIZE	16			/* Bytes */
 
-#define MAX_ASID		1024
+#define MAX_ASID		2
 
 #define PROT_BITS_OFFS		0xF80
 
Signature · 1 line
2.25.1