summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu')
-rw-r--r--drivers/gpu/nvgpu/vgpu/gp10b/vgpu_gr_gp10b.c8
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 cac1db29..234d8a69 100644
--- a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_gr_gp10b.c
+++ b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_gr_gp10b.c
@@ -309,6 +309,7 @@ static int vgpu_gr_gp10b_set_preemption_mode(struct channel_gk20a *ch,
309 309
310static int vgpu_gr_gp10b_init_ctx_state(struct gk20a *g) 310static int vgpu_gr_gp10b_init_ctx_state(struct gk20a *g)
311{ 311{
312 struct vgpu_priv_data *priv = vgpu_get_priv_data(g);
312 int err; 313 int err;
313 314
314 gk20a_dbg_fn(""); 315 gk20a_dbg_fn("");
@@ -317,11 +318,10 @@ static int vgpu_gr_gp10b_init_ctx_state(struct gk20a *g)
317 if (err) 318 if (err)
318 return err; 319 return err;
319 320
320 vgpu_get_attribute(vgpu_get_handle(g), 321 g->gr.t18x.ctx_vars.preempt_image_size =
321 TEGRA_VGPU_ATTRIB_PREEMPT_CTX_SIZE, 322 priv->constants.preempt_ctx_size;
322 &g->gr.t18x.ctx_vars.preempt_image_size);
323 if (!g->gr.t18x.ctx_vars.preempt_image_size) 323 if (!g->gr.t18x.ctx_vars.preempt_image_size)
324 return -ENXIO; 324 return -EINVAL;
325 325
326 return 0; 326 return 0;
327} 327}