]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu/gfx10: wait for reset done before remap
authorJiadong Zhu <Jiadong.Zhu@amd.com>
Tue, 2 Jul 2024 01:17:14 +0000 (09:17 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 Sep 2024 15:40:47 +0000 (11:40 -0400)
commit097af47d3cfb99ee02afbdd7e0d9596eb012c65a
treecc05a600f44479556519904f19b32a851bc09a69
parent2f3806f781421ce6dfa60471eb2116627c0eb893
drm/amdgpu/gfx10: 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 (Jessie)

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