diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/gr_gm20b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/gr_gm20b.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c index 4c2b00a8..3d99e94d 100644 --- a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c | |||
@@ -533,10 +533,15 @@ static int gr_gm20b_ctx_state_floorsweep(struct gk20a *g) | |||
533 | + gpc_offset + tpc_offset, | 533 | + gpc_offset + tpc_offset, |
534 | gr_gpc0_tpc0_pe_cfg_smid_value_f(sm_id)); | 534 | gr_gpc0_tpc0_pe_cfg_smid_value_f(sm_id)); |
535 | 535 | ||
536 | g->gr.sm_to_cluster[sm_id].tpc_index = tpc_index; | ||
537 | g->gr.sm_to_cluster[sm_id].gpc_index = gpc_index; | ||
538 | |||
536 | sm_id++; | 539 | sm_id++; |
537 | } | 540 | } |
538 | } | 541 | } |
539 | 542 | ||
543 | gr->no_of_sm = sm_id; | ||
544 | |||
540 | for (gpc_index = 0; gpc_index < gr->gpc_count; gpc_index++) | 545 | for (gpc_index = 0; gpc_index < gr->gpc_count; gpc_index++) |
541 | tpc_per_gpc |= gr->gpc_tpc_count[gpc_index] | 546 | tpc_per_gpc |= gr->gpc_tpc_count[gpc_index] |
542 | << (gr_pd_num_tpc_per_gpc__size_1_v() * gpc_index); | 547 | << (gr_pd_num_tpc_per_gpc__size_1_v() * gpc_index); |