video: tegra: host: Support channels in queues

This change adds support for allocating channels for queues and
submitting tasks through them. This is useful in cases where
direct MMIO cannot be used for task submission (e.g. virtualization).

JIRA PVA-443

Change-Id: Iae819d03d1d378059310b67ebc2e5af4690d5c80
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/1481833
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Arto Merilainen
2017-05-15 11:19:38 +03:00
committed by Laxman Dewangan
parent 9e56c92bc9
commit 56a67d3275

View File

@@ -821,7 +821,8 @@ static int nvdla_open(struct inode *inode, struct file *file)
}
priv->queue = nvhost_queue_alloc(nvdla_dev->pool,
MAX_NVDLA_TASK_COUNT);
MAX_NVDLA_TASK_COUNT,
false);
if (IS_ERR(priv->queue)) {
err = PTR_ERR(priv->queue);
goto err_alloc_queue;