]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu/gfx9: wait for reset done before remap
authorJiadong Zhu <Jiadong.Zhu@amd.com>
Tue, 2 Jul 2024 01:03:49 +0000 (09:03 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 16 Aug 2024 18:18:06 +0000 (14:18 -0400)
commitfdbd69486b468e4963b4ef9f76901d3788252dd5
treeab640cbc610ea03841e8a93faec65d477e14ecb9
parentb5e1a3874fe3cde73a4b02870bf3e8fa43777c5c
drm/amdgpu/gfx9: wait for reset done before remap

There is a racing condition that cp firmware modifies
MQD in reset sequence after driver updates it for
remapping. We have to wait till CP_HQD_ACTIVE becoming
false then remap the queue.

v2: fix KIQ locking (Alex)
v3: fix KIQ locking harder

Acked-by: Vitaly Prosyak <vitaly.prosyak@amd.com>
Signed-off-by: Jiadong Zhu <Jiadong.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c