drm/amdkfd: Support chain runlists of XNACK+/XNACK-
authorAmber Lin <Amber.Lin@amd.com>
Tue, 29 Apr 2025 20:11:55 +0000 (16:11 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 16 May 2025 17:37:29 +0000 (13:37 -0400)
commite3d0870a90a8e3f63c486438ac6a77ab828f8d8d
tree193f29bf607acb6671f0d12eadbfb491d03a904e
parent9c16e1575842386d04449f479e90e35c940b341b
drm/amdkfd: Support chain runlists of XNACK+/XNACK-

If the MEC firmware supports chaining runlists of XNACK+/XNACK-
processes, set SQ_CONFIG1 chicken bit and SET_RESOURCES bit 28.

When the MEC/HWS supports it, KFD checks the XNACK+/XNACK- processes mix
happens or not. If it does, enter over-subscription.

Signed-off-by: Amber Lin <Amber.Lin@amd.com>
Reviewed-by: Philip Yang <Philip.Yang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
drivers/gpu/drm/amd/amdkfd/kfd_pm4_headers_ai.h