summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b')
-rw-r--r--drivers/gpu/nvgpu/gm20b/gr_gm20b.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c
index afe60b98..61f608f4 100644
--- a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c
@@ -841,11 +841,11 @@ void gr_gm20b_detect_sm_arch(struct gk20a *g)
841{ 841{
842 u32 v = gk20a_readl(g, gr_gpc0_tpc0_sm_arch_r()); 842 u32 v = gk20a_readl(g, gr_gpc0_tpc0_sm_arch_r());
843 843
844 g->gpu_characteristics.sm_arch_spa_version = 844 g->params.sm_arch_spa_version =
845 gr_gpc0_tpc0_sm_arch_spa_version_v(v); 845 gr_gpc0_tpc0_sm_arch_spa_version_v(v);
846 g->gpu_characteristics.sm_arch_sm_version = 846 g->params.sm_arch_sm_version =
847 gr_gpc0_tpc0_sm_arch_sm_version_v(v); 847 gr_gpc0_tpc0_sm_arch_sm_version_v(v);
848 g->gpu_characteristics.sm_arch_warp_count = 848 g->params.sm_arch_warp_count =
849 gr_gpc0_tpc0_sm_arch_warp_count_v(v); 849 gr_gpc0_tpc0_sm_arch_warp_count_v(v);
850} 850}
851 851
@@ -1154,7 +1154,7 @@ void gr_gm20b_bpt_reg_info(struct gk20a *g, struct nvgpu_warpstate *w_state)
1154 1154
1155 /* for maxwell & kepler */ 1155 /* for maxwell & kepler */
1156 u32 numSmPerTpc = 1; 1156 u32 numSmPerTpc = 1;
1157 u32 numWarpPerTpc = g->gpu_characteristics.sm_arch_warp_count * numSmPerTpc; 1157 u32 numWarpPerTpc = g->params.sm_arch_warp_count * numSmPerTpc;
1158 1158
1159 for (sm_id = 0; sm_id < gr->no_of_sm; sm_id++) { 1159 for (sm_id = 0; sm_id < gr->no_of_sm; sm_id++) {
1160 gpc = g->gr.sm_to_cluster[sm_id].gpc_index; 1160 gpc = g->gr.sm_to_cluster[sm_id].gpc_index;