mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
drm/amdgpu/gfx11: unmap the queue via MES on reset for MMIO path
To keep MES in sync. Reviewed-by: Jesse Zhang <jesse.zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
1563844c5b
commit
2b8fb9308e
|
|
@ -6829,6 +6829,10 @@ static int gfx_v11_0_reset_kgq(struct amdgpu_ring *ring,
|
|||
return r;
|
||||
|
||||
if (use_mmio) {
|
||||
r = amdgpu_mes_unmap_legacy_queue(adev, ring,
|
||||
RESET_QUEUES, 0, 0, 0);
|
||||
if (r)
|
||||
return r;
|
||||
amdgpu_gfx_mqd_reset_restore(ring);
|
||||
|
||||
r = amdgpu_mes_map_legacy_queue(adev, ring, 0);
|
||||
|
|
@ -6856,6 +6860,10 @@ static int gfx_v11_0_reset_kcq(struct amdgpu_ring *ring,
|
|||
return r;
|
||||
|
||||
if (use_mmio) {
|
||||
r = amdgpu_mes_unmap_legacy_queue(adev, ring,
|
||||
RESET_QUEUES, 0, 0, 0);
|
||||
if (r)
|
||||
return r;
|
||||
amdgpu_gfx_mqd_reset_restore(ring);
|
||||
|
||||
r = amdgpu_mes_map_legacy_queue(adev, ring, 0);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user