summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/mm/gmmu.c
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2017-07-03 07:46:48 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-07-07 10:05:39 -0400
commit40c19c67d043e750cec4a8c33695e8cbe01bd639 (patch)
tree4bb193ed4a162964aa8fb5ff618854b5f8ffbbff /drivers/gpu/nvgpu/common/mm/gmmu.c
parentd479a781c68ab20ff27ae6d1a6eb6e15eb51fb88 (diff)
gpu: nvgpu: support platform specific physical address translation
On some GPUs certain physical address bits have special meaning. This patch adds support for setting those bits based on the GMMU attributes struct. Jira GPUT19X-10 Bug 200279508 Change-Id: I32b8a028be7fd62af06a60c393a8c9251de0ef3c Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master/r/1512600 GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/mm/gmmu.c')
-rw-r--r--drivers/gpu/nvgpu/common/mm/gmmu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/mm/gmmu.c b/drivers/gpu/nvgpu/common/mm/gmmu.c
index 55fbcd3f..2abe87c9 100644
--- a/drivers/gpu/nvgpu/common/mm/gmmu.c
+++ b/drivers/gpu/nvgpu/common/mm/gmmu.c
@@ -404,8 +404,9 @@ static int __set_pd_level(struct vm_gk20a *vm,
404 * to be the table of PDEs. When the next level is PTEs the 404 * to be the table of PDEs. When the next level is PTEs the
405 * target addr is the real physical address we are aiming for. 405 * target addr is the real physical address we are aiming for.
406 */ 406 */
407 target_addr = next_pd ? nvgpu_pde_phys_addr(g, next_pd) : 407 target_addr = next_pd ?
408 phys_addr; 408 nvgpu_pde_phys_addr(g, next_pd) :
409 g->ops.mm.gpu_phys_addr(g, attrs, phys_addr);
409 410
410 l->update_entry(vm, l, 411 l->update_entry(vm, l,
411 pd, pd_idx, 412 pd, pd_idx,