diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/gr_gp10b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/gr_gp10b.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c index 24b22a7d..c9b2f859 100644 --- a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c | |||
@@ -1224,7 +1224,7 @@ void gr_gp10b_update_ctxsw_preemption_mode(struct gk20a *g, | |||
1224 | gr_ctx->t18x.preempt_ctxsw_buffer.gpu_va); | 1224 | gr_ctx->t18x.preempt_ctxsw_buffer.gpu_va); |
1225 | } | 1225 | } |
1226 | 1226 | ||
1227 | err = gr_gk20a_ctx_patch_write_begin(g, ch_ctx); | 1227 | err = gr_gk20a_ctx_patch_write_begin(g, ch_ctx, true); |
1228 | if (err) { | 1228 | if (err) { |
1229 | nvgpu_err(g, "can't map patch context"); | 1229 | nvgpu_err(g, "can't map patch context"); |
1230 | goto out; | 1230 | goto out; |
@@ -1277,7 +1277,7 @@ void gr_gp10b_update_ctxsw_preemption_mode(struct gk20a *g, | |||
1277 | cbes_reserve), | 1277 | cbes_reserve), |
1278 | true); | 1278 | true); |
1279 | 1279 | ||
1280 | gr_gk20a_ctx_patch_write_end(g, ch_ctx); | 1280 | gr_gk20a_ctx_patch_write_end(g, ch_ctx, true); |
1281 | } | 1281 | } |
1282 | 1282 | ||
1283 | out: | 1283 | out: |
@@ -2254,13 +2254,13 @@ int gr_gp10b_set_preemption_mode(struct channel_gk20a *ch, | |||
2254 | g->ops.gr.update_ctxsw_preemption_mode(ch->g, | 2254 | g->ops.gr.update_ctxsw_preemption_mode(ch->g, |
2255 | ch_ctx, mem); | 2255 | ch_ctx, mem); |
2256 | 2256 | ||
2257 | err = gr_gk20a_ctx_patch_write_begin(g, ch_ctx); | 2257 | err = gr_gk20a_ctx_patch_write_begin(g, ch_ctx, true); |
2258 | if (err) { | 2258 | if (err) { |
2259 | nvgpu_err(g, "can't map patch context"); | 2259 | nvgpu_err(g, "can't map patch context"); |
2260 | goto enable_ch; | 2260 | goto enable_ch; |
2261 | } | 2261 | } |
2262 | g->ops.gr.commit_global_cb_manager(g, ch, true); | 2262 | g->ops.gr.commit_global_cb_manager(g, ch, true); |
2263 | gr_gk20a_ctx_patch_write_end(g, ch_ctx); | 2263 | gr_gk20a_ctx_patch_write_end(g, ch_ctx, true); |
2264 | } | 2264 | } |
2265 | 2265 | ||
2266 | enable_ch: | 2266 | enable_ch: |