drm/amdgpu/gfx11: wait for reset done before remap
authorJiadong Zhu <Jiadong.Zhu@amd.com>
Tue, 2 Jul 2024 02:01:21 +0000 (10:01 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 Sep 2024 15:40:34 +0000 (11:40 -0400)
commita10c93931b61b22ff6601f74192151d548b0b14b
tree36728e3336939832d08494a485ccdd02c76b8666
parent7d8e9e65f23040b2f9e9670bc971d3ec8fa69d47
drm/amdgpu/gfx11: 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.

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_v11_0.c