summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/nvgpu/gv11b/gr_gv11b.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c
index cb9c1902..ad8e4eff 100644
--- a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c
@@ -998,6 +998,11 @@ static void gr_gv11b_update_ctxsw_preemption_mode(struct gk20a *g,
998 gr_ctx->t18x.preempt_ctxsw_buffer.gpu_va >> 8); 998 gr_ctx->t18x.preempt_ctxsw_buffer.gpu_va >> 8);
999 999
1000 err = gr_gk20a_ctx_patch_write_begin(g, ch_ctx); 1000 err = gr_gk20a_ctx_patch_write_begin(g, ch_ctx);
1001 if (err) {
1002 gk20a_err(dev_from_gk20a(g),
1003 "can't map patch context");
1004 goto out;
1005 }
1001 1006
1002 addr = (u64_lo32(gr_ctx->t18x.betacb_ctxsw_buffer.gpu_va) >> 1007 addr = (u64_lo32(gr_ctx->t18x.betacb_ctxsw_buffer.gpu_va) >>
1003 gr_gpcs_setup_attrib_cb_base_addr_39_12_align_bits_v()) | 1008 gr_gpcs_setup_attrib_cb_base_addr_39_12_align_bits_v()) |
@@ -1049,6 +1054,7 @@ static void gr_gv11b_update_ctxsw_preemption_mode(struct gk20a *g,
1049 gr_gk20a_ctx_patch_write_end(g, ch_ctx); 1054 gr_gk20a_ctx_patch_write_end(g, ch_ctx);
1050 } 1055 }
1051 1056
1057out:
1052 gk20a_dbg_fn("done"); 1058 gk20a_dbg_fn("done");
1053} 1059}
1054 1060