[PATCH] drm/amdgpu: Fix an error message in rmmod

Wang, Yang(Kevin) KevinYang.Wang at amd.com
Tue Jan 25 10:48:43 UTC 2022

[AMD Official Use Only]

the issue is introduced in following patch, so add following information is better.
fixes: (e9669fb78262) drm/amdgpu: Add early fini callback

Reviewed-by: Yang Wang <kevinyang.wang at amd.com>

Best Regards,

From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> on behalf of Tianci Yin <tianci.yin at amd.com>
Sent: Tuesday, January 25, 2022 6:03 PM
To: amd-gfx at lists.freedesktop.org <amd-gfx at lists.freedesktop.org>
Cc: Grodzovsky, Andrey <Andrey.Grodzovsky at amd.com>; Yin, Tianci (Rico) <Tianci.Yin at amd.com>; Chen, Guchun <Guchun.Chen at amd.com>
Subject: [PATCH] drm/amdgpu: Fix an error message in rmmod

From: "Tianci.Yin" <tianci.yin at amd.com>

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.

Performing kfd suspending after disabling gfxoff can fix it.

Change-Id: I0453f28820542d4a5ab26e38fb5b87ed76ce6930
Signed-off-by: Tianci.Yin <tianci.yin at amd.com>
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index b75d67f644e5..77e9837ba342 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -2720,11 +2720,11 @@ static int amdgpu_device_ip_fini_early(struct amdgpu_device *adev)

-       amdgpu_amdkfd_suspend(adev, false);
         amdgpu_device_set_pg_state(adev, AMD_PG_STATE_UNGATE);
         amdgpu_device_set_cg_state(adev, AMD_CG_STATE_UNGATE);

+       amdgpu_amdkfd_suspend(adev, false);
         /* Workaroud for ASICs need to disable SMC first */


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20220125/c94aa75a/attachment-0001.htm>

More information about the amd-gfx mailing list