Match RM.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
 {
        struct nvkm_device *device = gr->base.engine.subdev.device;
        const u32 magicgpc918 = DIV_ROUND_UP(0x00800000, gr->tpc_total);
-       const u8 tile_nr = ALIGN(gr->tpc_total, 32);
+       /*TODO: fill in litter vals for gf117-gm2xx */
+       const u8 tile_nr = !gr->func->gpc_nr ? ALIGN(gr->tpc_total, 32) :
+                          (gr->func->gpc_nr * gr->func->tpc_nr);
        u8 bank[GPC_MAX] = {}, gpc, i, j;
        u32 data;
 
 
 {
        struct nvkm_device *device = gr->base.engine.subdev.device;
        const u32 magicgpc918 = DIV_ROUND_UP(0x00800000, gr->tpc_total);
-       const u8 tile_nr = ALIGN(gr->tpc_total, 64);
+       const u8 tile_nr = gr->func->gpc_nr * gr->func->tpc_nr;
        u8 bank[GPC_MAX] = {}, gpc, i, j;
        u32 data;
 
        .fecs.reset = gf100_gr_fecs_reset,
        .rops = gm200_gr_rops,
        .gpc_nr = 6,
-       .tpc_nr = 5,
+       .tpc_nr = 6,
        .ppc_nr = 3,
        .grctx = &tu102_grctx,
        .zbc = &gp102_gr_zbc,