summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/vgpu/gv11b/vgpu_fifo_gv11b.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/vgpu/gv11b/vgpu_fifo_gv11b.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/vgpu/gv11b/vgpu_fifo_gv11b.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/vgpu/gv11b/vgpu_fifo_gv11b.c b/drivers/gpu/nvgpu/common/linux/vgpu/gv11b/vgpu_fifo_gv11b.c
index 710e4b90..475036ee 100644
--- a/drivers/gpu/nvgpu/common/linux/vgpu/gv11b/vgpu_fifo_gv11b.c
+++ b/drivers/gpu/nvgpu/common/linux/vgpu/gv11b/vgpu_fifo_gv11b.c
@@ -30,7 +30,7 @@ int vgpu_gv11b_fifo_alloc_syncpt_buf(struct channel_gk20a *c,
30 struct gk20a *g = c->g; 30 struct gk20a *g = c->g;
31 struct vm_gk20a *vm = c->vm; 31 struct vm_gk20a *vm = c->vm;
32 struct tegra_vgpu_cmd_msg msg = {}; 32 struct tegra_vgpu_cmd_msg msg = {};
33 struct tegra_vgpu_map_syncpt_params *p = &msg.params.t19x.map_syncpt; 33 struct tegra_vgpu_map_syncpt_params *p = &msg.params.map_syncpt;
34 34
35 /* 35 /*
36 * Add ro map for complete sync point shim range in vm. 36 * Add ro map for complete sync point shim range in vm.
@@ -97,15 +97,9 @@ int vgpu_gv11b_fifo_alloc_syncpt_buf(struct channel_gk20a *c,
97int vgpu_gv11b_init_fifo_setup_hw(struct gk20a *g) 97int vgpu_gv11b_init_fifo_setup_hw(struct gk20a *g)
98{ 98{
99 struct fifo_gk20a *f = &g->fifo; 99 struct fifo_gk20a *f = &g->fifo;
100 int err; 100 struct vgpu_priv_data *priv = vgpu_get_priv_data(g);
101 101
102 err = vgpu_get_attribute(vgpu_get_handle(g), 102 f->t19x.max_subctx_count = priv->constants.max_subctx_count;
103 TEGRA_VGPU_ATTRIB_MAX_SUBCTX_COUNT,
104 &f->t19x.max_subctx_count);
105 if (err) {
106 nvgpu_err(g, "get max_subctx_count failed %d", err);
107 return err;
108 }
109 103
110 return 0; 104 return 0;
111} 105}