diff options
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/gp10b/vgpu_gr_gp10b.c')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/gp10b/vgpu_gr_gp10b.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_gr_gp10b.c b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_gr_gp10b.c index 3023ef4b..08793e18 100644 --- a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_gr_gp10b.c +++ b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_gr_gp10b.c | |||
@@ -144,21 +144,21 @@ static int vgpu_gr_gp10b_alloc_gr_ctx(struct gk20a *g, | |||
144 | desc->gpu_va; | 144 | desc->gpu_va; |
145 | p->size[TEGRA_VGPU_GR_BIND_CTXSW_BUFFER_BETACB] = desc->size; | 145 | p->size[TEGRA_VGPU_GR_BIND_CTXSW_BUFFER_BETACB] = desc->size; |
146 | 146 | ||
147 | gr_ctx->preempt_mode = NVGPU_GR_PREEMPTION_MODE_GFXP; | 147 | gr_ctx->graphics_preempt_mode = NVGPU_GRAPHICS_PREEMPTION_MODE_GFXP; |
148 | p->mode = TEGRA_VGPU_GR_CTXSW_PREEMPTION_MODE_GFX_GFXP; | 148 | p->mode = TEGRA_VGPU_GR_CTXSW_PREEMPTION_MODE_GFX_GFXP; |
149 | } | 149 | } |
150 | 150 | ||
151 | if (class == PASCAL_COMPUTE_A) { | 151 | if (class == PASCAL_COMPUTE_A) { |
152 | if (flags & NVGPU_ALLOC_OBJ_FLAGS_CILP) { | 152 | if (flags & NVGPU_ALLOC_OBJ_FLAGS_CILP) { |
153 | gr_ctx->preempt_mode = NVGPU_GR_PREEMPTION_MODE_CILP; | 153 | gr_ctx->compute_preempt_mode = NVGPU_COMPUTE_PREEMPTION_MODE_CILP; |
154 | p->mode = TEGRA_VGPU_GR_CTXSW_PREEMPTION_MODE_COMPUTE_CILP; | 154 | p->mode = TEGRA_VGPU_GR_CTXSW_PREEMPTION_MODE_COMPUTE_CILP; |
155 | } else { | 155 | } else { |
156 | gr_ctx->preempt_mode = NVGPU_GR_PREEMPTION_MODE_CTA; | 156 | gr_ctx->compute_preempt_mode = NVGPU_COMPUTE_PREEMPTION_MODE_CTA; |
157 | p->mode = TEGRA_VGPU_GR_CTXSW_PREEMPTION_MODE_COMPUTE_CTA; | 157 | p->mode = TEGRA_VGPU_GR_CTXSW_PREEMPTION_MODE_COMPUTE_CTA; |
158 | } | 158 | } |
159 | } | 159 | } |
160 | 160 | ||
161 | if (gr_ctx->preempt_mode) { | 161 | if (gr_ctx->graphics_preempt_mode || gr_ctx->compute_preempt_mode) { |
162 | msg.cmd = TEGRA_VGPU_CMD_CHANNEL_BIND_GR_CTXSW_BUFFERS; | 162 | msg.cmd = TEGRA_VGPU_CMD_CHANNEL_BIND_GR_CTXSW_BUFFERS; |
163 | msg.handle = platform->virt_handle; | 163 | msg.handle = platform->virt_handle; |
164 | p->handle = gr_ctx->virt_ctx; | 164 | p->handle = gr_ctx->virt_ctx; |