summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu/gm20b/vgpu_gr_gm20b.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/gm20b/vgpu_gr_gm20b.c')
-rw-r--r--drivers/gpu/nvgpu/vgpu/gm20b/vgpu_gr_gm20b.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/gm20b/vgpu_gr_gm20b.c b/drivers/gpu/nvgpu/vgpu/gm20b/vgpu_gr_gm20b.c
index fca6525a..0e440241 100644
--- a/drivers/gpu/nvgpu/vgpu/gm20b/vgpu_gr_gm20b.c
+++ b/drivers/gpu/nvgpu/vgpu/gm20b/vgpu_gr_gm20b.c
@@ -35,11 +35,10 @@ void vgpu_gr_gm20b_init_cyclestats(struct gk20a *g)
35 /* cyclestats not supported on vgpu */ 35 /* cyclestats not supported on vgpu */
36 __nvgpu_set_enabled(g, NVGPU_SUPPORT_CYCLE_STATS, false); 36 __nvgpu_set_enabled(g, NVGPU_SUPPORT_CYCLE_STATS, false);
37 37
38 g->gpu_characteristics.max_css_buffer_size = 38 g->gr.max_css_buffer_size = vgpu_css_get_buffer_size(g);
39 vgpu_css_get_buffer_size(g);
40 39
41 /* snapshots not supported if the buffer size is 0 */ 40 /* snapshots not supported if the buffer size is 0 */
42 if (g->gpu_characteristics.max_css_buffer_size == 0) 41 if (g->gr.max_css_buffer_size == 0)
43 snapshots_supported = false; 42 snapshots_supported = false;
44 43
45 __nvgpu_set_enabled(g, NVGPU_SUPPORT_CYCLE_STATS_SNAPSHOT, 44 __nvgpu_set_enabled(g, NVGPU_SUPPORT_CYCLE_STATS_SNAPSHOT,