On 2015年11月11日 00:56, Thierry Reding wrote: > On Tue, Nov 10, 2015 at 03:01:03PM +0000, Liviu Dudau wrote: >> Hello, >> >> When booting my Juno board with the HDLCD driver that I have converted to >> atomic operations I'm getting the following warning: > Perhaps you can provide pointers to the source code, that might make it > easier for people to spot what's going wrong. > > Thierry > > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/dri-devel Hi Thierry I encountered the same problem as Liviu. I'm coverting rockchip drm to atomic api, when booting with hdmi connected, get under warning: [ 1.300156] WARNING: CPU: 0 PID: 26 at drivers/gpu/drm/drm_atomic_helper.c:674 drm_atomic_helper_update_legacy_modeset_state+0x3c/0x1f8() [ 1.300161] Modules linked in: [ 1.300171] CPU: 0 PID: 26 Comm: kworker/0:1 Not tainted 4.3.0-rc5+ #160 [ 1.300174] Hardware name: Rockchip (Device Tree) [ 1.300189] Workqueue: events output_poll_execute [ 1.300224] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) [ 1.300241] [] (show_stack) from [] (dump_stack+0x6c/0x88) [ 1.300255] [] (dump_stack) from [] (warn_slowpath_common+0x80/0xa8) [ 1.300265] [] (warn_slowpath_common) from [] (warn_slowpath_null+0x18/0x1c) [ 1.300277] [] (warn_slowpath_null) from [] (drm_atomic_helper_update_legacy_modeset_state+0x3c/0x1f8) [ 1.300293] [] (drm_atomic_helper_update_legacy_modeset_state) from [] (drm_atomic_helper_commit_modeset_disables+0x208/0x364) [ 1.300305] [] (drm_atomic_helper_commit_modeset_disables) from [] (drm_atomic_helper_commit+0xf8/0x140) [ 1.300320] [] (drm_atomic_helper_commit) from [] (drm_atomic_commit+0x50/0x60) [ 1.300333] [] (drm_atomic_commit) from [] (restore_fbdev_mode+0xf4/0x278) [ 1.300345] [] (restore_fbdev_mode) from [] (drm_fb_helper_restore_fbdev_mode_unlocked+0x30/0x68) [ 1.300357] [] (drm_fb_helper_restore_fbdev_mode_unlocked) from [] (drm_fb_helper_set_par+0x3c/0x54) [ 1.300368] [] (drm_fb_helper_set_par) from [] (drm_fb_helper_hotplug_event+0xe4/0xfc) [ 1.300382] [] (drm_fb_helper_hotplug_event) from [] (drm_kms_helper_hotplug_event+0x24/0x28) [ 1.300396] [] (drm_kms_helper_hotplug_event) from [] (output_poll_execute+0x134/0x18c) [ 1.300413] [] (output_poll_execute) from [] (process_one_work+0x1e0/0x318) [ 1.300426] [] (process_one_work) from [] (worker_thread+0x378/0x4c4) [ 1.300438] [] (worker_thread) from [] (kthread+0xdc/0xf0) [ 1.300450] [] (kthread) from [] (ret_from_fork+0x14/0x3c) I can't found who can set encoder->crtc value before atomic_commit, what's going wrong? -- Mark Yao