summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/gr_gp10b.c
diff options
context:
space:
mode:
authorSandeep Shinde <sashinde@nvidia.com>2017-03-01 08:59:49 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-03-02 14:44:47 -0500
commitee93b209634a60d79fb4dbd05362b01b8d389603 (patch)
treee616ed19a522b0b0cdb4d85d870426e8eb201c92 /drivers/gpu/nvgpu/gp10b/gr_gp10b.c
parentb71fa9289da8da9c5d20e04abaa90870de8b4430 (diff)
gpu: nvgpu: Allow compute preemption mode on PASCAL_A class
Remove restriction of setting compute preemption mode for channels created with PASCAL_COMPUTE_A class only and allow it to be set for PASCAL_A class too. Also print compute preemption mode during channel closing. Bug 200284575 Change-Id: I2de3b3acda128e91caa2ab0fd341915ce6e6520b Signed-off-by: Sandeep Shinde <sashinde@nvidia.com> Reviewed-on: http://git-master/r/1313286 Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: Donghan Ryu <dryu@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/gr_gp10b.c')
-rw-r--r--drivers/gpu/nvgpu/gp10b/gr_gp10b.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c
index da121b56..d084d5dc 100644
--- a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c
+++ b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c
@@ -964,7 +964,7 @@ static int gr_gp10b_set_ctxsw_preemption_mode(struct gk20a *g,
964 break; 964 break;
965 } 965 }
966 966
967 if (class == PASCAL_COMPUTE_A) { 967 if (class == PASCAL_COMPUTE_A || class == PASCAL_A) {
968 switch (compute_preempt_mode) { 968 switch (compute_preempt_mode) {
969 case NVGPU_COMPUTE_PREEMPTION_MODE_WFI: 969 case NVGPU_COMPUTE_PREEMPTION_MODE_WFI:
970 case NVGPU_COMPUTE_PREEMPTION_MODE_CTA: 970 case NVGPU_COMPUTE_PREEMPTION_MODE_CTA:
@@ -1079,6 +1079,10 @@ static void dump_ctx_switch_stats(struct gk20a *g, struct vm_gk20a *vm,
1079 "image gfx preemption option (GFXP is 1) %x\n", 1079 "image gfx preemption option (GFXP is 1) %x\n",
1080 gk20a_mem_rd(g, mem, 1080 gk20a_mem_rd(g, mem,
1081 ctxsw_prog_main_image_graphics_preemption_options_o())); 1081 ctxsw_prog_main_image_graphics_preemption_options_o()));
1082 gk20a_err(dev_from_gk20a(g),
1083 "image compute preemption option (CTA is 1) %x\n",
1084 gk20a_mem_rd(g, mem,
1085 ctxsw_prog_main_image_compute_preemption_options_o()));
1082 gk20a_mem_end(g, mem); 1086 gk20a_mem_end(g, mem);
1083} 1087}
1084 1088