summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
index ff81e380..d0c4dec7 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
@@ -6703,9 +6703,13 @@ static int gr_gk20a_find_priv_offset_in_ext_buffer(struct gk20a *g,
6703 6703
6704 gk20a_dbg_info(" gpc = %d tpc = %d", 6704 gk20a_dbg_info(" gpc = %d tpc = %d",
6705 gpc_num, tpc_num); 6705 gpc_num, tpc_num);
6706 } else if ((g->ops.gr.is_etpc_addr) &&
6707 g->ops.gr.is_etpc_addr(g, addr)) {
6708 g->ops.gr.get_egpc_etpc_num(g, addr, &gpc_num, &tpc_num);
6709 gpc_base = g->ops.gr.get_egpc_base(g);
6706 } else { 6710 } else {
6707 gk20a_dbg(gpu_dbg_fn | gpu_dbg_gpu_dbg, 6711 gk20a_dbg(gpu_dbg_fn | gpu_dbg_gpu_dbg,
6708 "extended region has tpc reg only"); 6712 "does not exist in extended region");
6709 return -EINVAL; 6713 return -EINVAL;
6710 } 6714 }
6711 6715