Bug 201535 - HP Laptop 17-an0xx resume from not working [amdgpu warnings]
Summary: HP Laptop 17-an0xx resume from not working [amdgpu warnings]
Status: RESOLVED IMPLEMENTED
Alias: None
Product: Drivers
Classification: Unclassified
Component: Video(Other) (show other bugs)
Hardware: Intel Linux
: P1 high
Assignee: drivers_video-other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-27 00:53 UTC by alex14641
Modified: 2022-05-09 16:27 UTC (History)
4 users (show)

See Also:
Kernel Version: 4.19
Subsystem:
Regression: Yes
Bisected commit-id:


Attachments
lsmod for 4.18 (5.25 KB, text/plain)
2018-10-27 00:53 UTC, alex14641
Details
lsmod for 4.19 (5.18 KB, text/plain)
2018-10-27 00:54 UTC, alex14641
Details
dmesg for 4.18 (103.38 KB, text/plain)
2018-10-27 01:00 UTC, alex14641
Details
dmesg for 4.19 (121.80 KB, text/plain)
2018-10-27 01:01 UTC, alex14641
Details
Output from lspci -vv (54.14 KB, text/plain)
2018-10-27 01:04 UTC, alex14641
Details
Kernel config file for 4.19 (184.25 KB, text/plain)
2018-10-27 13:36 UTC, alex14641
Details
dmidecode (14.88 KB, text/plain)
2018-10-29 23:31 UTC, alex14641
Details

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.

Note You need to log in before you can comment on or make changes to this bug.