Bug 109623 - *ERROR* [CRTC:39:pipe A] flip_done timed out with DPMS HD Graphics 5500
Summary: *ERROR* [CRTC:39:pipe A] flip_done timed out with DPMS HD Graphics 5500
Status: RESOLVED MOVED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: XOrg git
Hardware: x86-64 (AMD64) Linux (All)
: low normal
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard: Triaged, ReadyForDev
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-13 15:04 UTC by Koos Vriezen
Modified: 2019-11-29 18:07 UTC (History)
5 users (show)

See Also:
i915 platform: BDW
i915 features: power/suspend-resume


Attachments
dmesg 5.0.0-rc7+ gz (147.93 KB, application/gzip)
2019-02-19 12:52 UTC, Koos Vriezen
no flags Details

Description Koos Vriezen 2019-02-13 15:04:03 UTC
Hi,

Using a Dell XPS 9343 with an external 4k monitor, when DPMS kicks in, e.g. after running `xset dpms 180 0 0`, and monitor goes off, I cannot properly get the display back. Using Alt+Ctrl+F2 and waiting a few minutes, I'm able to at least proper reboot the laptop. Seen this with kernel 4.20.{0,5,8}. Might be related to a mesa upgrade from 18.2.x to 18.3.x, as I didn't see this before.
This is logged into journal:
kernel: [drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] *ERROR* [CRTC:39:pipe A] flip_done timed out
kernel: [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CRTC:39:pipe A] flip_done timed out
kernel: [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CONNECTOR:65:eDP-1] flip_done timed o
kernel: [drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] *ERROR* [CRTC:39:pipe A] flip_done timed out
kernel: [drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] *ERROR* [CRTC:39:pipe A] flip_done timed out
kernel: [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CRTC:39:pipe A] flip_done timed out
kernel: [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CONNECTOR:65:eDP-1] flip_done timed o
kernel: [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [PLANE:28:primary A] flip_done timed o
kernel: [drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] *ERROR* [CRTC:39:pipe A] flip_done timed out
kernel: [drm:intel_cpu_fifo_underrun_irq_handler [i915]] *ERROR* CPU pipe A FIFO underrun
kernel: [drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] *ERROR* [CRTC:39:pipe A] flip_done timed out
kernel: [drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] *ERROR* [CRTC:39:pipe A] flip_done timed out
kernel: [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CRTC:39:pipe A] flip_done timed out
kernel: [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CONNECTOR:65:eDP-1] flip_done timed o
kernel: [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [PLANE:28:primary A] flip_done timed o
kernel: [drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] *ERROR* [CRTC:39:pipe A] flip_done timed out
kernel: ------------[ cut here ]------------
kernel: vblank wait timed out on crtc 0
kernel: WARNING: CPU: 2 PID: 2201 at drivers/gpu/drm/drm_vblank.c:1084 drm_wait_one_vblank+0x147/0x150 [drm]
kernel: Modules linked in: hid_cherry usbhid snd_hda_codec_hdmi cpufreq_userspace cpufreq_powersave cpufreq_conservat
kernel:  int3402_thermal intel_hid acpi_pad int340x_thermal_zone acpi_thermal_rel evdev ac pcc_cpufreq efivarfs ip_ta
kernel: CPU: 2 PID: 2201 Comm: kworker/2:0 Tainted: P     U     O      4.20.8 #16 
kernel: Hardware name: Dell Inc. XPS 13 9343/09K8G1, BIOS A18 09/27/2018
kernel: Workqueue: events i915_hotplug_work_func [i915]
kernel: RIP: 0010:drm_wait_one_vblank+0x147/0x150 [drm]
kernel: Code: e0 0f 0b e9 3b ff ff ff 48 89 e6 4c 89 f7 e8 10 5b d1 e0 85 ed 0f 85 1d ff ff ff 44 89 e6 48 c7 c7 c0 3
kernel: RSP: 0018:ffffc90003a33d48 EFLAGS: 00010296
kernel: RAX: 000000000000001f RBX: ffff888214b00000 RCX: 0000000000000006
kernel: RDX: 0000000000000007 RSI: 0000000000000086 RDI: ffff888217315400
kernel: RBP: 0000000000000000 R08: 00000000000002c1 R09: 0000000000000004
kernel: R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000
kernel: R13: 000000000002d69b R14: ffff8882153cd808 R15: ffff8881e457c100
kernel: FS:  0000000000000000(0000) GS:ffff888217300000(0000) knlGS:0000000000000000
kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
kernel: CR2: 00007f2bc15bce18 CR3: 0000000001c0a006 CR4: 00000000001606e0
kernel: Call Trace:
kernel:  ? wait_woken+0x80/0x80  
kernel:  intel_dp_retrain_link+0x122/0x1a0 [i915]
kernel:  intel_ddi_hotplug+0x3b/0x2a0 [i915]
kernel:  i915_hotplug_work_func+0x130/0x1b0 [i915]
kernel:  process_one_work+0x1b0/0x330
kernel:  worker_thread+0x28/0x3c0
kernel:  ? process_one_work+0x330/0x330
kernel:  kthread+0x107/0x120
kernel:  ? kthread_park+0x80/0x80
kernel:  ret_from_fork+0x1f/0x30 
kernel: ---[ end trace 78b5432289b6c5fe ]---
kernel: [drm:intel_cpu_fifo_underrun_irq_handler [i915]] *ERROR* CPU pipe A FIFO underrun
kernel: ------------[ cut here ]------------
kernel: vblank wait timed out on crtc 0
kernel: WARNING: CPU: 2 PID: 3754 at drivers/gpu/drm/drm_vblank.c:1084 drm_wait_one_vblank+0x147/0x150 [drm]
kernel: Modules linked in: hid_cherry usbhid snd_hda_codec_hdmi cpufreq_userspace cpufreq_powersave cpufreq_conservat
kernel:  int3402_thermal intel_hid acpi_pad int340x_thermal_zone acpi_thermal_rel evdev ac pcc_cpufreq efivarfs ip_ta
kernel: CPU: 2 PID: 3754 Comm: kworker/2:1 Tainted: P     U  W  O      4.20.8 #16 
kernel: Hardware name: Dell Inc. XPS 13 9343/09K8G1, BIOS A18 09/27/2018
kernel: Workqueue: events intel_dp_modeset_retry_work_fn [i915]
kernel: RIP: 0010:drm_wait_one_vblank+0x147/0x150 [drm]
kernel: Code: e0 0f 0b e9 3b ff ff ff 48 89 e6 4c 89 f7 e8 10 5b d1 e0 85 ed 0f 85 1d ff ff ff 44 89 e6 48 c7 c7 c0 3
kernel: RSP: 0018:ffffc90001e4fc70 EFLAGS: 00010282
kernel: RAX: 000000000000001f RBX: ffff888214b00000 RCX: 0000000000000006
kernel: RDX: 0000000000000007 RSI: 0000000000000092 RDI: ffff888217315400
kernel: RBP: 0000000000000000 R08: 00000000000002e1 R09: 0000000000000004
kernel: R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000
kernel: R13: 000000000002d6a4 R14: ffff8882153cd808 R15: ffff8882146c8400
kernel: FS:  0000000000000000(0000) GS:ffff888217300000(0000) knlGS:0000000000000000
kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
kernel: CR2: 00007f2bc15bce18 CR3: 0000000001c0a001 CR4: 00000000001606e0
kernel: Call Trace:
kernel:  ? wait_woken+0x80/0x80  
kernel:  intel_pre_plane_update+0x6a/0x200 [i915]
kernel:  intel_atomic_commit_tail+0xd1/0xc50 [i915]
kernel:  intel_atomic_commit+0x20c/0x2f0 [i915]
kernel:  restore_fbdev_mode_atomic+0x194/0x1a0 [drm_kms_helper]
kernel:  drm_fb_helper_restore_fbdev_mode_unlocked+0x40/0x90 [drm_kms_helper]
kernel:  drm_fb_helper_set_par+0x24/0x50 [drm_kms_helper]
kernel:  drm_fb_helper_hotplug_event.part.29+0x8b/0xa0 [drm_kms_helper]
kernel:  drm_kms_helper_hotplug_event+0x1e/0x30 [drm_kms_helper]
kernel:  process_one_work+0x1b0/0x330
kernel:  worker_thread+0x28/0x3c0
kernel:  ? process_one_work+0x330/0x330
kernel:  kthread+0x107/0x120
kernel:  ? kthread_park+0x80/0x80
kernel:  ret_from_fork+0x1f/0x30 
kernel: ---[ end trace 78b5432289b6c5ff ]---
kernel: [drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] *ERROR* [CRTC:39:pipe A] flip_done timed out
kernel: [drm:intel_cpu_fifo_underrun_irq_handler [i915]] *ERROR* CPU pipe A FIFO underrun

from `lspci`
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09)
00:03.0 Audio device: Intel Corporation Broadwell-U Audio Controller (rev 09)

xrandr -q
Screen 0: minimum 8 x 8, current 3840 x 3960, maximum 32767 x 32767
eDP1 connected 3200x1800+0+2160 (normal left inverted right x axis y axis) 290mm x 170mm
   3200x1800     59.98*+  59.94  
   2880x1620     59.97  
   2560x1600     59.99    59.97  
   2560x1440     59.96    60.00    59.95  
   2048x1536     60.00  
   1920x1440     60.00  
   1856x1392     60.01  
   1792x1344     60.01  
   2048x1152     60.00    59.90    59.91  
   1920x1200     59.88    59.95  
   1920x1080     59.96    60.00    59.93  
   1600x1200     60.00  
   1680x1050     59.95    59.88  
   1600x1024     60.17  
   1400x1050     59.98  
   1600x900      60.00    59.95    59.82  
   1280x1024     60.02  
   1440x900      59.89  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1368x768      60.00    59.88    59.85  
   1360x768      59.80    59.96  
   1280x800      59.81    59.91  
   1152x864      60.00  
   1280x720      59.86    60.00    59.74  
   1024x768      60.00  
   1024x576      60.00    59.90    59.82  
   960x540       60.00    59.63    59.82  
   800x600       60.32    56.25  
   864x486       60.00    59.92    59.57  
   640x480       59.94  
   720x405       59.51    60.00    58.99  
   640x360       59.84    59.32    60.00  
DP1 connected primary 3840x2160+0+0 (normal left inverted right x axis y axis) 530mm x 300mm
   3840x2160     60.00*+  29.98  
   2560x1440     59.95  
   2048x1280     59.99  
   1920x1200     59.88  
   1920x1080     60.00    60.00    50.00    59.94    24.00    23.98  
   1920x1080i    60.00    50.00    59.94  
   1600x1200     60.00  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1152x864      75.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       75.00    60.00    59.94  
   720x400       70.08  
HDMI1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)


Best regards,
Koos Vriezen
Comment 1 Lakshmi 2019-02-18 08:15:01 UTC
Reporter, can you please try to reproduce the error using drm-tip (https://cgit.freedesktop.org/drm-tip) and kernel parameters drm.debug=0x1e log_buf_len=4M, and if the problem persists attach the full dmesg from boot.
Comment 2 Lakshmi 2019-02-18 08:27:51 UTC
(In reply to Koos Vriezen from comment #0)
> Hi,
> 
> Using a Dell XPS 9343 with an external 4k monitor, when DPMS kicks in, e.g.
> after running `xset dpms 180 0 0`, and monitor goes off, I cannot properly
> get the display back. Using Alt+Ctrl+F2 and waiting a few minutes, I'm able
> to at least proper reboot the laptop. Seen this with kernel 4.20.{0,5,8}.

Meanwhile, can you add the full dmesg from boot with kernel 4.20?
Comment 3 Koos Vriezen 2019-02-19 12:52:57 UTC
Created attachment 143411 [details]
dmesg 5.0.0-rc7+ gz

Turns out, at least with drm-tip, that enable_psr=1 is causing this hang. Attached the dmesg after such a hang occurred.
Comment 4 Lakshmi 2019-02-19 13:18:09 UTC
Imre, any comments here?
Comment 5 Imre Deak 2019-02-25 13:12:53 UTC
Booting with i915.enable_psr=1 overrides the driver's default and as such is an unsafe thing to do (on BDW PSR is disabled for a reason). So this config is not supported by us.

Does the issue also happen if you boot without enable_psr=1?
Comment 6 Koos Vriezen 2019-02-26 10:19:56 UTC
No, like written only with enable_psr=1 I get this hang. I know it's disabled by default.
But it has worked for years. And for this laptop, it saves about 1W on idle (which is quite a lot given that on idle powerstat reports less than 6W).
Comment 7 Jose Roberto de Souza 2019-02-26 21:56:08 UTC
As Imre said, we currently don't support PSR in BDW by default so lowering the priority for now.
Comment 8 Jani Saarinen 2019-11-26 15:53:15 UTC
You are reporter of the issue currently having low priority. Do you still see issue. If so, please spesify clearly what is impact to you.
Comment 9 Martin Peres 2019-11-29 18:07:57 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/drm/intel/issues/230.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.