Skip to content

Commit

Permalink
drm/amdkfd: Set gws_mask to 64 bit 1s
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Oak Zeng authored and Alex Deucher committed Jun 22, 2019
1 parent 9cbee6e commit d9848e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d9848e1

Please sign in to comment.