[PATCH] habanalabs: set max asid to 2

From: Oded Gabbay
Date: Tue Feb 16 2021 - 16:07:25 EST


From: farah kassabri <fkassabri@xxxxxxxxx>

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@xxxxxxxxx>
Reviewed-by: Oded Gabbay <ogabbay@xxxxxxxxxx>
Signed-off-by: Oded Gabbay <ogabbay@xxxxxxxxxx>
---
drivers/misc/habanalabs/include/gaudi/gaudi.h | 2 +-
drivers/misc/habanalabs/include/goya/goya.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/misc/habanalabs/include/gaudi/gaudi.h b/drivers/misc/habanalabs/include/gaudi/gaudi.h
index f9ea897ae42c..ffae107b1693 100644
--- a/drivers/misc/habanalabs/include/gaudi/gaudi.h
+++ b/drivers/misc/habanalabs/include/gaudi/gaudi.h
@@ -38,7 +38,7 @@

#define QMAN_PQ_ENTRY_SIZE 16 /* Bytes */

-#define MAX_ASID 1024
+#define MAX_ASID 2

#define PROT_BITS_OFFS 0xF80

diff --git a/drivers/misc/habanalabs/include/goya/goya.h b/drivers/misc/habanalabs/include/goya/goya.h
index 43d241891e45..1b4ca435021d 100644
--- a/drivers/misc/habanalabs/include/goya/goya.h
+++ b/drivers/misc/habanalabs/include/goya/goya.h
@@ -30,7 +30,7 @@

#define QMAN_PQ_ENTRY_SIZE 16 /* Bytes */

-#define MAX_ASID 1024
+#define MAX_ASID 2

#define PROT_BITS_OFFS 0xF80

--
2.25.1