summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b/gr_gv11b.c
diff options
context:
space:
mode:
authorAlexander Lewkowicz <alewkowicz@nvidia.com>2017-08-04 18:51:42 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-08-15 11:20:25 -0400
commitbacbc7331223b0f80b36d7eff43009e5d7ac9aae (patch)
tree409c7bb77ab5018a77c6c7cf1ae3a7d5dbb7cd1b /drivers/gpu/nvgpu/gv11b/gr_gv11b.c
parent8ab6445df5b24c200ac4e346684119a85008e0e3 (diff)
gpu: nvgpu: gv11b: Fix computation of offset
When reading NV_PGRAPH_PRI_GPC0_TPC1_SM1_DBGR_STATUS0, we are not reading the expected value. The offset of the sm is not added to the PRI. JIRA GPUT19X-75 bug: ? Change-Id: I2eeb24505e928044c3a3331fa5f493a3f118a3c8 Signed-off-by: Alexander Lewkowicz <alewkowicz@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1533953 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/gr_gv11b.c')
-rw-r--r--drivers/gpu/nvgpu/gv11b/gr_gv11b.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c
index b95152eb..2b0e8be7 100644
--- a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c
@@ -3116,7 +3116,7 @@ static int gv11b_gr_wait_for_sm_lock_down(struct gk20a *g,
3116 u32 warp_esr, global_esr; 3116 u32 warp_esr, global_esr;
3117 struct nvgpu_timeout timeout; 3117 struct nvgpu_timeout timeout;
3118 u32 offset = gk20a_gr_gpc_offset(g, gpc) + 3118 u32 offset = gk20a_gr_gpc_offset(g, gpc) +
3119 gk20a_gr_tpc_offset(g, tpc); 3119 gk20a_gr_tpc_offset(g, tpc) +
3120 gv11b_gr_sm_offset(g, sm); 3120 gv11b_gr_sm_offset(g, sm);
3121 3121
3122 gk20a_dbg(gpu_dbg_intr | gpu_dbg_gpu_dbg, 3122 gk20a_dbg(gpu_dbg_intr | gpu_dbg_gpu_dbg,