mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: add placeholder for IPA to PA
Add __nvgpu_sgl_phys function that can be used to implement IPA to PA translation in a subsequent change. Adapt existing function prototypes to add pointer to gpu context, as we will need to check if IPA to PA translation is needed. JIRA EVLR-2442 Bug 200392719 Change-Id: I5a734c958c8277d1bf673c020dafb31263f142d6 Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1673142 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
f94c9d19c1
commit
6c33a010d8
@@ -543,7 +543,7 @@ static int __nvgpu_gmmu_do_update_page_table(struct vm_gk20a *vm,
|
||||
}
|
||||
|
||||
phys_addr = g->ops.mm.gpu_phys_addr(g, attrs,
|
||||
nvgpu_sgt_get_phys(sgt, sgl)) + space_to_skip;
|
||||
nvgpu_sgt_get_phys(g, sgt, sgl)) + space_to_skip;
|
||||
chunk_length = min(length,
|
||||
nvgpu_sgt_get_length(sgt, sgl) - space_to_skip);
|
||||
|
||||
@@ -629,7 +629,7 @@ static int __nvgpu_gmmu_update_page_table(struct vm_gk20a *vm,
|
||||
sgt ? "MAP" : "UNMAP",
|
||||
virt_addr,
|
||||
length,
|
||||
sgt ? nvgpu_sgt_get_phys(sgt, sgt->sgl) : 0,
|
||||
sgt ? nvgpu_sgt_get_phys(g, sgt, sgt->sgl) : 0,
|
||||
space_to_skip,
|
||||
page_size >> 10,
|
||||
nvgpu_gmmu_perm_str(attrs->rw_flag),
|
||||
|
||||
Reference in New Issue
Block a user