diff options
author | Leonid Moiseichuk <lmoiseichuk@nvidia.com> | 2015-09-02 03:41:23 -0400 |
---|---|---|
committer | Deepak Nibade <dnibade@nvidia.com> | 2016-12-27 04:52:08 -0500 |
commit | 177a9716e2324f428d3aa72b427461228c06bd7e (patch) | |
tree | 88438e805c13858f2558c403de4d916eb6c9b530 /drivers | |
parent | 0b0ce7de093facfcd2e56ba6f47faef6a8ab025a (diff) |
gpu: nvgpu: enabling cyclestats for gp10b
Enabling cyclestats and cyclestats snapshot support for gp10b (t186) devices.
Bug 1674079
Change-Id: I2e14801de3c61d180630bb9dcd2c607749814893
Signed-off-by: Leonid Moiseichuk <lmoiseichuk@nvidia.com>
Reviewed-on: http://git-master/r/792953
Reviewed-on: http://git-master/r/806190
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/gr_gp10b.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c index dff8adae..c339b14d 100644 --- a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c | |||
@@ -977,6 +977,18 @@ static int gr_gp10b_init_fs_state(struct gk20a *g) | |||
977 | return gr_gm20b_ctx_state_floorsweep(g); | 977 | return gr_gm20b_ctx_state_floorsweep(g); |
978 | } | 978 | } |
979 | 979 | ||
980 | static void gr_gp10b_init_cyclestats(struct gk20a *g) | ||
981 | { | ||
982 | #if defined(CONFIG_GK20A_CYCLE_STATS) | ||
983 | g->gpu_characteristics.flags |= | ||
984 | NVGPU_GPU_FLAGS_SUPPORT_CYCLE_STATS; | ||
985 | g->gpu_characteristics.flags |= | ||
986 | NVGPU_GPU_FLAGS_SUPPORT_CYCLE_STATS_SNAPSHOT; | ||
987 | #else | ||
988 | (void)g; | ||
989 | #endif | ||
990 | } | ||
991 | |||
980 | void gp10b_init_gr(struct gpu_ops *gops) | 992 | void gp10b_init_gr(struct gpu_ops *gops) |
981 | { | 993 | { |
982 | gm20b_init_gr(gops); | 994 | gm20b_init_gr(gops); |
@@ -1004,4 +1016,5 @@ void gp10b_init_gr(struct gpu_ops *gops) | |||
1004 | gr_gp10b_update_ctxsw_preemption_mode; | 1016 | gr_gp10b_update_ctxsw_preemption_mode; |
1005 | gops->gr.dump_gr_regs = gr_gp10b_dump_gr_status_regs; | 1017 | gops->gr.dump_gr_regs = gr_gp10b_dump_gr_status_regs; |
1006 | gops->gr.wait_empty = gr_gp10b_wait_empty; | 1018 | gops->gr.wait_empty = gr_gp10b_wait_empty; |
1019 | gops->gr.init_cyclestats = gr_gp10b_init_cyclestats; | ||
1007 | } | 1020 | } |