diff --git a/drivers/video/tegra/host/nvdla/nvdla.h b/drivers/video/tegra/host/nvdla/nvdla.h index d5aab6a2..519a9a58 100644 --- a/drivers/video/tegra/host/nvdla/nvdla.h +++ b/drivers/video/tegra/host/nvdla/nvdla.h @@ -41,6 +41,11 @@ */ #define MAX_NVDLA_QUEUE_COUNT 16 +/** + * Maximum number of tasks per queue + */ +#define MAX_NVDLA_TASK_COUNT 32 + /** * Trace Buffer Size */ diff --git a/drivers/video/tegra/host/nvdla/nvdla_ioctl.c b/drivers/video/tegra/host/nvdla/nvdla_ioctl.c index 4643a98c..0fc7d230 100644 --- a/drivers/video/tegra/host/nvdla/nvdla_ioctl.c +++ b/drivers/video/tegra/host/nvdla/nvdla_ioctl.c @@ -332,7 +332,8 @@ static int nvdla_open(struct inode *inode, struct file *file) goto err_alloc_buffer; } - priv->queue = nvhost_queue_alloc(nvdla_dev->pool); + priv->queue = nvhost_queue_alloc(nvdla_dev->pool, + MAX_NVDLA_TASK_COUNT); if (IS_ERR(priv->queue)) { err = PTR_ERR(priv->queue); goto err_alloc_queue;