From 1eded552869f6957bec7695554752e26391daaee Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Fri, 13 Mar 2015 10:30:52 -0700 Subject: gpu: nvgpu: Use gk20a_mem_phys instead of sg_phys There were still a couple of places using sg_phys directly. Use new gk20a_mem_phys() to make the code shorter. Change-Id: I6eb9b14e0c14a27ec39bacd06ab24e31e99769ca Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/717502 --- drivers/gpu/nvgpu/gm20b/acr_gm20b.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/gm20b/acr_gm20b.c') diff --git a/drivers/gpu/nvgpu/gm20b/acr_gm20b.c b/drivers/gpu/nvgpu/gm20b/acr_gm20b.c index ecb0f8ab..02706bad 100644 --- a/drivers/gpu/nvgpu/gm20b/acr_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/acr_gm20b.c @@ -1041,7 +1041,7 @@ static int bl_bootstrap(struct pmu_gk20a *pmu, pwr_falcon_itfen_ctxen_enable_f()); gk20a_writel(g, pwr_pmu_new_instblk_r(), pwr_pmu_new_instblk_ptr_f( - sg_phys(mm->pmu.inst_block.sgt->sgl) >> 12) | + gk20a_mem_phys(&mm->pmu.inst_block) >> 12) | pwr_pmu_new_instblk_valid_f(1) | pwr_pmu_new_instblk_target_sys_coh_f()); -- cgit v1.2.2