aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorOded Gabbay <oded.gabbay@gmail.com>2019-11-09 23:16:33 +0200
committerOded Gabbay <oded.gabbay@gmail.com>2019-11-21 11:35:45 +0200
commitbd4c8cb17d4e8f9e01ce48e3f2009307a58e60d2 (patch)
treea2024bb57aa9e1cab7d840353ef87d7d4e25c75b /drivers/misc
parenthabanalabs: set ETR as non-secured (diff)
downloadlinux-dev-bd4c8cb17d4e8f9e01ce48e3f2009307a58e60d2.tar.xz
linux-dev-bd4c8cb17d4e8f9e01ce48e3f2009307a58e60d2.zip
habanalabs: increase max jobs number to 512
In training, there is a need for a large amount of patching to the recipe. This results in many command buffers contains a lot of DMA packets. The number of command buffers per CS is larger than the current maximum of 64, which is an arbitrary number that is enough for inference, but it has no real affect on the code and/or resources of the host machine. Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com> Reviewed-by: Omer Shpigelman <oshpigelman@habana.ai>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/habanalabs/habanalabs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/habanalabs/habanalabs.h b/drivers/misc/habanalabs/habanalabs.h
index 4ff2da859653..0813041f669a 100644
--- a/drivers/misc/habanalabs/habanalabs.h
+++ b/drivers/misc/habanalabs/habanalabs.h
@@ -40,7 +40,7 @@
#define HL_MAX_QUEUES 128
-#define HL_MAX_JOBS_PER_CS 64
+#define HL_MAX_JOBS_PER_CS 512
/* MUST BE POWER OF 2 and larger than 1 */
#define HL_MAX_PENDING_CS 64