summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2015-03-11 18:55:14 -0400
committerDeepak Nibade <dnibade@nvidia.com>2016-12-27 04:52:04 -0500
commit208e2c33534eebf48239df04b0a25d3f82e681d0 (patch)
tree803ad9e1a161fb19861594da772765f669c9ff9f /drivers
parent6539c538c1d1fcd0227096959790c625d28e791a (diff)
gpu: nvgpu: gp10b: Fix offset for preemption ptr
Offset for preemption pointer was calculated incorrectly. Bug 1617214 Change-Id: I9c1a9ae24dcd523f4ae17eae0a5b07831839fadb Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/716528
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/nvgpu/gp10b/gr_gp10b.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c
index 306c4223..84faa252 100644
--- a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c
+++ b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c
@@ -642,7 +642,7 @@ static void gr_gp10b_update_ctxsw_preemption_mode(struct gk20a *g,
642 u32 size; 642 u32 size;
643 u32 cbes_reserve; 643 u32 cbes_reserve;
644 644
645 gk20a_mem_wr32(ctx_ptr, ctxsw_prog_main_image_full_preemption_ptr_o(), 645 gk20a_mem_wr32(ctx_ptr + ctxsw_prog_main_image_full_preemption_ptr_o(), 0,
646 gr_ctx->t18x.preempt_ctxsw_buffer.gpu_va >> 8); 646 gr_ctx->t18x.preempt_ctxsw_buffer.gpu_va >> 8);
647 647
648 err = gr_gk20a_ctx_patch_write_begin(g, ch_ctx); 648 err = gr_gk20a_ctx_patch_write_begin(g, ch_ctx);