diff options
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/gr_gm20b.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c index 3b0a399d..84b36232 100644 --- a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c | |||
@@ -586,7 +586,7 @@ static int gr_gm20b_load_smid_config(struct gk20a *g) | |||
586 | gr_cwd_gpc_tpc_id_tpc0_s(); | 586 | gr_cwd_gpc_tpc_id_tpc0_s(); |
587 | 587 | ||
588 | for (j = 0; j < 4; j++) { | 588 | for (j = 0; j < 4; j++) { |
589 | u32 sm_id = (i / 4) + j; | 589 | u32 sm_id = (i * 4) + j; |
590 | u32 bits; | 590 | u32 bits; |
591 | 591 | ||
592 | if (sm_id >= g->gr.tpc_count) | 592 | if (sm_id >= g->gr.tpc_count) |