diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/gr_gm20b.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c index 6c7831d5..17b4b8ea 100644 --- a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c | |||
@@ -1040,6 +1040,18 @@ static u32 gr_gm20b_get_max_fbps_count(struct gk20a *g) | |||
1040 | return max_fbps_count; | 1040 | return max_fbps_count; |
1041 | } | 1041 | } |
1042 | 1042 | ||
1043 | static void gr_gm20b_init_cyclestats(struct gk20a *g) | ||
1044 | { | ||
1045 | #if defined(CONFIG_GK20A_CYCLE_STATS) | ||
1046 | g->gpu_characteristics.flags |= | ||
1047 | NVGPU_GPU_FLAGS_SUPPORT_CYCLE_STATS; | ||
1048 | g->gpu_characteristics.flags |= | ||
1049 | NVGPU_GPU_FLAGS_SUPPORT_CYCLE_STATS_SNAPSHOT; | ||
1050 | #else | ||
1051 | (void)g; | ||
1052 | #endif | ||
1053 | } | ||
1054 | |||
1043 | void gm20b_init_gr(struct gpu_ops *gops) | 1055 | void gm20b_init_gr(struct gpu_ops *gops) |
1044 | { | 1056 | { |
1045 | gops->gr.init_gpc_mmu = gr_gm20b_init_gpc_mmu; | 1057 | gops->gr.init_gpc_mmu = gr_gm20b_init_gpc_mmu; |
@@ -1094,4 +1106,5 @@ void gm20b_init_gr(struct gpu_ops *gops) | |||
1094 | gops->gr.get_max_fbps_count = gr_gm20b_get_max_fbps_count; | 1106 | gops->gr.get_max_fbps_count = gr_gm20b_get_max_fbps_count; |
1095 | gops->gr.init_sm_dsm_reg_info = gr_gm20b_init_sm_dsm_reg_info; | 1107 | gops->gr.init_sm_dsm_reg_info = gr_gm20b_init_sm_dsm_reg_info; |
1096 | gops->gr.wait_empty = gr_gk20a_wait_idle; | 1108 | gops->gr.wait_empty = gr_gk20a_wait_idle; |
1109 | gops->gr.init_cyclestats = gr_gm20b_init_cyclestats; | ||
1097 | } | 1110 | } |