summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gr_gk20a.h
diff options
context:
space:
mode:
authorseshendra Gadagottu <sgadagottu@nvidia.com>2016-09-26 11:50:23 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2016-11-03 12:14:56 -0400
commitd37a573c4536c153877b201e7b98f5247a16cfed (patch)
treedd9571ff6100ead57589e43aa038b7224f04e420 /drivers/gpu/nvgpu/gk20a/gr_gk20a.h
parent2c59031a195a36bb2986a8fce35ca2f9ce242eff (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.h8
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
176struct sm_info { 176struct 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);
662int gr_gk20a_commit_global_timeslice(struct gk20a *g, 664int gr_gk20a_commit_global_timeslice(struct gk20a *g,
663 struct channel_gk20a *c, bool patch); 665 struct channel_gk20a *c, bool patch);
664 666
667void gr_gk20a_init_sm_id_table(struct gk20a *g);
668
665static inline const char *gr_gk20a_graphics_preempt_mode_name(u32 graphics_preempt_mode) 669static 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) {