summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/gr_gp10b.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/gr_gp10b.c')
-rw-r--r--drivers/gpu/nvgpu/gp10b/gr_gp10b.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c
index e3d4b973..271a6d0c 100644
--- a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c
+++ b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c
@@ -571,11 +571,12 @@ int gr_gp10b_alloc_gr_ctx(struct gk20a *g,
571 (*gr_ctx)->preempt_mode = flags; 571 (*gr_ctx)->preempt_mode = flags;
572 } 572 }
573 573
574 if (class == PASCAL_COMPUTE_A) 574 if (class == PASCAL_COMPUTE_A) {
575 if (flags == NVGPU_GR_PREEMPTION_MODE_CILP) 575 if (flags == NVGPU_GR_PREEMPTION_MODE_CILP)
576 (*gr_ctx)->preempt_mode = NVGPU_GR_PREEMPTION_MODE_CILP; 576 (*gr_ctx)->preempt_mode = NVGPU_GR_PREEMPTION_MODE_CILP;
577 else 577 else
578 (*gr_ctx)->preempt_mode = NVGPU_GR_PREEMPTION_MODE_CTA; 578 (*gr_ctx)->preempt_mode = NVGPU_GR_PREEMPTION_MODE_CTA;
579 }
579 580
580 gk20a_dbg_fn("done"); 581 gk20a_dbg_fn("done");
581 582