diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h index e20207c5..1b7bc252 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h | |||
@@ -174,8 +174,10 @@ struct zbc_query_params { | |||
174 | }; | 174 | }; |
175 | 175 | ||
176 | struct sm_info { | 176 | struct sm_info { |
177 | u8 gpc_index; | 177 | u32 gpc_index; |
178 | u8 tpc_index; | 178 | u32 tpc_index; |
179 | u32 sm_index; | ||
180 | u32 global_tpc_index; | ||
179 | }; | 181 | }; |
180 | 182 | ||
181 | #if defined(CONFIG_GK20A_CYCLE_STATS) | 183 | #if defined(CONFIG_GK20A_CYCLE_STATS) |
@@ -662,6 +664,8 @@ void gk20a_gr_enable_gpc_exceptions(struct gk20a *g); | |||
662 | int gr_gk20a_commit_global_timeslice(struct gk20a *g, | 664 | int gr_gk20a_commit_global_timeslice(struct gk20a *g, |
663 | struct channel_gk20a *c, bool patch); | 665 | struct channel_gk20a *c, bool patch); |
664 | 666 | ||
667 | void gr_gk20a_init_sm_id_table(struct gk20a *g); | ||
668 | |||
665 | static inline const char *gr_gk20a_graphics_preempt_mode_name(u32 graphics_preempt_mode) | 669 | static inline const char *gr_gk20a_graphics_preempt_mode_name(u32 graphics_preempt_mode) |
666 | { | 670 | { |
667 | switch (graphics_preempt_mode) { | 671 | switch (graphics_preempt_mode) { |