]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite0aa6f66c14b6811ca7ed6c7872c6b985bb3d58a
treef32c32d6091704d5d76b52fc83d129d271f72cbb
parent8db19ff1d9f9ba91c57897b49c46c638cd79bc93
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