drm/amdkfd: fix cu mask for asics with wgps
authorJonathan Kim <jonathan.kim@amd.com>
Mon, 27 Jun 2022 01:35:10 +0000 (21:35 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Jun 2022 19:28:03 +0000 (15:28 -0400)
commitcff35798fad565b5f8bbf4ef84ac698270dcaf64
treef32c32d6091704d5d76b52fc83d129d271f72cbb
parent6a4a1f6054318cd3590562668798304b4351ef36
drm/amdkfd: fix cu mask for asics with wgps

GFX10 and up have work group processors (WGP) and WGP mode is the native
compile mode.

KFD and ROCr have no visibility into whether a dispatch is operating
in CU or WGP mode.

Enforce CU masking to be pairwise continguous in enablement and
round robin distribute CUs across the SEs in a pairwise manner to
assume WGP mode at all times.

Signed-off-by: Jonathan Kim <jonathan.kim@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_mqd_manager.c
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c