AMDGPU resume fail with RX 560

Bug #1900062 reported by Matias N. Goldberg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-signed-hwe-5.4 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Description: Ubuntu 18.04.5 LTS

In kernel 5.4.0-51 (known good: 5.4.0-48), resuming from suspend results in the monitors not turning up and the keyboard locked up. However the system still responds to SSH sessions.

 - The bug sometimes also triggers when plugging or unplugging an HDMI TV.
 - 'sudo shutdown now' will never finish. The kernel is stuck
 - 'sudo service lightdm restart' will never finish.
 - In my case dmesg nor xorg.log notice at all something went wrong
 - Trying to kill X reveals the following:

[ 1571.941734] Call Trace:
[ 1571.941747] __schedule+0x293/0x720
[ 1571.941752] ? __queue_work+0x14c/0x400
[ 1571.941758] schedule+0x33/0xa0
[ 1571.941765] rpm_resume+0x108/0x780
[ 1571.941769] ? __switch_to_asm+0x40/0x70
[ 1571.941776] ? wait_woken+0x80/0x80
[ 1571.941782] __pm_runtime_resume+0x4e/0x80
[ 1571.941939] amdgpu_drm_ioctl+0x39/0x80 [amdgpu]
[ 1571.941944] do_vfs_ioctl+0xa9/0x640
[ 1571.941950] ? __schedule+0x29b/0x720
[ 1571.941954] ksys_ioctl+0x75/0x80
[ 1571.941957] __x64_sys_ioctl+0x1a/0x20
[ 1571.941964] do_syscall_64+0x57/0x190
[ 1571.941968] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 1571.941973] RIP: 0033:0x7f746d5a96d7
[ 1571.941982] Code: Bad RIP value.
[ 1571.941985] RSP: 002b:00007fff1ec6a7a8 EFLAGS: 00003246 ORIG_RAX: 0000000000000010
[ 1571.941990] RAX: ffffffffffffffda RBX: 00007fff1ec6a7e0 RCX: 00007f746d5a96d7
[ 1571.941992] RDX: 00007fff1ec6a7e0 RSI: 00000000c06864a2 RDI: 000000000000000d
[ 1571.941994] RBP: 00007fff1ec6a7e0 R08: 0000000000000000 R09: 0000000000000000
[ 1571.941996] R10: 0000000000000000 R11: 0000000000003246 R12: 00000000c06864a2
[ 1571.941998] R13: 000000000000000d R14: 000055f52f391780 R15: 000055f52f2176a0
[ 1571.942021] INFO: task chrome:shlo0:2563 blocked for more than 120 seconds.
[ 1571.942026] Tainted: G OE 5.4.0-51-generic #56~18.04.1-Ubuntu
[ 1571.942029] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.

[ 1692.774402] python3:disk$2 D 0 6187 1 0x80004002
[ 1692.774404] Call Trace:
[ 1692.774410] __schedule+0x293/0x720
[ 1692.774414] ? __switch_to_asm+0x40/0x70
[ 1692.774419] schedule+0x33/0xa0
[ 1692.774424] schedule_preempt_disabled+0xe/0x10
[ 1692.774429] __mutex_lock.isra.9+0x26d/0x4e0
[ 1692.774436] __mutex_lock_slowpath+0x13/0x20
[ 1692.774441] ? __mutex_lock_slowpath+0x13/0x20
[ 1692.774446] mutex_lock+0x2f/0x40
[ 1692.774472] drm_release+0x2e/0xd0 [drm]
[ 1692.774476] __fput+0xc6/0x260
[ 1692.774481] ____fput+0xe/0x10
[ 1692.774485] task_work_run+0x9d/0xc0
[ 1692.774491] do_exit+0x382/0xb80
[ 1692.774496] ? mem_cgroup_try_charge+0x75/0x190
[ 1692.774503] do_group_exit+0x43/0xa0
[ 1692.774506] get_signal+0x14f/0x860
[ 1692.774512] do_signal+0x34/0x6d0
[ 1692.774515] ? strlcpy+0x32/0x50
[ 1692.774519] ? __x64_sys_futex+0x13f/0x190
[ 1692.774525] exit_to_usermode_loop+0x90/0x130
[ 1692.774530] do_syscall_64+0x170/0x190
[ 1692.774534] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 1692.774536] RIP: 0033:0x7f7f31d789f3
[ 1692.774541] Code: Bad RIP value.
[ 1692.774543] RSP: 002b:00007f7ef49abd10 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
[ 1692.774546] RAX: fffffffffffffe00 RBX: 0000000002041e80 RCX: 00007f7f31d789f3
[ 1692.774548] RDX: 0000000000000000 RSI: 0000000000000080 RDI: 0000000002041ea8
[ 1692.774549] RBP: 0000000002041ea4 R08: 0000000000000000 R09: 0000000000000000
[ 1692.774551] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000002041ea8
[ 1692.774553] R13: 0000000000000000 R14: 0000000002041e58 R15: 0000000000000002
[ 1692.774558] INFO: task kworker/4:1:6532 blocked for more than 241 seconds.
[ 1692.774561] Tainted: G OE 5.4.0-51-generic #56~18.04.1-Ubuntu
[ 1692.774563] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 1692.774566] kworker/4:1 D 0 6532 2 0x80004000

This bug seems to be reported in upstream:

https://bugzilla.kernel.org/show_bug.cgi?id=204241
https://bugzilla.kernel.org/show_bug.cgi?id=209457

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-5.4.0-51-generic 5.4.0-51.56~18.04.1
ProcVersionSignature: Ubuntu 5.4.0-48.52~18.04.1-generic 5.4.60
Uname: Linux 5.4.0-48-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.17
Architecture: amd64
CurrentDesktop: XFCE
Date: Thu Oct 15 20:04:48 2020
InstallationDate: Installed on 2017-12-22 (1028 days ago)
InstallationMedia: Xubuntu 17.04 "Zesty Zapus" - Release amd64 (20170412)
SourcePackage: linux-signed-hwe-5.4
UpgradeStatus: Upgraded to bionic on 2018-05-26 (873 days ago)

Revision history for this message
Matias N. Goldberg (dark-sylinc) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.