diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/gr_gp10b.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c index 4a8a1d8e..339f0413 100644 --- a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c | |||
@@ -2077,7 +2077,15 @@ static int gr_gp10b_set_preemption_mode(struct channel_gk20a *ch, | |||
2077 | 2077 | ||
2078 | if (g->ops.gr.update_ctxsw_preemption_mode) { | 2078 | if (g->ops.gr.update_ctxsw_preemption_mode) { |
2079 | g->ops.gr.update_ctxsw_preemption_mode(ch->g, ch_ctx, mem); | 2079 | g->ops.gr.update_ctxsw_preemption_mode(ch->g, ch_ctx, mem); |
2080 | |||
2081 | err = gr_gk20a_ctx_patch_write_begin(g, ch_ctx); | ||
2082 | if (err) { | ||
2083 | gk20a_err(dev_from_gk20a(g), | ||
2084 | "can't map patch context"); | ||
2085 | goto enable_ch; | ||
2086 | } | ||
2080 | g->ops.gr.commit_global_cb_manager(g, ch, true); | 2087 | g->ops.gr.commit_global_cb_manager(g, ch, true); |
2088 | gr_gk20a_ctx_patch_write_end(g, ch_ctx); | ||
2081 | } | 2089 | } |
2082 | 2090 | ||
2083 | enable_ch: | 2091 | enable_ch: |