From 466b80d90140bccfb96bf0f3d3d4de64ed5da95b Mon Sep 17 00:00:00 2001 From: Shridhar Rasal Date: Thu, 8 Mar 2018 16:21:31 +0530 Subject: [PATCH] video: tegra: host: increase num of prefence count - NvMedia adds pre-fence per-unit * per-output-tensor + 1 * per-input-tensor to enable tensor reuse and synchronization, so increase the prefence max count to 32. - Match fence count with status Jira DLA-703 Change-Id: Icac0779689c9f1921c5d2ad816d731e04b5539f5 Signed-off-by: Shridhar Rasal Reviewed-on: https://git-master.nvidia.com/r/1671196 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Prashant Gaikwad Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/video/tegra/host/nvdla/nvdla.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/video/tegra/host/nvdla/nvdla.h b/drivers/video/tegra/host/nvdla/nvdla.h index e379de15..571949b0 100644 --- a/drivers/video/tegra/host/nvdla/nvdla.h +++ b/drivers/video/tegra/host/nvdla/nvdla.h @@ -100,10 +100,10 @@ /** * Max number of fences supported */ -#define MAX_NUM_NVDLA_PREFENCES 4 +#define MAX_NUM_NVDLA_PREFENCES 32 #define MAX_NUM_NVDLA_POSTFENCES 4 -#define MAX_NUM_NVDLA_IN_TASK_STATUS 4 -#define MAX_NUM_NVDLA_OUT_TASK_STATUS 4 +#define MAX_NUM_NVDLA_IN_TASK_STATUS MAX_NUM_NVDLA_PREFENCES +#define MAX_NUM_NVDLA_OUT_TASK_STATUS MAX_NUM_NVDLA_POSTFENCES #define NUM_PROFILING_POSTACTION 1 #define MAX_COMMANDS_PER_DEVICE 1