gpu: nvgpu: gp10b: Fix SM number when more than 4 TPCs

Use multiplication instead of division to come up with an SM id.

Change-Id: I01b76bf1ba5f64e34b6a283306fcd7687c1302ed
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1150600
This commit is contained in:
Terje Bergstrom
2016-05-19 11:45:06 -07:00
parent 72ae2dedf5
commit 9e908d2a8d

View File

@@ -586,7 +586,7 @@ static int gr_gm20b_load_smid_config(struct gk20a *g)
gr_cwd_gpc_tpc_id_tpc0_s();
for (j = 0; j < 4; j++) {
u32 sm_id = (i / 4) + j;
u32 sm_id = (i * 4) + j;
u32 bits;
if (sm_id >= g->gr.tpc_count)