diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/gv100/hal_gv100.c | 2 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/gr_gv11b.c | 13 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/gr_gv11b.h | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/hal_gv11b.c | 2 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c | 2 |
5 files changed, 3 insertions, 17 deletions
diff --git a/drivers/gpu/nvgpu/gv100/hal_gv100.c b/drivers/gpu/nvgpu/gv100/hal_gv100.c index 1ae424df..e8be1a43 100644 --- a/drivers/gpu/nvgpu/gv100/hal_gv100.c +++ b/drivers/gpu/nvgpu/gv100/hal_gv100.c | |||
@@ -316,7 +316,7 @@ static const struct gpu_ops gv100_ops = { | |||
316 | .get_max_fbps_count = gr_gm20b_get_max_fbps_count, | 316 | .get_max_fbps_count = gr_gm20b_get_max_fbps_count, |
317 | .init_sm_dsm_reg_info = gv11b_gr_init_sm_dsm_reg_info, | 317 | .init_sm_dsm_reg_info = gv11b_gr_init_sm_dsm_reg_info, |
318 | .wait_empty = gr_gv11b_wait_empty, | 318 | .wait_empty = gr_gv11b_wait_empty, |
319 | .init_cyclestats = gr_gv11b_init_cyclestats, | 319 | .init_cyclestats = gr_gm20b_init_cyclestats, |
320 | .set_sm_debug_mode = gv11b_gr_set_sm_debug_mode, | 320 | .set_sm_debug_mode = gv11b_gr_set_sm_debug_mode, |
321 | .enable_cde_in_fecs = gr_gm20b_enable_cde_in_fecs, | 321 | .enable_cde_in_fecs = gr_gm20b_enable_cde_in_fecs, |
322 | .bpt_reg_info = gv11b_gr_bpt_reg_info, | 322 | .bpt_reg_info = gv11b_gr_bpt_reg_info, |
diff --git a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c index fc894908..59a04d2c 100644 --- a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c | |||
@@ -1684,19 +1684,6 @@ void gr_gv11b_commit_global_attrib_cb(struct gk20a *g, | |||
1684 | gr_gpcs_tpcs_tex_rm_cb_1_valid_true_f(), patch); | 1684 | gr_gpcs_tpcs_tex_rm_cb_1_valid_true_f(), patch); |
1685 | } | 1685 | } |
1686 | 1686 | ||
1687 | |||
1688 | void gr_gv11b_init_cyclestats(struct gk20a *g) | ||
1689 | { | ||
1690 | #if defined(CONFIG_GK20A_CYCLE_STATS) | ||
1691 | g->gpu_characteristics.flags |= | ||
1692 | NVGPU_GPU_FLAGS_SUPPORT_CYCLE_STATS; | ||
1693 | g->gpu_characteristics.flags |= | ||
1694 | NVGPU_GPU_FLAGS_SUPPORT_CYCLE_STATS_SNAPSHOT; | ||
1695 | #else | ||
1696 | (void)g; | ||
1697 | #endif | ||
1698 | } | ||
1699 | |||
1700 | void gr_gv11b_set_gpc_tpc_mask(struct gk20a *g, u32 gpc_index) | 1687 | void gr_gv11b_set_gpc_tpc_mask(struct gk20a *g, u32 gpc_index) |
1701 | { | 1688 | { |
1702 | #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 4, 0) | 1689 | #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 4, 0) |
diff --git a/drivers/gpu/nvgpu/gv11b/gr_gv11b.h b/drivers/gpu/nvgpu/gv11b/gr_gv11b.h index e469d142..71975e24 100644 --- a/drivers/gpu/nvgpu/gv11b/gr_gv11b.h +++ b/drivers/gpu/nvgpu/gv11b/gr_gv11b.h | |||
@@ -124,7 +124,6 @@ int gr_gv11b_wait_empty(struct gk20a *g, unsigned long duration_ms, | |||
124 | void gr_gv11b_commit_global_attrib_cb(struct gk20a *g, | 124 | void gr_gv11b_commit_global_attrib_cb(struct gk20a *g, |
125 | struct channel_ctx_gk20a *ch_ctx, | 125 | struct channel_ctx_gk20a *ch_ctx, |
126 | u64 addr, bool patch); | 126 | u64 addr, bool patch); |
127 | void gr_gv11b_init_cyclestats(struct gk20a *g); | ||
128 | void gr_gv11b_set_gpc_tpc_mask(struct gk20a *g, u32 gpc_index); | 127 | void gr_gv11b_set_gpc_tpc_mask(struct gk20a *g, u32 gpc_index); |
129 | void gr_gv11b_get_access_map(struct gk20a *g, | 128 | void gr_gv11b_get_access_map(struct gk20a *g, |
130 | u32 **whitelist, int *num_entries); | 129 | u32 **whitelist, int *num_entries); |
diff --git a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c index 8e4cdab8..400c2ad0 100644 --- a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c | |||
@@ -280,7 +280,7 @@ static const struct gpu_ops gv11b_ops = { | |||
280 | .get_max_fbps_count = gr_gm20b_get_max_fbps_count, | 280 | .get_max_fbps_count = gr_gm20b_get_max_fbps_count, |
281 | .init_sm_dsm_reg_info = gv11b_gr_init_sm_dsm_reg_info, | 281 | .init_sm_dsm_reg_info = gv11b_gr_init_sm_dsm_reg_info, |
282 | .wait_empty = gr_gv11b_wait_empty, | 282 | .wait_empty = gr_gv11b_wait_empty, |
283 | .init_cyclestats = gr_gv11b_init_cyclestats, | 283 | .init_cyclestats = gr_gm20b_init_cyclestats, |
284 | .set_sm_debug_mode = gv11b_gr_set_sm_debug_mode, | 284 | .set_sm_debug_mode = gv11b_gr_set_sm_debug_mode, |
285 | .enable_cde_in_fecs = gr_gm20b_enable_cde_in_fecs, | 285 | .enable_cde_in_fecs = gr_gm20b_enable_cde_in_fecs, |
286 | .bpt_reg_info = gv11b_gr_bpt_reg_info, | 286 | .bpt_reg_info = gv11b_gr_bpt_reg_info, |
diff --git a/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c b/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c index 7f6df820..80d0ae54 100644 --- a/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c +++ b/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c | |||
@@ -162,7 +162,7 @@ static const struct gpu_ops vgpu_gv11b_ops = { | |||
162 | .get_max_fbps_count = vgpu_gr_get_max_fbps_count, | 162 | .get_max_fbps_count = vgpu_gr_get_max_fbps_count, |
163 | .init_sm_dsm_reg_info = gv11b_gr_init_sm_dsm_reg_info, | 163 | .init_sm_dsm_reg_info = gv11b_gr_init_sm_dsm_reg_info, |
164 | .wait_empty = gr_gv11b_wait_empty, | 164 | .wait_empty = gr_gv11b_wait_empty, |
165 | .init_cyclestats = gr_gv11b_init_cyclestats, | 165 | .init_cyclestats = vgpu_gr_gm20b_init_cyclestats, |
166 | .set_sm_debug_mode = vgpu_gr_set_sm_debug_mode, | 166 | .set_sm_debug_mode = vgpu_gr_set_sm_debug_mode, |
167 | .enable_cde_in_fecs = gr_gm20b_enable_cde_in_fecs, | 167 | .enable_cde_in_fecs = gr_gm20b_enable_cde_in_fecs, |
168 | .bpt_reg_info = gv11b_gr_bpt_reg_info, | 168 | .bpt_reg_info = gv11b_gr_bpt_reg_info, |