diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gv100/gr_gv100.c')
-rw-r--r-- | drivers/gpu/nvgpu/gv100/gr_gv100.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/gv100/gr_gv100.c b/drivers/gpu/nvgpu/gv100/gr_gv100.c index 4b2038ba..8a4b88b4 100644 --- a/drivers/gpu/nvgpu/gv100/gr_gv100.c +++ b/drivers/gpu/nvgpu/gv100/gr_gv100.c | |||
@@ -251,12 +251,19 @@ void gr_gv100_init_sm_id_table(struct gk20a *g) | |||
251 | 251 | ||
252 | for (tpc = 0, sm_id = 0; sm_id < num_sm; tpc++, sm_id += sm_per_tpc) { | 252 | for (tpc = 0, sm_id = 0; sm_id < num_sm; tpc++, sm_id += sm_per_tpc) { |
253 | for (sm = 0; sm < sm_per_tpc; sm++) { | 253 | for (sm = 0; sm < sm_per_tpc; sm++) { |
254 | g->gr.sm_to_cluster[sm_id + sm].gpc_index = | 254 | u32 index = sm_id + sm; |
255 | gpc_table[tpc]; | 255 | |
256 | g->gr.sm_to_cluster[sm_id + sm].tpc_index = | 256 | g->gr.sm_to_cluster[index].gpc_index = gpc_table[tpc]; |
257 | tpc_table[tpc]; | 257 | g->gr.sm_to_cluster[index].tpc_index = tpc_table[tpc]; |
258 | g->gr.sm_to_cluster[sm_id + sm].sm_index = sm; | 258 | g->gr.sm_to_cluster[index].sm_index = sm; |
259 | g->gr.sm_to_cluster[sm_id + sm].global_tpc_index = tpc; | 259 | g->gr.sm_to_cluster[index].global_tpc_index = tpc; |
260 | nvgpu_log_info(g, | ||
261 | "gpc : %d tpc %d sm_index %d global_index: %d", | ||
262 | g->gr.sm_to_cluster[index].gpc_index, | ||
263 | g->gr.sm_to_cluster[index].tpc_index, | ||
264 | g->gr.sm_to_cluster[index].sm_index, | ||
265 | g->gr.sm_to_cluster[index].global_tpc_index); | ||
266 | |||
260 | } | 267 | } |
261 | } | 268 | } |
262 | 269 | ||