mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
gpu: nvgpu: bypass smmu for VPR memory access
SMMU translation should be bypassed for VPR accesses via GPU. clear sgt dma address to bypass smmu for VPR. Bug 1215470 Change-Id: I22df41a9afc447e2502055b7907cc1848a770f26 Signed-off-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-on: http://git-master/r/696509 (cherry picked from commit a699f55941fa22e90d41a53798956a542b212659) Reviewed-on: http://git-master/r/707889
This commit is contained in:
committed by
Dan Willemsen
parent
0312497ee8
commit
781cbf5c93
@@ -121,7 +121,8 @@ static int gk20a_tegra_secure_alloc(struct platform_device *pdev,
|
|||||||
}
|
}
|
||||||
page = phys_to_page(iova);
|
page = phys_to_page(iova);
|
||||||
sg_set_page(sgt->sgl, page, size, 0);
|
sg_set_page(sgt->sgl, page, size, 0);
|
||||||
sg_dma_address(sgt->sgl) = iova;
|
/* This bypasses SMMU for VPR during gmmu_map. */
|
||||||
|
sg_dma_address(sgt->sgl) = 0;
|
||||||
|
|
||||||
desc->sgt = sgt;
|
desc->sgt = sgt;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user