summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/gr_gm20b.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/gr_gm20b.c')
-rw-r--r--drivers/gpu/nvgpu/gm20b/gr_gm20b.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c
index 35bbe70c..dbe30f00 100644
--- a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c
@@ -824,7 +824,7 @@ static int gr_gm20b_alloc_gr_ctx(struct gk20a *g,
824 return err; 824 return err;
825 825
826 if (class == MAXWELL_COMPUTE_B) 826 if (class == MAXWELL_COMPUTE_B)
827 (*gr_ctx)->preempt_mode = NVGPU_GR_PREEMPTION_MODE_CTA; 827 (*gr_ctx)->compute_preempt_mode = NVGPU_COMPUTE_PREEMPTION_MODE_CTA;
828 828
829 gk20a_dbg_fn("done"); 829 gk20a_dbg_fn("done");
830 830
@@ -841,7 +841,7 @@ static void gr_gm20b_update_ctxsw_preemption_mode(struct gk20a *g,
841 841
842 gk20a_dbg_fn(""); 842 gk20a_dbg_fn("");
843 843
844 if (gr_ctx->preempt_mode == NVGPU_GR_PREEMPTION_MODE_CTA) { 844 if (gr_ctx->compute_preempt_mode == NVGPU_COMPUTE_PREEMPTION_MODE_CTA) {
845 gk20a_dbg_info("CTA: %x", cta_preempt_option); 845 gk20a_dbg_info("CTA: %x", cta_preempt_option);
846 gk20a_mem_wr32(ctx_ptr + ctxsw_prog_main_image_preemption_options_o(), 0, 846 gk20a_mem_wr32(ctx_ptr + ctxsw_prog_main_image_preemption_options_o(), 0,
847 cta_preempt_option); 847 cta_preempt_option);