drm/amdgpu: Fix an error message in rmmod
authorTianci.Yin <tianci.yin@amd.com>
Tue, 25 Jan 2022 08:54:03 +0000 (16:54 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Jan 2022 20:48:30 +0000 (15:48 -0500)
commit7270e8957eb9aacf5914605d04865f3829a14bce
treebcb5c39a350f4e43d565f628433f9b2b68eaf6c6
parent75513bf5d72cd1a81401866642f4a8052b2d4420
drm/amdgpu: Fix an error message in rmmod

[why]
In rmmod procedure, kfd sends cp a dequeue request, but the
request does not get response, then an error message "cp
queue pipe 4 queue 0 preemption failed" printed.

[how]
Performing kfd suspending after disabling gfxoff can fix it.

Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Signed-off-by: Tianci.Yin <tianci.yin@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c