[BUG] drm/vc4: *ERROR* [PLANE:67:plane-20] flip_done timed out

Stefan Wahren stefan.wahren at i2se.com
Sat Feb 10 15:57:23 UTC 2018


Hi,
i'm having problems while booting Raspberry Pi 1 B (Linux 4.15, bcm2835_defconfig) on my display, which is connected via HDMI. Mostly the screen stays black and i'm getting the following warnings via debug UART. Sometimes after disconnecting HDMI, i'm getting the expected screen.

[    3.253930] vc4-drm soc:gpu: bound 20902000.hdmi (ops vc4_hdmi_ops)
[    3.283413] vc4-drm soc:gpu: bound 20806000.vec (ops vc4_vec_ops)
[    3.310306] vc4-drm soc:gpu: bound 20400000.hvs (ops vc4_hvs_ops)
[    3.339131] vc4-drm soc:gpu: bound 20206000.pixelvalve (ops vc4_crtc_ops)
[    3.368727] vc4-drm soc:gpu: bound 20207000.pixelvalve (ops vc4_crtc_ops)
[    3.397935] vc4-drm soc:gpu: bound 20807000.pixelvalve (ops vc4_crtc_ops)
[    3.450306] vc4-drm soc:gpu: bound 20c00000.v3d (ops vc4_v3d_ops)
[    3.475686] checking generic (e330000 8ca000) vs hw (0 ffffffff)
[    3.475700] fb: switching to vc4drmfb from simple
[    3.499714] Console: switching to colour dummy device 80x30
[    3.520255] [drm] Initialized vc4 0.0.0 20140616 for soc:gpu on minor 0
[    3.527030] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    3.533779] [drm] Driver supports precise vblank timestamp query.
[    3.647269] ------------[ cut here ]------------
[    3.647320] WARNING: CPU: 0 PID: 10 at drivers/gpu/drm/drm_atomic_helper.c:1349 drm_atomic_helper_wait_for_vblanks+0x1fc/0x21c
[    3.647328] [CRTC:68:crtc-2] vblank wait timed out
[    3.647333] Modules linked in:
[    3.647354] CPU: 0 PID: 10 Comm: kworker/0:1 Not tainted 4.15.0+ #2
[    3.647358] Hardware name: BCM2835
[    3.647383] Workqueue: events deferred_probe_work_func
[    3.647429] [<c010fd80>] (unwind_backtrace) from [<c010d0dc>] (show_stack+0x20/0x24)
[    3.647459] [<c010d0dc>] (show_stack) from [<c07914f4>] (dump_stack+0x20/0x28)
[    3.647488] [<c07914f4>] (dump_stack) from [<c011f620>] (__warn+0xec/0x104)
[    3.647509] [<c011f620>] (__warn) from [<c011f680>] (warn_slowpath_fmt+0x48/0x50)
[    3.647532] [<c011f680>] (warn_slowpath_fmt) from [<c044b564>] (drm_atomic_helper_wait_for_vblanks+0x1fc/0x21c)
[    3.647556] [<c044b564>] (drm_atomic_helper_wait_for_vblanks) from [<c04815e4>] (vc4_atomic_complete_commit+0x80/0xb8)
[    3.647575] [<c04815e4>] (vc4_atomic_complete_commit) from [<c048172c>] (vc4_atomic_commit+0x110/0x11c)
[    3.647600] [<c048172c>] (vc4_atomic_commit) from [<c0468974>] (drm_atomic_commit+0x54/0x68)
[    3.647628] [<c0468974>] (drm_atomic_commit) from [<c044f4f0>] (restore_fbdev_mode_atomic+0x84/0x1bc)
[    3.647653] [<c044f4f0>] (restore_fbdev_mode_atomic) from [<c0450bb8>] (restore_fbdev_mode+0x38/0x144)
[    3.647675] [<c0450bb8>] (restore_fbdev_mode) from [<c0452184>] (drm_fb_helper_restore_fbdev_mode_unlocked+0x58/0x8c)
[    3.647698] [<c0452184>] (drm_fb_helper_restore_fbdev_mode_unlocked) from [<c0452214>] (drm_fb_helper_set_par+0x5c/0x6c)
[    3.647718] [<c0452214>] (drm_fb_helper_set_par) from [<c03f9288>] (fbcon_init+0x2f4/0x488)
[    3.647747] [<c03f9288>] (fbcon_init) from [<c042774c>] (visual_init+0xc8/0x114)
[    3.647771] [<c042774c>] (visual_init) from [<c04293a8>] (do_bind_con_driver+0x280/0x2f4)
[    3.647792] [<c04293a8>] (do_bind_con_driver) from [<c04297a0>] (do_take_over_console+0x180/0x1b8)
[    3.647813] [<c04297a0>] (do_take_over_console) from [<c03f947c>] (do_fbcon_takeover+0x60/0xc8)
[    3.647832] [<c03f947c>] (do_fbcon_takeover) from [<c03fc534>] (fbcon_event_notify+0x40c/0x7a0)
[    3.647858] [<c03fc534>] (fbcon_event_notify) from [<c013e5d4>] (notifier_call_chain+0x50/0x74)
[    3.647881] [<c013e5d4>] (notifier_call_chain) from [<c013eb2c>] (__blocking_notifier_call_chain+0x54/0x6c)
[    3.647902] [<c013eb2c>] (__blocking_notifier_call_chain) from [<c013eb6c>] (blocking_notifier_call_chain+0x28/0x30)
[    3.647931] [<c013eb6c>] (blocking_notifier_call_chain) from [<c03f1d38>] (fb_notifier_call_chain+0x24/0x2c)
[    3.647953] [<c03f1d38>] (fb_notifier_call_chain) from [<c03f3858>] (register_framebuffer+0x220/0x264)
[    3.647979] [<c03f3858>] (register_framebuffer) from [<c0451e10>] (__drm_fb_helper_initial_config_and_unlock+0x2b8/0x354)
[    3.648003] [<c0451e10>] (__drm_fb_helper_initial_config_and_unlock) from [<c0451eec>] (drm_fb_helper_initial_config+0x40/0x48)
[    3.648025] [<c0451eec>] (drm_fb_helper_initial_config) from [<c0452578>] (drm_fb_cma_fbdev_init_with_funcs+0xe4/0x144)
[    3.648046] [<c0452578>] (drm_fb_cma_fbdev_init_with_funcs) from [<c04525f4>] (drm_fb_cma_fbdev_init+0x1c/0x20)
[    3.648066] [<c04525f4>] (drm_fb_cma_fbdev_init) from [<c04818cc>] (vc4_kms_load+0x9c/0xb4)
[    3.648104] [<c04818cc>] (vc4_kms_load) from [<c047d2fc>] (vc4_drm_bind+0xf0/0x134)
[    3.648139] [<c047d2fc>] (vc4_drm_bind) from [<c048bec4>] (try_to_bring_up_master+0x1e8/0x24c)
[    3.648161] [<c048bec4>] (try_to_bring_up_master) from [<c048bfe8>] (component_add+0xc0/0x120)
[    3.648180] [<c048bfe8>] (component_add) from [<c0488f68>] (vc4_v3d_dev_probe+0x20/0x28)
[    3.648208] [<c0488f68>] (vc4_v3d_dev_probe) from [<c0493da0>] (platform_drv_probe+0x60/0xac)
[    3.648230] [<c0493da0>] (platform_drv_probe) from [<c04922fc>] (driver_probe_device+0x2d4/0x46c)
[    3.648250] [<c04922fc>] (driver_probe_device) from [<c0492690>] (__device_attach_driver+0xb0/0x104)
[    3.648269] [<c0492690>] (__device_attach_driver) from [<c0490408>] (bus_for_each_drv+0x98/0xa0)
[    3.648287] [<c0490408>] (bus_for_each_drv) from [<c0491f20>] (__device_attach+0xac/0x138)
[    3.648305] [<c0491f20>] (__device_attach) from [<c0492700>] (device_initial_probe+0x1c/0x20)
[    3.648323] [<c0492700>] (device_initial_probe) from [<c0491214>] (bus_probe_device+0x38/0x90)
[    3.648342] [<c0491214>] (bus_probe_device) from [<c0491890>] (deferred_probe_work_func+0x124/0x144)
[    3.648367] [<c0491890>] (deferred_probe_work_func) from [<c0136e60>] (process_one_work+0x21c/0x3f8)
[    3.648390] [<c0136e60>] (process_one_work) from [<c0137ea0>] (worker_thread+0x2f4/0x480)
[    3.648417] [<c0137ea0>] (worker_thread) from [<c013ccc8>] (kthread+0x144/0x160)
[    3.648439] [<c013ccc8>] (kthread) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
[    3.648447] Exception stack(0xc99d5fb0 to 0xc99d5ff8)
[    3.648459] 5fa0:                                     00000000 00000000 00000000 00000000
[    3.648474] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.648486] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    3.648495] ---[ end trace 360023f14f7b2e4d ]---
[   13.927296] [drm:drm_atomic_helper_wait_for_dependencies] *ERROR* [CRTC:68:crtc-2] flip_done timed out
[   24.167288] [drm:drm_atomic_helper_wait_for_dependencies] *ERROR* [CONNECTOR:29:HDMI-A-1] flip_done timed out
[   34.407297] [drm:drm_atomic_helper_wait_for_dependencies] *ERROR* [PLANE:67:plane-20] flip_done timed out
...

Additionally after 10 minutes there are memleaks like this:

unreferenced object 0xc8cb5c00 (size 64):
  comm "kworker/0:1", pid 10, jiffies 4294937654 (age 881.050s)
  hex dump (first 32 bytes):
    10 e0 ca c8 01 00 00 00 00 00 00 00 0c 5c cb c8  .............\..
    0c 5c cb c8 ff ff ff ff 18 5c cb c8 18 5c cb c8  .\.......\...\..
  backtrace:
    [<7c3bc269>] kmemleak_alloc+0x78/0xc0
    [<c58d2bd1>] kmem_cache_alloc_trace+0xfc/0x1e4
    [<6ecb9de5>] drm_atomic_helper_setup_commit+0xa4/0x3b8
    [<e4fdc746>] vc4_atomic_commit+0x30/0x11c
    [<ab19bb72>] drm_atomic_commit+0x54/0x68
    [<2696a73b>] restore_fbdev_mode_atomic+0x84/0x1bc
    [<c737e815>] restore_fbdev_mode+0x38/0x144
    [<4c4b4293>] drm_fb_helper_restore_fbdev_mode_unlocked+0x58/0x8c
    [<ed0a3156>] drm_fb_helper_set_par+0x5c/0x6c
    [<543801a1>] fbcon_init+0x2f4/0x488
    [<13f91af6>] visual_init+0xc8/0x114
    [<a4140ca9>] do_bind_con_driver+0x280/0x2f4
    [<7805903d>] do_take_over_console+0x180/0x1b8
    [<b79ab12c>] do_fbcon_takeover+0x60/0xc8
    [<fa01164c>] fbcon_event_notify+0x40c/0x7a0
    [<a8b3b3c1>] notifier_call_chain+0x50/0x74
unreferenced object 0xc9143480 (size 128):
  comm "kworker/0:1", pid 10, jiffies 4294937654 (age 881.050s)
  hex dump (first 32 bytes):
    08 5c cb c8 7c 9e 44 c0 00 00 00 00 00 00 00 00  .\..|.D.........
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<7c3bc269>] kmemleak_alloc+0x78/0xc0
    [<c58d2bd1>] kmem_cache_alloc_trace+0xfc/0x1e4
    [<145bea8a>] drm_atomic_helper_setup_commit+0x238/0x3b8
    [<e4fdc746>] vc4_atomic_commit+0x30/0x11c
    [<ab19bb72>] drm_atomic_commit+0x54/0x68
    [<2696a73b>] restore_fbdev_mode_atomic+0x84/0x1bc
    [<c737e815>] restore_fbdev_mode+0x38/0x144
    [<4c4b4293>] drm_fb_helper_restore_fbdev_mode_unlocked+0x58/0x8c
    [<ed0a3156>] drm_fb_helper_set_par+0x5c/0x6c
    [<543801a1>] fbcon_init+0x2f4/0x488
    [<13f91af6>] visual_init+0xc8/0x114
    [<a4140ca9>] do_bind_con_driver+0x280/0x2f4
    [<7805903d>] do_take_over_console+0x180/0x1b8
    [<b79ab12c>] do_fbcon_takeover+0x60/0xc8
    [<fa01164c>] fbcon_event_notify+0x40c/0x7a0
    [<a8b3b3c1>] notifier_call_chain+0x50/0x74


More information about the dri-devel mailing list