AMDPU breaks suspend after kernel 5.0
Subsystems (2)
Hi Likun,
Sorry if you don't want emails like this. I added info. to
https://bugs.freedesktop.org/show_bug.cgi?id=110258
but people on Gentoo forums said email would be better.
Git bisect lead me to you:
---------------106c7d6148e5aadd394e6701f7e498df49b869d1 is the first bad commit commit 106c7d6148e5aadd394e6701f7e498df49b869d1
Author: Likun Gao <[email protected]> Date: Thu Nov 8 20:19:54 2018 +0800
drm/amdgpu: abstract the function of enter/exit safe mode for RLC
Abstract the function of amdgpu_gfx_rlc_enter/exit_safe_mode and some part
of rlc_init to improve the reusability of RLC.
:040000 040000 8f3b365496f3bbd380a62032f20642ace51c8fefe14ec968011019e3f601df3f15682bb9ae0bafc6 M drivers
---------------------
Symptoms are when resuming after pm-suspend, the screen is blank or corrupt, the keyboard dead, and syslog shows
--------------------
kernel: [ 81.096666] [drm:amdgpu_job_timedout] *ERROR* ring gfx timeout,
signaled seq=51, emitted seq=52
kernel: [ 81.096671] [drm] IP block:gfx_v8_0 is hung!
kernel: [ 81.096734] [drm] GPU recovery disabled.
---------------------
or similar. The problem occurs with all kernels since 5.0 up to and including 5.3-rc2. My laptop is:
HP 15-bw0xx
cpu:AMD A9-9420 RADEON R5, 5 COMPUTE CORES 2C+3G
with integrated graphics:
Stoney [Radeon R2/R3/R4/R5 Graphics] [1002:98E4]
There are several similar reports on the web, most or all for Stoney hardware, but that might be a coincidence as laptop users are more concerned about suspend, and there are a lot of laptops with similar integrated graphics motherboards.
I'm running Gentoo with a custom kernel, the most relevant bits of the config CONFIG_DRM_AMDGPU=y
# CONFIG_DRM_AMDGPU_SI is not set
# CONFIG_DRM_AMDGPU_CIK is not set
# CONFIG_DRM_AMDGPU_USERPTR is not set
If you tell me how, I'm willing to try to collect traces etc.
Paul Gover
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Hi Gover,
Sorry for responds late, can you help to give a try to add the patch attached and share me the related result and logs? Besides, do you have tried to revert this commit to see whether it's good?
Thanks.
Regards,
Likun
-----Original Message-----
From: Paul Gover <pmw.gover-/[email protected]>
Sent: Tuesday, July 30, 2019 9:34 PM
To: Gao, Likun <[email protected]>
Cc: [email protected]
Subject: AMDPU breaks suspend after kernel 5.0
Hi Likun,
Sorry if you don't want emails like this. I added info. to
https://bugs.freedesktop.org/show_bug.cgi?id=110258
but people on Gentoo forums said email would be better.
Git bisect lead me to you:
---------------106c7d6148e5aadd394e6701f7e498df49b869d1 is the first bad commit commit 106c7d6148e5aadd394e6701f7e498df49b869d1
Author: Likun Gao <[email protected]> Date: Thu Nov 8 20:19:54 2018 +0800
drm/amdgpu: abstract the function of enter/exit safe mode for RLC
Abstract the function of amdgpu_gfx_rlc_enter/exit_safe_mode and some part of rlc_init to improve the reusability of RLC.
:040000 040000 8f3b365496f3bbd380a62032f20642ace51c8fefe14ec968011019e3f601df3f15682bb9ae0bafc6 M drivers
---------------------
Symptoms are when resuming after pm-suspend, the screen is blank or corrupt, the keyboard dead, and syslog shows
--------------------
kernel: [ 81.096666] [drm:amdgpu_job_timedout] *ERROR* ring gfx timeout,
signaled seq=51, emitted seq=52
kernel: [ 81.096671] [drm] IP block:gfx_v8_0 is hung!
kernel: [ 81.096734] [drm] GPU recovery disabled.
---------------------
or similar. The problem occurs with all kernels since 5.0 up to and including 5.3-rc2. My laptop is:
HP 15-bw0xx
cpu:AMD A9-9420 RADEON R5, 5 COMPUTE CORES 2C+3G with integrated graphics:
Stoney [Radeon R2/R3/R4/R5 Graphics] [1002:98E4]
There are several similar reports on the web, most or all for Stoney hardware, but that might be a coincidence as laptop users are more concerned about suspend, and there are a lot of laptops with similar integrated graphics motherboards.
I'm running Gentoo with a custom kernel, the most relevant bits of the config CONFIG_DRM_AMDGPU=y # CONFIG_DRM_AMDGPU_SI is not set # CONFIG_DRM_AMDGPU_CIK is not set # CONFIG_DRM_AMDGPU_USERPTR is not set
If you tell me how, I'm willing to try to collect traces etc.
Paul Gover
From f6ad633767b4178fef2040711417e71e93f412b8 Mon Sep 17 00:00:00 2001
From: Likun Gao <[email protected]>
Date: Wed, 31 Jul 2019 13:52:07 +0800
Subject: [PATCH] drm/amdgpu: debug for gfx v8 Stoney pm-suspend
--- drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c +5 -1
@@ -36,6 +36,8 @@*/ void amdgpu_gfx_rlc_enter_safe_mode (struct amdgpu_device *adev) { +printk ("gfxv8 safe mode state is %d to enter\n" , + adev->gfx.rlc.in_safe_mode);if (adev->gfx.rlc.in_safe_mode)return ;
@@ -60,6 +62,8 @@ void amdgpu_gfx_rlc_enter_safe_mode(struct amdgpu_device *adev)*/ void amdgpu_gfx_rlc_exit_safe_mode (struct amdgpu_device *adev) { +printk ("gfxv8 safe mode state is %d to exit\n" , + adev->gfx.rlc.in_safe_mode);if (!(adev->gfx.rlc.in_safe_mode))return ;
@@ -145,7 +149,7 @@ int amdgpu_gfx_rlc_init_csb(struct amdgpu_device *adev) dst_ptr = adev->gfx.rlc.cs_ptr; adev->gfx.rlc.funcs->get_csb_buffer (adev, dst_ptr);amdgpu_bo_kunmap (adev->gfx.rlc.clear_state_obj); -amdgpu_bo_unpin (adev->gfx.rlc.clear_state_obj); +//amdgpu_bo_unpin(adev->gfx.rlc.clear_state_obj); amdgpu_bo_unreserve (adev->gfx.rlc.clear_state_obj);return 0 ;
Signature · 1 line
2.7.4
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx