Lenovo T480 sleep/wakeup display problem
by ajevremovic from LinuxQuestions.org on (#4TBKG)
Hi guys,
I'm experiencing a problem with Lenovo T480 laptop with i7 CPU and Intel Corporation UHD Graphics 620. Most of the time the laptop works perfectly well, but the problem is waking it from the sleep (especially, when being connected/disconnected from a docking station).
Sometimes, the laptop wakes from sleep almost immediately, but in the most of the cases display is blank (on, with the back light on, but empty) for some amount of time - usually between 20 and 60 seconds, but in some cases I have to turn it off or reset via REISUB instruction.
The dmesg output is the following:
Code:[24988.228845] CPU: 4 PID: 4557 Comm: Xorg Tainted: G W O 4.19.80 #1
[24988.228849] Hardware name: LENOVO 20L5CTO1WW/20L5CTO1WW, BIOS N24ET51W (1.26 ) 08/30/2019
[24988.228890] RIP: 0010:drm_wait_one_vblank+0x163/0x170 [drm]
[24988.228895] Code: 0f 0b e9 35 ff ff ff 48 89 e6 4c 89 f7 e8 25 a1 a6 ca 45 85 ed 0f 85 16 ff ff ff 44 89 e6 48 c7 c7 e0 a0 6a c0 e8 0c 5e a2 ca <0f> 0b e9 00 ff ff ff e8 11 5b a2 ca 90 0f 1f 44 00 00 8b b7 90 00
[24988.228898] RSP: 0018:ffffa70b4c637ac0 EFLAGS: 00010282
[24988.228903] RAX: 0000000000000000 RBX: 000000000002df3d RCX: 0000000000000006
[24988.228906] RDX: 0000000000000007 RSI: 0000000000000092 RDI: ffff8a58df315550
[24988.228908] RBP: ffff8a58d2fc8000 R08: 0000000000000001 R09: 000000000000081b
[24988.228911] R10: 0000000000000003 R11: 0000000000000000 R12: 0000000000000001
[24988.228913] R13: 0000000000000000 R14: ffff8a58d54d9180 R15: ffff8a578079c800
[24988.228918] FS: 00007f9f49875540(0000) GS:ffff8a58df300000(0000) knlGS:0000000000000000
[24988.228921] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[24988.228923] CR2: 00000ed968e25000 CR3: 000000082b0b6006 CR4: 00000000003606e0
[24988.228926] Call Trace:
[24988.228943] ? wait_woken+0x70/0x70
[24988.229057] skl_update_crtcs+0x1e7/0x310 [i915]
[24988.229160] intel_atomic_commit_tail+0x359/0xd90 [i915]
[24988.229263] intel_atomic_commit+0x2b0/0x2f0 [i915]
[24988.229313] drm_mode_atomic_ioctl+0x80c/0x920 [drm]
[24988.229361] ? drm_atomic_set_property+0x6c0/0x6c0 [drm]
[24988.229396] drm_ioctl_kernel+0x9f/0xf0 [drm]
[24988.229433] drm_ioctl+0x20c/0x390 [drm]
[24988.229480] ? drm_atomic_set_property+0x6c0/0x6c0 [drm]
[24988.229489] ? enqueue_hrtimer+0x3d/0x90
[24988.229496] ? hrtimer_start_range_ns+0x18c/0x2c0
[24988.229503] do_vfs_ioctl+0x405/0x660
[24988.229512] ? __sys_recvmsg+0x85/0xa0
[24988.229517] ksys_ioctl+0x5e/0x90
[24988.229522] __x64_sys_ioctl+0x16/0x20
[24988.229529] do_syscall_64+0x55/0x110
[24988.229537] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[24988.229543] RIP: 0033:0x7f9f4a1a34b7
[24988.229548] Code: 00 00 90 48 8b 05 d9 29 0d 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d a9 29 0d 00 f7 d8 64 89 01 48
[24988.229551] RSP: 002b:00007ffe92856078 EFLAGS: 00003246 ORIG_RAX: 0000000000000010
[24988.229557] RAX: ffffffffffffffda RBX: 00007ffe928560c0 RCX: 00007f9f4a1a34b7
[24988.229559] RDX: 00007ffe928560c0 RSI: 00000000c03864bc RDI: 000000000000000f
[24988.229562] RBP: 00000000c03864bc R08: 00000000029b48d0 R09: 0000000000000002
[24988.229564] R10: 0000000000000002 R11: 0000000000003246 R12: 0000000002da9850
[24988.229567] R13: 000000000000000f R14: 00000000030308c0 R15: 00000000026276c0
[24988.229572] ---[ end trace 9027cc7ee57067e1 ]---
[24998.876480] [drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] *ERROR* [CRTC:55:pipe B] flip_done timed out
[25009.116509] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CRTC:55:pipe B] flip_done timed out
[25019.356495] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CONNECTOR:97:DP-5] flip_done timed out
[25029.596512] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [PLANE:42:plane 1B] flip_done timed outAny ideas how to solve this problem?


I'm experiencing a problem with Lenovo T480 laptop with i7 CPU and Intel Corporation UHD Graphics 620. Most of the time the laptop works perfectly well, but the problem is waking it from the sleep (especially, when being connected/disconnected from a docking station).
Sometimes, the laptop wakes from sleep almost immediately, but in the most of the cases display is blank (on, with the back light on, but empty) for some amount of time - usually between 20 and 60 seconds, but in some cases I have to turn it off or reset via REISUB instruction.
The dmesg output is the following:
Code:[24988.228845] CPU: 4 PID: 4557 Comm: Xorg Tainted: G W O 4.19.80 #1
[24988.228849] Hardware name: LENOVO 20L5CTO1WW/20L5CTO1WW, BIOS N24ET51W (1.26 ) 08/30/2019
[24988.228890] RIP: 0010:drm_wait_one_vblank+0x163/0x170 [drm]
[24988.228895] Code: 0f 0b e9 35 ff ff ff 48 89 e6 4c 89 f7 e8 25 a1 a6 ca 45 85 ed 0f 85 16 ff ff ff 44 89 e6 48 c7 c7 e0 a0 6a c0 e8 0c 5e a2 ca <0f> 0b e9 00 ff ff ff e8 11 5b a2 ca 90 0f 1f 44 00 00 8b b7 90 00
[24988.228898] RSP: 0018:ffffa70b4c637ac0 EFLAGS: 00010282
[24988.228903] RAX: 0000000000000000 RBX: 000000000002df3d RCX: 0000000000000006
[24988.228906] RDX: 0000000000000007 RSI: 0000000000000092 RDI: ffff8a58df315550
[24988.228908] RBP: ffff8a58d2fc8000 R08: 0000000000000001 R09: 000000000000081b
[24988.228911] R10: 0000000000000003 R11: 0000000000000000 R12: 0000000000000001
[24988.228913] R13: 0000000000000000 R14: ffff8a58d54d9180 R15: ffff8a578079c800
[24988.228918] FS: 00007f9f49875540(0000) GS:ffff8a58df300000(0000) knlGS:0000000000000000
[24988.228921] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[24988.228923] CR2: 00000ed968e25000 CR3: 000000082b0b6006 CR4: 00000000003606e0
[24988.228926] Call Trace:
[24988.228943] ? wait_woken+0x70/0x70
[24988.229057] skl_update_crtcs+0x1e7/0x310 [i915]
[24988.229160] intel_atomic_commit_tail+0x359/0xd90 [i915]
[24988.229263] intel_atomic_commit+0x2b0/0x2f0 [i915]
[24988.229313] drm_mode_atomic_ioctl+0x80c/0x920 [drm]
[24988.229361] ? drm_atomic_set_property+0x6c0/0x6c0 [drm]
[24988.229396] drm_ioctl_kernel+0x9f/0xf0 [drm]
[24988.229433] drm_ioctl+0x20c/0x390 [drm]
[24988.229480] ? drm_atomic_set_property+0x6c0/0x6c0 [drm]
[24988.229489] ? enqueue_hrtimer+0x3d/0x90
[24988.229496] ? hrtimer_start_range_ns+0x18c/0x2c0
[24988.229503] do_vfs_ioctl+0x405/0x660
[24988.229512] ? __sys_recvmsg+0x85/0xa0
[24988.229517] ksys_ioctl+0x5e/0x90
[24988.229522] __x64_sys_ioctl+0x16/0x20
[24988.229529] do_syscall_64+0x55/0x110
[24988.229537] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[24988.229543] RIP: 0033:0x7f9f4a1a34b7
[24988.229548] Code: 00 00 90 48 8b 05 d9 29 0d 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d a9 29 0d 00 f7 d8 64 89 01 48
[24988.229551] RSP: 002b:00007ffe92856078 EFLAGS: 00003246 ORIG_RAX: 0000000000000010
[24988.229557] RAX: ffffffffffffffda RBX: 00007ffe928560c0 RCX: 00007f9f4a1a34b7
[24988.229559] RDX: 00007ffe928560c0 RSI: 00000000c03864bc RDI: 000000000000000f
[24988.229562] RBP: 00000000c03864bc R08: 00000000029b48d0 R09: 0000000000000002
[24988.229564] R10: 0000000000000002 R11: 0000000000003246 R12: 0000000002da9850
[24988.229567] R13: 000000000000000f R14: 00000000030308c0 R15: 00000000026276c0
[24988.229572] ---[ end trace 9027cc7ee57067e1 ]---
[24998.876480] [drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] *ERROR* [CRTC:55:pipe B] flip_done timed out
[25009.116509] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CRTC:55:pipe B] flip_done timed out
[25019.356495] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CONNECTOR:97:DP-5] flip_done timed out
[25029.596512] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [PLANE:42:plane 1B] flip_done timed outAny ideas how to solve this problem?