Bug 201535

Summary: HP Laptop 17-an0xx resume from not working [amdgpu warnings]
Product: Drivers Reporter: alex14641
Component: Video(Other)Assignee: drivers_video-other
Status: RESOLVED IMPLEMENTED    
Severity: high CC: alex14641, mario.limonciello, plum.michalski, yu.c.chen
Priority: P1    
Hardware: Intel   
OS: Linux   
Kernel Version: 4.19 Subsystem:
Regression: Yes Bisected commit-id:
Attachments: lsmod for 4.18
lsmod for 4.19
dmesg for 4.18
dmesg for 4.19
Output from lspci -vv
Kernel config file for 4.19
dmidecode

Description alex14641 2018-10-27 00:53:33 UTC
Created attachment 279191 [details]
lsmod for 4.18

In 4.19, when I close the laptop lid, the screen turns off, the fan does not spin down; on opening the lid, the screen does not turn back on, and the laptop is pingable, but I can't SSH in. With 4.18, there are no problems. I'm running Slackware current. I have KDE configured to put the laptop to sleep when the lid is closed.
Comment 1 alex14641 2018-10-27 00:54:44 UTC
Created attachment 279193 [details]
lsmod for 4.19
Comment 2 alex14641 2018-10-27 01:00:40 UTC
Created attachment 279195 [details]
dmesg for 4.18
Comment 3 alex14641 2018-10-27 01:01:08 UTC
Created attachment 279197 [details]
dmesg for 4.19
Comment 4 alex14641 2018-10-27 01:04:12 UTC
Created attachment 279199 [details]
Output from lspci -vv
Comment 5 alex14641 2018-10-27 13:36:53 UTC
Created attachment 279209 [details]
Kernel config file for 4.19
Comment 6 PLum 2018-10-29 12:08:03 UTC
Same problem here - lenovo W530
Comment 7 alex14641 2018-10-29 23:31:12 UTC
Created attachment 279243 [details]
dmidecode
Comment 8 Chen Yu 2018-11-09 01:59:58 UTC
If the network works after resumed, the system should go through a successful system suspend/resume cycle. According to the description, there is a problem in the graphic display. And per the dmesg log in 4.19, the amdgraphic driver has printed quite some warnings, such as 
drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/gpio_base.c:64 dal_gpio_open_ex+0xc/0x30 [amdgpu]

please try blacklist the amdgpu and check if it works.

BTW, please provide the info under
/sys/power/*
Comment 9 alex14641 2018-11-09 02:50:53 UTC
for 4.18.17
me@boss4:/spare/linux/linux-drm$ for i in  /sys/power/* ; do
> echo "***** $i **********"
> cat $i
> done
***** /sys/power/disk **********
[platform] shutdown reboot suspend test_resume 
***** /sys/power/image_size **********
13453881344
***** /sys/power/mem_sleep **********
s2idle [deep]
***** /sys/power/pm_async **********
1
***** /sys/power/pm_freeze_timeout **********
20000
***** /sys/power/reserved_size **********
1048576
***** /sys/power/resume **********
0:0
***** /sys/power/resume_offset **********
0
***** /sys/power/state **********
freeze mem disk
***** /sys/power/wake_lock **********

***** /sys/power/wake_unlock **********

***** /sys/power/wakeup_count **********
5
Comment 10 alex14641 2018-11-09 03:14:07 UTC
For 4.19
adavis@boss4:~$ for i in  /sys/power/* ; do echo "***** $i **********"; cat $i; done
***** /sys/power/disk **********
[platform] shutdown reboot suspend test_resume 
***** /sys/power/image_size **********
13454172160
***** /sys/power/mem_sleep **********
s2idle [deep]
***** /sys/power/pm_async **********
1
***** /sys/power/pm_freeze_timeout **********
20000
***** /sys/power/reserved_size **********
1048576
***** /sys/power/resume **********
0:0
***** /sys/power/resume_offset **********
0
***** /sys/power/state **********
freeze mem disk
***** /sys/power/wake_lock **********

***** /sys/power/wake_unlock **********

***** /sys/power/wakeup_count **********
2
Comment 11 alex14641 2018-11-09 03:49:20 UTC
After blacklisting the amdgpu driver, sleep works. I've closed and opened the lid several time, and the laptop woke up each time. Will continue testing.
Comment 12 alex14641 2018-11-19 05:01:11 UTC
Tested with the code in drm-next-4.21-wip: with that code, when the lid is closed, the fan spins down; when the lid is opened, the fan spins up and I can ssh in, but the screen stays blank. Also, the following appears in dmesg:

[ 1735.527692] [drm:amdgpu_atombios_dp_link_train [amdgpu]] *ERROR* displayport link status failed
[ 1735.527713] [drm:amdgpu_atombios_dp_link_train [amdgpu]] *ERROR* clock recovery failed
Comment 13 Mario Limonciello (AMD) 2022-05-06 18:09:49 UTC
This is a bit of an old bug, do you still have problems?
Comment 14 alex14641 2022-05-08 02:05:58 UTC
Currently running 5.17.x with no issues.