]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu/gfx_9.4.3: wait for reset done before remap
authorJiadong Zhu <Jiadong.Zhu@amd.com>
Fri, 28 Jun 2024 03:48:22 +0000 (11:48 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 16 Aug 2024 18:18:22 +0000 (14:18 -0400)
commit4c953e53cc34f8601b7b7c6286c65322452d35fe
tree863c53c18d50c28071e51ca40c0d65703b2ad96f
parent6f38589e170f7649bb4b5efbff6b681c31433440
drm/amdgpu/gfx_9.4.3: 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_4_3.c