Freeze on system-resume caused by kwin and amdgpu driver
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kwin (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
plasma-desktop (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
xserver-xorg-video-amdgpu (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
This is a well investigated bug by me.
Problem: a black screen freeze occurs by suspend-resume process
Ubuntu version: Kubuntu 19.10 default plasma, or the backported 5.17
Kernel version: default 5.3.10 or the mainline 5.4.0rc3
xserver-
This freeze can be reproduced only if opengl 2.0 or 3.1 compositor is enabled in Plasma settings. Xrender is OK however I don't like screen tearing.
On Ubuntu 19.10 Gnome desktop (X based) this doesn't occur even if the Gnome's compositor is enabled. (I don't know what is the default one there but I haven't disabled it)
I think this is a Kwin / amdgpu driver related bug because of the differentiation. These can be fixed even in Kwin/opengl compositor not just in the amdgpu driver or in kernel.
One possible solution: disable opengl compositor by suspend and re-enable it after login. Use fe.: Xrender before login / before the system restored from suspend.
For Ubuntu's maintainers: Couldn't be this problem solved by a downstream solution? Maybe a proper script could be enough by resume and by suspend. There are a lot of bugs like this reported in freedesktop bugreport and the developers haven't got enough time for fix them fast enough.
Syslog:
Oct 21 10:57:26 pc kernel: [ 9475.308852] Code: 85 78 ff ff ff e9 9f f8 ff ff 8b b0 98 04 00 00 48 c7 c7 ef 5f a5 c0 e8 49 2d 9d ff 44 0f b6 45 a3 49 8b 4d 08 e9 bf fa ff ff <0f> 0b e9 ca fb ff ff 0f 0b e8 7d 36 84 c1 66 66 2e 0f 1f 84 00 00
Oct 21 10:57:26 pc kernel: [ 9475.308853] RSP: 0018:ffffb7b542
Oct 21 10:57:26 pc kernel: [ 9475.308855] RAX: 0000000000000202 RBX: 0000000000000202 RCX: 000000000000046a
Oct 21 10:57:26 pc kernel: [ 9475.308856] RDX: 0000000000000001 RSI: 0000000000000202 RDI: 0000000000000002
Oct 21 10:57:26 pc kernel: [ 9475.308857] RBP: ffffb7b54274b870 R08: 0000000000000000 R09: ffff94da76b2d170
Oct 21 10:57:26 pc kernel: [ 9475.308858] R10: ffffb7b54274b708 R11: ffffb7b54274b70c R12: ffff94da76b2d000
Oct 21 10:57:26 pc kernel: [ 9475.308859] R13: ffff94d970f2c300 R14: ffff94da758d25d0 R15: ffff94da270d1400
Oct 21 10:57:26 pc kernel: [ 9475.308861] FS: 00007f2a1b9bea8
Oct 21 10:57:26 pc kernel: [ 9475.308863] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Oct 21 10:57:26 pc kernel: [ 9475.308864] CR2: 00007fb083e9b4a5 CR3: 000000012c110000 CR4: 00000000003406e0
Oct 21 10:57:26 pc kernel: [ 9475.308865] Call Trace:
Oct 21 10:57:26 pc kernel: [ 9475.308977] amdgpu_
Oct 21 10:57:26 pc kernel: [ 9475.308991] commit_
Oct 21 10:57:26 pc kernel: [ 9475.309000] ? commit_
Oct 21 10:57:26 pc kernel: [ 9475.309009] drm_atomic_
Oct 21 10:57:26 pc kernel: [ 9475.309115] amdgpu_
Oct 21 10:57:26 pc kernel: [ 9475.309135] drm_atomic_
Oct 21 10:57:26 pc kernel: [ 9475.309144] drm_atomic_
Oct 21 10:57:26 pc kernel: [ 9475.309159] drm_mode_
Oct 21 10:57:26 pc kernel: [ 9475.309234] ? amdgpu_
Oct 21 10:57:26 pc kernel: [ 9475.309249] ? drm_mode_
Oct 21 10:57:26 pc kernel: [ 9475.309262] drm_ioctl_
Oct 21 10:57:26 pc kernel: [ 9475.309276] drm_ioctl+
Oct 21 10:57:26 pc kernel: [ 9475.309290] ? drm_mode_
Oct 21 10:57:26 pc kernel: [ 9475.309370] amdgpu_
Oct 21 10:57:26 pc kernel: [ 9475.309376] do_vfs_
Oct 21 10:57:26 pc kernel: [ 9475.309379] ? do_futex+
Oct 21 10:57:26 pc kernel: [ 9475.309382] ksys_ioctl+
Oct 21 10:57:26 pc kernel: [ 9475.309384] __x64_sys_
Oct 21 10:57:26 pc kernel: [ 9475.309388] do_syscall_
Oct 21 10:57:26 pc kernel: [ 9475.309392] entry_SYSCALL_
Oct 21 10:57:26 pc kernel: [ 9475.309394] RIP: 0033:0x7f2a1bd0c67b
Oct 21 10:57:26 pc kernel: [ 9475.309397] Code: 0f 1e fa 48 8b 05 15 28 0d 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 0f 1f 44 00 00 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d e5 27 0d 00 f7 d8 64 89 01 48
Oct 21 10:57:26 pc kernel: [ 9475.309398] RSP: 002b:00007ffe0e
Oct 21 10:57:26 pc kernel: [ 9475.309400] RAX: ffffffffffffffda RBX: 00007ffe0e27c550 RCX: 00007f2a1bd0c67b
Oct 21 10:57:26 pc kernel: [ 9475.309401] RDX: 00007ffe0e27c550 RSI: 00000000c06864a2 RDI: 000000000000000d
Oct 21 10:57:26 pc kernel: [ 9475.309402] RBP: 00000000c06864a2 R08: 0000000000000000 R09: 0000562bcc215600
Oct 21 10:57:26 pc kernel: [ 9475.309403] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
Oct 21 10:57:26 pc kernel: [ 9475.309404] R13: 000000000000000d R14: 0000562bcb275db0 R15: 0000000000000000
Oct 21 10:57:26 pc kernel: [ 9475.309407] ---[ end trace cae28d1e69119104 ]---
Oct 21 10:57:26 pc kernel: [ 9475.309432] ------------[ cut here ]------------
Changed in linux (Ubuntu): | |
status: | Incomplete → Confirmed |
Status changed to 'Confirmed' because the bug affects multiple users.