drm/amdkfd: Set gws_mask to 64 bit 1s
authorOak Zeng <Oak.Zeng@amd.com>
Fri, 14 Jun 2019 15:55:50 +0000 (10:55 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 22 Jun 2019 14:34:14 +0000 (09:34 -0500)
Previous kfd doesn't use gws so this mask was set to 0.
Set it to 64 bit 1s because now kfd can use all 64 gws
resources.

Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c

index e83b7e9..584748c 100644 (file)
@@ -998,8 +998,8 @@ static int set_sched_resources(struct device_queue_manager *dqm)
 
                res.queue_mask |= (1ull << i);
        }
-       res.gws_mask = res.oac_mask = res.gds_heap_base =
-                                               res.gds_heap_size = 0;
+       res.gws_mask = ~0ull;
+       res.oac_mask = res.gds_heap_base = res.gds_heap_size = 0;
 
        pr_debug("Scheduling resources:\n"
                        "vmid mask: 0x%8X\n"