habanalabs: increase max jobs number to 512
authorOded Gabbay <oded.gabbay@gmail.com>
Sat, 9 Nov 2019 21:16:33 +0000 (23:16 +0200)
committerOded Gabbay <oded.gabbay@gmail.com>
Thu, 21 Nov 2019 09:35:45 +0000 (11:35 +0200)
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>
drivers/misc/habanalabs/habanalabs.h

index 4ff2da8596530249af2ce5ab2000140dbd40f73f..0813041f669ad1e68899eb45ef1862dcb7e364b8 100644 (file)
@@ -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