mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 02:01:36 +03:00
video: tegra: host: Support CVNAS
This change modifies code to support to determine if an allocation has been done from the CVNAS or DRAM. This information is needed primarily for PVA since it needs to choose the port that is used for DMA accesses. JIRA PVA-457 Change-Id: I99305f8940a2c07eadd65999ee175185b257713c Signed-off-by: Arto Merilainen <amerilainen@nvidia.com> Reviewed-on: http://git-master/r/1488003 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Shridhar Rasal <srasal@nvidia.com> Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com> Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com> Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
Laxman Dewangan
parent
c3c9346cbd
commit
9e56c92bc9
@@ -408,7 +408,7 @@ static int nvdla_map_task_memory(struct nvdla_task *task)
|
||||
|
||||
err = nvhost_buffer_submit_pin(buffers,
|
||||
&task->memory_dmabuf[jj],
|
||||
1, &dma_addr, &dma_size);
|
||||
1, &dma_addr, &dma_size, NULL);
|
||||
if (err) {
|
||||
nvdla_dbg_err(pdev, "fail to pin address list");
|
||||
goto fail_to_pin_mem;
|
||||
@@ -462,7 +462,7 @@ static int nvdla_fill_postactions(struct nvdla_task *task)
|
||||
|
||||
if (nvhost_buffer_submit_pin(buffers,
|
||||
&task->out_task_status_dmabuf[j],
|
||||
1, &dma_addr, &dma_size)) {
|
||||
1, &dma_addr, &dma_size, NULL)) {
|
||||
nvdla_dbg_err(pdev, "fail to pin out status");
|
||||
break;
|
||||
}
|
||||
@@ -538,7 +538,7 @@ static int nvdla_fill_postactions(struct nvdla_task *task)
|
||||
|
||||
if (nvhost_buffer_submit_pin(buffers,
|
||||
&task->postfences_sem_dmabuf[i],
|
||||
1, &dma_addr, &dma_size)) {
|
||||
1, &dma_addr, &dma_size, NULL)) {
|
||||
nvdla_dbg_err(pdev, "fail to pin OUT TSSEM");
|
||||
break;
|
||||
}
|
||||
@@ -568,7 +568,7 @@ static int nvdla_fill_postactions(struct nvdla_task *task)
|
||||
|
||||
if (nvhost_buffer_submit_pin(buffers,
|
||||
&task->postfences_sem_dmabuf[i],
|
||||
1, &dma_addr, &dma_size)) {
|
||||
1, &dma_addr, &dma_size, NULL)) {
|
||||
nvdla_dbg_err(pdev, "fail to pin OUT SEM");
|
||||
break;
|
||||
}
|
||||
@@ -732,7 +732,7 @@ static int nvdla_fill_preactions(struct nvdla_task *task)
|
||||
|
||||
if (nvhost_buffer_submit_pin(buffers,
|
||||
&task->prefences_sem_dmabuf[i],
|
||||
1, &dma_addr, &dma_size)) {
|
||||
1, &dma_addr, &dma_size, NULL)) {
|
||||
nvdla_dbg_err(pdev, "fail to pin IN SEM");
|
||||
break;
|
||||
}
|
||||
@@ -770,7 +770,7 @@ static int nvdla_fill_preactions(struct nvdla_task *task)
|
||||
|
||||
if (nvhost_buffer_submit_pin(buffers,
|
||||
&task->in_task_status_dmabuf[j],
|
||||
1, &dma_addr, &dma_size)) {
|
||||
1, &dma_addr, &dma_size, NULL)) {
|
||||
nvdla_dbg_err(pdev, "fail to pin in status");
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user