drm/amdgpu/gfx12: set UNORD_DISPATCH in compute MQDs
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 20 Aug 2024 17:11:22 +0000 (13:11 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 28 Aug 2024 14:04:53 +0000 (10:04 -0400)
commit959fc102ff4c39f5ab021da311c2cfd1d5602a0c
tree1986b5fcdb413a544d2709e3c992a47317cfb08b
parent37a45fb8db2619e03d26de59dbdb4ae2b0b02d7d
drm/amdgpu/gfx12: set UNORD_DISPATCH in compute MQDs

This needs to be set to 1 to avoid a potential deadlock in
the GC 10.x and newer.  On GC 9.x and older, this needs
to be set to 0. This can lead to hangs in some mixed
graphics and compute workloads.

Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3575
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 40318a2406bd426c6f4591269669c04e8eda571d)
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12.c