diff options
author | seshendra Gadagottu <sgadagottu@nvidia.com> | 2016-09-26 11:50:23 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-11-03 12:14:56 -0400 |
commit | d37a573c4536c153877b201e7b98f5247a16cfed (patch) | |
tree | dd9571ff6100ead57589e43aa038b7224f04e420 /drivers/gpu/nvgpu/gk20a/gr_gk20a.h | |
parent | 2c59031a195a36bb2986a8fce35ca2f9ce242eff (diff) |
gpu: nvgpu: smid programming
Populate chip specific sm id table.
JIRA GV11B-21
Change-Id: I58869b2c3e55449a7d999ddf73d6eb7b359b2a07
Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/1227095
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
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) { |