Bug 208373 - drm:drm_atomic_helper_wait_for_dependencies - drm_kms_helper - flip_done timed out
Summary: drm:drm_atomic_helper_wait_for_dependencies - drm_kms_helper - flip_done time...
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Video(DRI - non Intel) (show other bugs)
Hardware: x86-64 Linux
: P1 normal
Assignee: drivers_video-dri
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-29 11:08 UTC by sander44
Modified: 2020-11-20 11:04 UTC (History)
6 users (show)

See Also:
Kernel Version: 5.7.2
Subsystem:
Regression: No
Bisected commit-id:


Attachments
dmesg (76.80 KB, text/plain)
2020-09-06 18:27 UTC, Gluzskiy Alexandr
Details

Description sander44 2020-06-29 11:08:54 UTC
Hi Kernel Team,

With 5.7.2, observe this issue:
[1263266.374115] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CRTC:38:crtc-0] flip_done timed out
[1263276.614099] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [PLANE:34:plane-0] flip_done timed out
[1266457.945569] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CRTC:38:crtc-0] flip_done timed out
[1266468.185524] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [PLANE:34:plane-0] flip_done timed out
[1268050.016722] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CRTC:38:crtc-0] flip_done timed out
[1268060.256836] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [PLANE:34:plane-0] flip_done timed out
[1270654.054668] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CRTC:38:crtc-0] flip_done timed out
[1270664.294675] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [PLANE:34:plane-0] flip_done timed out
[1271127.144282] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CRTC:38:crtc-0] flip_done timed out
[1271137.384328] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [PLANE:34:plane-0] flip_done timed out
[1274245.495567] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CRTC:38:crtc-0] flip_done timed out
[1274255.735657] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [PLANE:34:plane-0] flip_done timed out
[1279238.818759] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CRTC:38:crtc-0] flip_done timed out
[1279249.058822] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [PLANE:34:plane-0] flip_done timed out



dmesg | grep drm
[    2.598899] [drm] DMA map mode: Caching DMA mappings.
[    2.599179] [drm] Capabilities:
[    2.599297] [drm]   Rect copy.
[    2.599369] [drm]   Cursor.
[    2.599412] [drm]   Cursor bypass.
[    2.599461] [drm]   Cursor bypass 2.
[    2.599510] [drm]   8bit emulation.
[    2.599558] [drm]   Alpha cursor.
[    2.599605] [drm]   Extended Fifo.
[    2.599653] [drm]   Multimon.
[    2.599696] [drm]   Pitchlock.
[    2.599740] [drm]   Irq mask.
[    2.599784] [drm]   Display Topology.
[    2.599834] [drm]   GMR.
[    2.599873] [drm]   Traces.
[    2.599915] [drm]   GMR2.
[    2.599955] [drm]   Screen Object 2.
[    2.600005] [drm]   Command Buffers.
[    2.600054] [drm]   Command Buffers 2.
[    2.600105] [drm]   Guest Backed Resources.
[    2.600160] [drm]   DX Features.
[    2.600476] [drm]   HP Command Queue.
[    2.600527] [drm] Capabilities2:
[    2.600573] [drm]   Grow oTable.
[    2.600620] [drm]   IntraSurface copy.
[    2.600671] [drm] Max GMR ids is 64
[    2.600721] [drm] Max number of GMR pages is 65536
[    2.600782] [drm] Max dedicated hypervisor surface memory is 0 kiB
[    2.600857] [drm] Maximum display memory size is 16384 kiB
[    2.600925] [drm] VRAM at 0xe8000000 size is 4096 kiB
[    2.600990] [drm] MMIO at 0xfe000000 size is 256 kiB
[    2.601616] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    2.601785] [drm] Screen Target Display device initialized
[    2.601890] [drm] width 640
[    2.601938] [drm] height 480
[    2.601986] [drm] bpp 32
[    2.621888] [drm] Fifo max 0x00040000 min 0x00001000 cap 0x0000077f
[    2.625498] [drm] Using command buffers with DMA pool.
[    2.625580] [drm] Atomic: yes.
[    2.630205] fbcon: svgadrmfb (fb0) is primary device
[    2.642217] [drm] Initialized vmwgfx 2.18.0 20200114 for 0000:00:0f.0 on minor 0

cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-5.7.2-vanilla root=UUID=27e2847b-d1ad-427c-97ed-b0b65028d30a ro video=SVIDEO-1:d

lspci | grep 00:0f.0
00:0f.0 VGA compatible controller: VMware SVGA II Adapter

lspci -s 00:0f.0 -vvvvv
00:0f.0 VGA compatible controller: VMware SVGA II Adapter (prog-if 00 [VGA controller])
        Subsystem: VMware SVGA II Adapter
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 64, Cache Line Size: 32 bytes
        Interrupt: pin A routed to IRQ 16
        Region 0: I/O ports at 1070 [size=16]
        Region 1: Memory at e8000000 (32-bit, prefetchable) [size=128M]
        Region 2: Memory at fe000000 (32-bit, non-prefetchable) [size=8M]
        [virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
        Capabilities: [40] Vendor Specific Information: Len=00 <?>
        Capabilities: [44] PCI Advanced Features
                AFCap: TP+ FLR+
                AFCtrl: FLR-
                AFStatus: TP-
        Kernel driver in use: vmwgfx
        Kernel modules: vmwgfx

with 5.7.0, this issue not observe or not appear.
Comment 1 Alex Deucher 2020-06-29 15:15:28 UTC
If this is a regression between 5.7.2 and 5.7.0, can you bisect?
Comment 2 Lucas 2020-08-20 02:12:04 UTC
Having the same/similar issue with 5.8.0-2 it also started at 5.7.2 for me. 
I can reproduce by turning my monitors off for a few hours and then trying to turn them back on.    




[drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [PLANE:52:plane-4] flip_done timed out

------------[ cut here ]------------

WARNING: CPU: 14 PID: 250498 at drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_mpc.c:197 mpc1_insert_plane+0x422/0x430 [amdgpu]
Comment 3 Lucas 2020-08-31 06:18:52 UTC
(In reply to Alex Deucher from comment #1)
> If this is a regression between 5.7.2 and 5.7.0, can you bisect?

How do you Bisect? I can try doing that if it helps. 

Also, kernel 8.5.3-2 seemed to solve the issue for me but it will still happen if I leave the screens off for over 24 hours then power them back on. That's better than just powering them off overnight and having it happen.
Comment 4 Alex Deucher 2020-08-31 14:14:07 UTC
Google for "kernel git bisect howto"
Comment 5 Gluzskiy Alexandr 2020-09-06 18:27:01 UTC
Created attachment 292383 [details]
dmesg

i have similar problem on 5.8.5

if i switch SDL/SDL2 app to fullscreen mode, screen going black, gpu driver hangs, X and SDLX app cannot be killed, following appears in dmesg:
Comment 6 Michel Dänzer 2020-11-20 11:04:48 UTC
The original report here is about the vmwgfx driver; issues with amdgpu should be tracked elsewhere.

sander44, are you seeing any problem other than the messages?

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