drm/amdkfd: Use KIQ to unmap HIQ
authorMukul Joshi <mukul.joshi@amd.com>
Wed, 28 Jun 2023 20:02:02 +0000 (16:02 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 7 Jul 2023 17:51:48 +0000 (13:51 -0400)
commit9041b53a59d77039c69fa61be8575fa232cd3bcd
treed01b50769857935503f2c47248c2d4f0ba168128
parent788dbb6b41c596d925d238c6acbb1cec611b353d
drm/amdkfd: Use KIQ to unmap HIQ

Currently, we unmap HIQ by directly writing to HQD
registers. This doesn't work for GFX9.4.3. Instead,
use KIQ to unmap HIQ, similar to how we use KIQ to
map HIQ. Using KIQ to unmap HIQ works for all GFX
series post GFXv9.

Signed-off-by: Mukul Joshi <mukul.joshi@amd.com>
Reviewed-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v11.c
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c