From: Tomi Valkeinen <tomi.valkeinen@ti.com>
To: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
Cc: dri-devel <dri-devel@lists.freedesktop.org>
Subject: Re: Possible fb ref count issue with drm_plane_force_disable()
Date: Mon, 14 Apr 2014 11:43:44 +0300 [thread overview]
Message-ID: <534B9FC0.2020700@ti.com> (raw)
In-Reply-To: <20140411115054.GC18465@intel.com>
[-- Attachment #1.1.1: Type: text/plain, Size: 1563 bytes --]
On 11/04/14 14:50, Ville Syrjälä wrote:
>> So the explicit unref done by drm_plane_force_disable() seems a bit out
>> of place. I can't figure out which drm_framebuffer_reference() would be
>> the matching one for the unref done by drm_plane_force_disable().
>>
>> Any ideas what ref is that? Or is the __drm_framebuffer_unreference()
>> extra in drm_plane_force_disable()?
>
> That's the reference that was taken by the drm_mode_setplane() when it
> succesfully called the .update_plane() hook.
But drm_mode_setplane() is called via DRM_IOCTL_MODE_SETPLANE, which is
only used for "proper" planes, not for crtc primary planes, right?
At least I don't see drm_mode_setplane() in my stack traces, and git
grep doesn't show it called via any other means than ioctl.
I am not using any planes from my app, just the crtc and (indirectly)
its primary plane.
I've attached a slightly cleaned up log when running my test app. I have
dump_stack()s in the drm_framebuffer_(un)reference functions, and a
printk just before the dump_stack which prints something like "REF FB
ID: 36: 2", where 36 is the fb id, and 2 is the ref count after the
ref/unref.
In the middle of the log there are multiple blank lines, that's where I
ctrl-c the app and it starts shutting down. FB ID 35 is probably the
fbconsole fb, and 36 is the app's fb. And at some point the FB ID 36
changes to 0, as the drm framework clears it.
> __drm_framebuffer_unregister() drops the "idr reference" taken in
> drm_framebuffer_init().
What's "idr"?
Tomi
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.1.2: m.log --]
[-- Type: text/x-log; name="m.log", Size: 23613 bytes --]
# ./nfs/work/omapdrm-tests/perf
using card '/dev/dri/card0'
mode for connector 5 is 1920x1200
1920x1200, stride 7680, size 9216000
[ 3145.642944] REF FB ID: 36: 2
[ 3145.649841] CPU: 0 PID: 1525 Comm: perf Tainted: G W 3.15.0-rc1-00033-g16787b3dfc0f #45
[ 3145.661102] Backtrace:
[ 3145.663726] [<c0012bfc>] (dump_backtrace) from [<c0012d98>] (show_stack+0x18/0x1c)
[ 3145.672058] [<c0012d80>] (show_stack) from [<c05b80bc>] (dump_stack+0x94/0xc8)
[ 3145.685607] [<c05b8028>] (dump_stack) from [<bf1cc90c>] (drm_framebuffer_reference+0x54/0x98 [drm])
[ 3145.695251] [<bf1cc8b8>] (drm_framebuffer_reference [drm]) from [<bf1ce0ac>] (drm_framebuffer_init+0x64/0x94 [drm])
[ 3145.714233] [<bf1ce048>] (drm_framebuffer_init [drm]) from [<bf233614>] (omap_framebuffer_init+0x1ec/0x2b0 [omapdrm])
[ 3145.729888] [<bf233428>] (omap_framebuffer_init [omapdrm]) from [<bf2337c0>] (omap_framebuffer_create+0xe8/0x210 [omapdrm])
[ 3145.754577] [<bf2336d8>] (omap_framebuffer_create [omapdrm]) from [<bf1d0f24>] (drm_mode_addfb2+0x6b8/0x88c [drm])
[ 3145.776672] [<bf1d086c>] (drm_mode_addfb2 [drm]) from [<bf1c313c>] (drm_ioctl+0x198/0x508 [drm])
[ 3145.797180] [<bf1c2fa4>] (drm_ioctl [drm]) from [<c013b544>] (do_vfs_ioctl+0x80/0x628)
[ 3145.810394] [<c013b4c4>] (do_vfs_ioctl) from [<c013bb58>] (SyS_ioctl+0x6c/0x7c)
[ 3145.829864] [<c013baec>] (SyS_ioctl) from [<c000f580>] (ret_fast_syscall+0x0/0x48)
[ 3145.851776] ===========================
[ 3145.851776]
ignoring unused connector 12
[ 3145.952850] REF FB ID: 36: 3
[ 3145.953002] CPU: 0 PID: 1525 Comm: perf Tainted: G W 3.15.0-rc1-00033-g16787b3dfc0f #45
[ 3145.967956] Backtrace:
[ 3145.970367] [<c0012bfc>] (dump_backtrace) from [<c0012d98>] (show_stack+0x18/0x1c)
[ 3145.983367] [<c0012d80>] (show_stack) from [<c05b80bc>] (dump_stack+0x94/0xc8)
[ 3145.992370] [<c05b8028>] (dump_stack) from [<bf1cc90c>] (drm_framebuffer_reference+0x54/0x98 [drm])
[ 3146.002105] [<bf1cc8b8>] (drm_framebuffer_reference [drm]) from [<bf1ccb98>] (drm_framebuffer_lookup+0x3c/0x4c [drm])
[ 3146.017639] [<bf1ccb5c>] (drm_framebuffer_lookup [drm]) from [<bf1d027c>] (drm_mode_setcrtc+0xf0/0x4f4 [drm])
[ 3146.032196] [<bf1d018c>] (drm_mode_setcrtc [drm]) from [<bf1c313c>] (drm_ioctl+0x198/0x508 [drm])
[ 3146.056213] [<bf1c2fa4>] (drm_ioctl [drm]) from [<c013b544>] (do_vfs_ioctl+0x80/0x628)
[ 3146.075378] [<c013b4c4>] (do_vfs_ioctl) from [<c013bb58>] (SyS_ioctl+0x6c/0x7c)
[ 3146.096649] [<c013baec>] (SyS_ioctl) from [<c000f580>] (ret_fast_syscall+0x0/0x48)
[ 3146.105285] ===========================
[ 3146.105285]
[ 3146.119659] REF FB ID: 36: 4
[ 3146.122772] CPU: 0 PID: 1525 Comm: perf Tainted: G W 3.15.0-rc1-00033-g16787b3dfc0f #45
[ 3146.132232] Backtrace:
[ 3146.132232] [<c0012bfc>] (dump_backtrace) from [<c0012d98>] (show_stack+0x18/0x1c)
[ 3146.143157] [<c0012d80>] (show_stack) from [<c05b80bc>] (dump_stack+0x94/0xc8)
[ 3146.156524] [<c05b8028>] (dump_stack) from [<bf1cc90c>] (drm_framebuffer_reference+0x54/0x98 [drm])
[ 3146.157073] [<bf1cc8b8>] (drm_framebuffer_reference [drm]) from [<bf1cca68>] (drm_mode_set_config_internal+0xa8/0xf0 [drm])
[ 3146.182342] [<bf1cc9c0>] (drm_mode_set_config_internal [drm]) from [<bf1d0258>] (drm_mode_setcrtc+0xcc/0x4f4 [drm])
[ 3146.200714] [<bf1d018c>] (drm_mode_setcrtc [drm]) from [<bf1c313c>] (drm_ioctl+0x198/0x508 [drm])
[ 3146.223815] [<bf1c2fa4>] (drm_ioctl [drm]) from [<c013b544>] (do_vfs_ioctl+0x80/0x628)
[ 3146.240539] [<c013b4c4>] (do_vfs_ioctl) from [<c013bb58>] (SyS_ioctl+0x6c/0x7c)
[ 3146.259918] [<c013baec>] (SyS_ioctl) from [<c000f580>] (ret_fast_syscall+0x0/0x48)
[ 3146.278350] ===========================
[ 3146.278350]
[ 3146.283996] UNREF FB ID: 35: 3
[ 3146.284454] CPU: 0 PID: 1525 Comm: perf Tainted: G W 3.15.0-rc1-00033-g16787b3dfc0f #45
[ 3146.296722] Backtrace:
[ 3146.296905] [<c0012bfc>] (dump_backtrace) from [<c0012d98>] (show_stack+0x18/0x1c)
[ 3146.309875] [<c0012d80>] (show_stack) from [<c05b80bc>] (dump_stack+0x94/0xc8)
[ 3146.319763] [<c05b8028>] (dump_stack) from [<bf1cc978>] (drm_framebuffer_unreference+0x28/0x70 [drm])
[ 3146.334899] [<bf1cc950>] (drm_framebuffer_unreference [drm]) from [<bf1cca78>] (drm_mode_set_config_internal+0xb8/0xf0 [drm])
[ 3146.347167] [<bf1cc9c0>] (drm_mode_set_config_internal [drm]) from [<bf1d0258>] (drm_mode_setcrtc+0xcc/0x4f4 [drm])
[ 3146.362243] [<bf1d018c>] (drm_mode_setcrtc [drm]) from [<bf1c313c>] (drm_ioctl+0x198/0x508 [drm])
[ 3146.381774] [<bf1c2fa4>] (drm_ioctl [drm]) from [<c013b544>] (do_vfs_ioctl+0x80/0x628)
[ 3146.402191] [<c013b4c4>] (do_vfs_ioctl) from [<c013bb58>] (SyS_ioctl+0x6c/0x7c)
[ 3146.420684] [<c013baec>] (SyS_ioctl) from [<c000f580>] (ret_fast_syscall+0x0/0x48)
[ 3146.439788] ===========================
[ 3146.439788]
[ 3146.448791] UNREF FB ID: 36: 3
[ 3146.452056] CPU: 0 PID: 1525 Comm: perf Tainted: G W 3.15.0-rc1-00033-g16787b3dfc0f #45
[ 3146.461547] Backtrace:
[ 3146.464172] [<c0012bfc>] (dump_backtrace) from [<c0012d98>] (show_stack+0x18/0x1c)
[ 3146.472930] [<c0012d80>] (show_stack) from [<c05b80bc>] (dump_stack+0x94/0xc8)
[ 3146.485992] [<c05b8028>] (dump_stack) from [<bf1cc978>] (drm_framebuffer_unreference+0x28/0x70 [drm])
[ 3146.499755] [<bf1cc950>] (drm_framebuffer_unreference [drm]) from [<bf1d03d0>] (drm_mode_setcrtc+0x244/0x4f4 [drm])
[ 3146.511077] [<bf1d018c>] (drm_mode_setcrtc [drm]) from [<bf1c313c>] (drm_ioctl+0x198/0x508 [drm])
[ 3146.535278] [<bf1c2fa4>] (drm_ioctl [drm]) from [<c013b544>] (do_vfs_ioctl+0x80/0x628)
[ 3146.550720] [<c013b4c4>] (do_vfs_ioctl) from [<c013bb58>] (SyS_ioctl+0x6c/0x7c)
[ 3146.573486] [<c013baec>] (SyS_ioctl) from [<c000f580>] (ret_fast_syscall+0x0/0x48)
[ 3146.589904] ===========================
[ 3146.589904]
sequential_line_read: [ 3146.627410] UPDATE PIN REF
[ 3146.630371] REF FB ID: 36: 4
[ 3146.630584] CPU: 1 PID: 1519 Comm: kworker/u4:0 Tainted: G W 3.15.0-rc1-00033-g16787b3dfc0f #45
[ 3146.643646] Workqueue: omapdrm apply_worker [omapdrm]
[ 3146.643646] Backtrace:
[ 3146.651733] [<c0012bfc>] (dump_backtrace) from [<c0012d98>] (show_stack+0x18/0x1c)
[ 3146.663604] [<c0012d80>] (show_stack) from [<c05b80bc>] (dump_stack+0x94/0xc8)
[ 3146.663604] [<c05b8028>] (dump_stack) from [<bf1cc90c>] (drm_framebuffer_reference+0x54/0x98 [drm])
[ 3146.683563] [<bf1cc8b8>] (drm_framebuffer_reference [drm]) from [<bf231c44>] (omap_plane_pre_apply+0x188/0x248 [omapdrm])
[ 3146.702331] [<bf231abc>] (omap_plane_pre_apply [omapdrm]) from [<bf2310b8>] (apply_worker+0xb0/0x178 [omapdrm])
[ 3146.721527] [<bf231008>] (apply_worker [omapdrm]) from [<c005e8f0>] (process_one_work+0x1b8/0x510)
[ 3146.740753] [<c005e738>] (process_one_work) from [<c005f050>] (worker_thread+0x120/0x394)
[ 3146.764434] [<c005ef30>] (worker_thread) from [<c0065e9c>] (kthread+0xd0/0xec)
[ 3146.783142] [<c0065dcc>] (kthread) from [<c000f648>] (ret_from_fork+0x14/0x2c)
[ 3146.795562] ===========================
[ 3146.795562]
[ 3146.810913] sleep
[ 3148.320739] sleep done
[ 3148.320739] UNPIN WORKER UNREF
[ 3148.320739] UNREF FB ID: 35: 2
[ 3148.329681] CPU: 1 PID: 1519 Comm: kworker/u4:0 Tainted: G W 3.15.0-rc1-00033-g16787b3dfc0f #45
[ 3148.340087] Workqueue: omapdrm flip_worker [drm]
[ 3148.340087] Backtrace:
[ 3148.340087] [<c0012bfc>] (dump_backtrace) from [<c0012d98>] (show_stack+0x18/0x1c)
[ 3148.361633] [<c0012d80>] (show_stack) from [<c05b80bc>] (dump_stack+0x94/0xc8)
[ 3148.369354] [<c05b8028>] (dump_stack) from [<bf1cc978>] (drm_framebuffer_unreference+0x28/0x70 [drm])
[ 3148.381744] [<bf1cc950>] (drm_framebuffer_unreference [drm]) from [<bf231d58>] (unpin_worker+0x54/0x70 [omapdrm])
[ 3148.396453] [<bf231d04>] (unpin_worker [omapdrm]) from [<bf1da5bc>] (flip_worker+0x94/0xa0 [drm])
[ 3148.410858] [<bf1da528>] (flip_worker [drm]) from [<c005e8f0>] (process_one_work+0x1b8/0x510)
[ 3148.427215] [<c005e738>] (process_one_work) from [<c005f050>] (worker_thread+0x120/0x394)
[ 3148.445404] [<c005ef30>] (worker_thread) from [<c0065e9c>] (kthread+0xd0/0xec)
[ 3148.466766] [<c0065dcc>] (kthread) from [<c000f648>] (ret_from_fork+0x14/0x2c)
[ 3148.480407] ===========================
[ 3148.480407]
72 frames, 3164001 us, 22 fps
sequential_line_write:
\x03[ 3152.279907] __UNREF FB ID: 0: 3
[ 3152.283325] CPU: 1 PID: 1525 Comm: perf Tainted: G W 3.15.0-rc1-00033-g16787b3dfc0f #45
[ 3152.292846] Backtrace:
[ 3152.293182] [<c0012bfc>] (dump_backtrace) from [<c0012d98>] (show_stack+0x18/0x1c)
[ 3152.306427] [<c0012d80>] (show_stack) from [<c05b80bc>] (dump_stack+0x94/0xc8)
[ 3152.317199] [<c05b8028>] (dump_stack) from [<bf1cc7ec>] (__drm_framebuffer_unreference+0x28/0x6c [drm])
[ 3152.329895] [<bf1cc7c4>] (__drm_framebuffer_unreference [drm]) from [<bf1cc878>] (__drm_framebuffer_unregister+0x48/0x4c [drm])
[ 3152.347564] [<bf1cc830>] (__drm_framebuffer_unregister [drm]) from [<bf1d14a4>] (drm_fb_release+0x60/0xa4 [drm])
[ 3152.360870] [<bf1d1444>] (drm_fb_release [drm]) from [<bf1c4298>] (drm_release+0x494/0x544 [drm])
[ 3152.379943] [<bf1c3e04>] (drm_release [drm]) from [<c012b828>] (__fput+0x9c/0x1ec)
[ 3152.400238] [<c012b78c>] (__fput) from [<c012b9d8>] (____fput+0x10/0x14)
[ 3152.421020] [<c012b9c8>] (____fput) from [<c0062c80>] (task_work_run+0xbc/0x100)
[ 3152.431365] [<c0062bc4>] (task_work_run) from [<c00473d0>] (do_exit+0x2f8/0x950)
[ 3152.441772] [<c00470d8>] (do_exit) from [<c0047b3c>] (do_group_exit+0x44/0xb8)
[ 3152.457855] [<c0047af8>] (do_group_exit) from [<c0055d04>] (get_signal_to_deliver+0x23c/0x67c)
[ 3152.472320] [<c0055ac8>] (get_signal_to_deliver) from [<c05b4504>] (do_signal+0xb4/0x3d8)
[ 3152.490112] [<c05b4450>] (do_signal) from [<c0012588>] (do_work_pending+0xa4/0xe4)
[ 3152.501098] [<c00124e4>] (do_work_pending) from [<c000f5d8>] (work_pending+0xc/0x20)
[ 3152.525726] ===========================
[ 3152.525726]
[ 3152.531799] UNREF FB ID: 0: 2
[ 3152.532073] CPU: 1 PID: 1525 Comm: perf Tainted: G W 3.15.0-rc1-00033-g16787b3dfc0f #45
[ 3152.544464] Backtrace:
[ 3152.544647] [<c0012bfc>] (dump_backtrace) from [<c0012d98>] (show_stack+0x18/0x1c)
[ 3152.560943] [<c0012d80>] (show_stack) from [<c05b80bc>] (dump_stack+0x94/0xc8)
[ 3152.564147] [<c05b8028>] (dump_stack) from [<bf1cc978>] (drm_framebuffer_unreference+0x28/0x70 [drm])
[ 3152.581207] [<bf1cc950>] (drm_framebuffer_unreference [drm]) from [<bf1cca78>] (drm_mode_set_config_internal+0xb8/0xf0 [drm])
[ 3152.595062] [<bf1cc9c0>] (drm_mode_set_config_internal [drm]) from [<bf1cd0f4>] (drm_framebuffer_remove+0x10c/0x14c [drm])
[ 3152.610778] [<bf1ccfe8>] (drm_framebuffer_remove [drm]) from [<bf1d14c8>] (drm_fb_release+0x84/0xa4 [drm])
[ 3152.633911] [<bf1d1444>] (drm_fb_release [drm]) from [<bf1c4298>] (drm_release+0x494/0x544 [drm])
[ 3152.650756] [<bf1c3e04>] (drm_release [drm]) from [<c012b828>] (__fput+0x9c/0x1ec)
[ 3152.669921] [<c012b78c>] (__fput) from [<c012b9d8>] (____fput+0x10/0x14)
[ 3152.690704] [<c012b9c8>] (____fput) from [<c0062c80>] (task_work_run+0xbc/0x100)
[ 3152.701080] [<c0062bc4>] (task_work_run) from [<c00473d0>] (do_exit+0x2f8/0x950)
[ 3152.711456] [<c00470d8>] (do_exit) from [<c0047b3c>] (do_group_exit+0x44/0xb8)
[ 3152.725189] [<c0047af8>] (do_group_exit) from [<c0055d04>] (get_signal_to_deliver+0x23c/0x67c)
[ 3152.740295] [<c0055ac8>] (get_signal_to_deliver) from [<c05b4504>] (do_signal+0xb4/0x3d8)
[ 3152.762481] [<c05b4450>] (do_signal) from [<c0012588>] (do_work_pending+0xa4/0xe4)
[ 3152.776824] [<c00124e4>] (do_work_pending) from [<c000f5d8>] (work_pending+0xc/0x20)
[ 3152.792205] ===========================
[ 3152.792205]
[ 3152.899841]
[ 3152.899841]
[ 3152.899841] ====
[ 3152.899841] ABOUT TO FORCE DISABLE PLANE
[ 3152.909057] __UNREF FB ID: 0: 1
[ 3152.912384] CPU: 1 PID: 1525 Comm: perf Tainted: G W 3.15.0-rc1-00033-g16787b3dfc0f #45
[ 3152.921905] Backtrace:
[ 3152.922821] [<c0012bfc>] (dump_backtrace) from [<c0012d98>] (show_stack+0x18/0x1c)
[ 3152.938568] [<c0012d80>] (show_stack) from [<c05b80bc>] (dump_stack+0x94/0xc8)
[ 3152.938568] [<c05b8028>] (dump_stack) from [<bf1cc7ec>] (__drm_framebuffer_unreference+0x28/0x6c [drm])
[ 3152.959930] [<bf1cc7c4>] (__drm_framebuffer_unreference [drm]) from [<bf1cce1c>] (drm_plane_force_disable+0x38/0x60 [drm])
[ 3152.972442] [<bf1ccde4>] (drm_plane_force_disable [drm]) from [<bf1cd118>] (drm_framebuffer_remove+0x130/0x14c [drm])
[ 3152.991302] [<bf1ccfe8>] (drm_framebuffer_remove [drm]) from [<bf1d14c8>] (drm_fb_release+0x84/0xa4 [drm])
[ 3153.002197] [<bf1d1444>] (drm_fb_release [drm]) from [<bf1c4298>] (drm_release+0x494/0x544 [drm])
[ 3153.030517] [<bf1c3e04>] (drm_release [drm]) from [<c012b828>] (__fput+0x9c/0x1ec)
[ 3153.041168] [<c012b78c>] (__fput) from [<c012b9d8>] (____fput+0x10/0x14)
[ 3153.067687] [<c012b9c8>] (____fput) from [<c0062c80>] (task_work_run+0xbc/0x100)
[ 3153.075622] [<c0062bc4>] (task_work_run) from [<c00473d0>] (do_exit+0x2f8/0x950)
[ 3153.083526] [<c00470d8>] (do_exit) from [<c0047b3c>] (do_group_exit+0x44/0xb8)
[ 3153.099365] [<c0047af8>] (do_group_exit) from [<c0055d04>] (get_signal_to_deliver+0x23c/0x67c)
[ 3153.111846] [<c0055ac8>] (get_signal_to_deliver) from [<c05b4504>] (do_signal+0xb4/0x3d8)
[ 3153.134246] [<c05b4450>] (do_signal) from [<c0012588>] (do_work_pending+0xa4/0xe4)
[ 3153.149810] [<c00124e4>] (do_work_pending) from [<c000f5d8>] (work_pending+0xc/0x20)
[ 3153.161926] ===========================
[ 3153.161926]
[ 3153.269805]
[ 3153.269805]
[ 3153.269805] ====
[ 3153.269805] FORCE DISABLE PLANE done
[ 3153.269805]
[ 3153.280273] UNREF FB ID: 0: 0
[ 3153.283264] CPU: 1 PID: 1525 Comm: perf Tainted: G W 3.15.0-rc1-00033-g16787b3dfc0f #45
[ 3153.283477] sleep
[ 3153.294921] Backtrace:
[ 3153.296264] [<c0012bfc>] (dump_backtrace) from [<c0012d98>] (show_stack+0x18/0x1c)
[ 3153.311645] [<c0012d80>] (show_stack) from [<c05b80bc>] (dump_stack+0x94/0xc8)
[ 3153.319305] [<c05b8028>] (dump_stack) from [<bf1cc978>] (drm_framebuffer_unreference+0x28/0x70 [drm])
[ 3153.331756] [<bf1cc950>] (drm_framebuffer_unreference [drm]) from [<bf1cd024>] (drm_framebuffer_remove+0x3c/0x14c [drm])
[ 3153.345153] [<bf1ccfe8>] (drm_framebuffer_remove [drm]) from [<bf1d14c8>] (drm_fb_release+0x84/0xa4 [drm])
[ 3153.361572] [<bf1d1444>] (drm_fb_release [drm]) from [<bf1c4298>] (drm_release+0x494/0x544 [drm])
[ 3153.384216] [<bf1c3e04>] (drm_release [drm]) from [<c012b828>] (__fput+0x9c/0x1ec)
[ 3153.405364] [<c012b78c>] (__fput) from [<c012b9d8>] (____fput+0x10/0x14)
[ 3153.424804] [<c012b9c8>] (____fput) from [<c0062c80>] (task_work_run+0xbc/0x100)
[ 3153.433227] [<c0062bc4>] (task_work_run) from [<c00473d0>] (do_exit+0x2f8/0x950)
[ 3153.445343] [<c00470d8>] (do_exit) from [<c0047b3c>] (do_group_exit+0x44/0xb8)
[ 3153.457336] [<c0047af8>] (do_group_exit) from [<c0055d04>] (get_signal_to_deliver+0x23c/0x67c)
[ 3153.471343] [<c0055ac8>] (get_signal_to_deliver) from [<c05b4504>] (do_signal+0xb4/0x3d8)
[ 3153.491394] [<c05b4450>] (do_signal) from [<c0012588>] (do_work_pending+0xa4/0xe4)
[ 3153.509094] [<c00124e4>] (do_work_pending) from [<c000f5d8>] (work_pending+0xc/0x20)
[ 3153.521850] ===========================
[ 3153.521850]
[ 3153.533233] destroy: FB ID: 0 (eb48f7c0)
[ 3153.569152] REF FB ID: 35: 3
[ 3153.572265] CPU: 1 PID: 1525 Comm: perf Tainted: G W 3.15.0-rc1-00033-g16787b3dfc0f #45
[ 3153.572631] Backtrace:
[ 3153.581756] [<c0012bfc>] (dump_backtrace) from [<c0012d98>] (show_stack+0x18/0x1c)
[ 3153.592742] [<c0012d80>] (show_stack) from [<c05b80bc>] (dump_stack+0x94/0xc8)
[ 3153.606231] [<c05b8028>] (dump_stack) from [<bf1cc90c>] (drm_framebuffer_reference+0x54/0x98 [drm])
[ 3153.619781] [<bf1cc8b8>] (drm_framebuffer_reference [drm]) from [<bf1cca68>] (drm_mode_set_config_internal+0xa8/0xf0 [drm])
[ 3153.631988] [<bf1cc9c0>] (drm_mode_set_config_internal [drm]) from [<bf220a70>] (drm_fb_helper_restore_fbdev_mode+0xb8/0xd8 [drm_kms_helper])
[ 3153.651550] [<bf2209b8>] (drm_fb_helper_restore_fbdev_mode [drm_kms_helper]) from [<bf22f588>] (dev_lastclose+0xc4/0x118 [omapdrm])
[ 3153.670196] [<bf22f4c4>] (dev_lastclose [omapdrm]) from [<bf1c3cfc>] (drm_lastclose+0x38/0x140 [drm])
[ 3153.693176] [<bf1c3cc4>] (drm_lastclose [drm]) from [<bf1c4148>] (drm_release+0x344/0x544 [drm])
[ 3153.710845] [<bf1c3e04>] (drm_release [drm]) from [<c012b828>] (__fput+0x9c/0x1ec)
[ 3153.730041] [<c012b78c>] (__fput) from [<c012b9d8>] (____fput+0x10/0x14)
[ 3153.742401] [<c012b9c8>] (____fput) from [<c0062c80>] (task_work_run+0xbc/0x100)
[ 3153.756072] [<c0062bc4>] (task_work_run) from [<c00473d0>] (do_exit+0x2f8/0x950)
[ 3153.770874] [<c00470d8>] (do_exit) from [<c0047b3c>] (do_group_exit+0x44/0xb8)
[ 3153.780212] [<c0047af8>] (do_group_exit) from [<c0055d04>] (get_signal_to_deliver+0x23c/0x67c)
[ 3153.797729] [<c0055ac8>] (get_signal_to_deliver) from [<c05b4504>] (do_signal+0xb4/0x3d8)
[ 3153.817443] [<c05b4450>] (do_signal) from [<c0012588>] (do_work_pending+0xa4/0xe4)
[ 3153.833770] [<c00124e4>] (do_work_pending) from [<c000f5d8>] (work_pending+0xc/0x20)
[ 3153.850372] ===========================
[ 3153.850372]
[ 3153.850860] REF FB ID: 35: 4
[ 3153.857086] CPU: 1 PID: 1525 Comm: perf Tainted: G W 3.15.0-rc1-00033-g16787b3dfc0f #45
[ 3153.868530] Backtrace:
[ 3153.871185] [<c0012bfc>] (dump_backtrace) from [<c0012d98>] (show_stack+0x18/0x1c)
[ 3153.883178] [<c0012d80>] (show_stack) from [<c05b80bc>] (dump_stack+0x94/0xc8)
[ 3153.888397] [<c05b8028>] (dump_stack) from [<bf1cc90c>] (drm_framebuffer_reference+0x54/0x98 [drm])
[ 3153.903076] [<bf1cc8b8>] (drm_framebuffer_reference [drm]) from [<bf1cca68>] (drm_mode_set_config_internal+0xa8/0xf0 [drm])
[ 3153.920898] [<bf1cc9c0>] (drm_mode_set_config_internal [drm]) from [<bf220a70>] (drm_fb_helper_restore_fbdev_mode+0xb8/0xd8 [drm_kms_helper])
[ 3153.941162] [<bf2209b8>] (drm_fb_helper_restore_fbdev_mode [drm_kms_helper]) from [<bf22f588>] (dev_lastclose+0xc4/0x118 [omapdrm])
[ 3153.961547] [<bf22f4c4>] (dev_lastclose [omapdrm]) from [<bf1c3cfc>] (drm_lastclose+0x38/0x140 [drm])
[ 3153.979766] [<bf1c3cc4>] (drm_lastclose [drm]) from [<bf1c4148>] (drm_release+0x344/0x544 [drm])
[ 3153.991699] [<bf1c3e04>] (drm_release [drm]) from [<c012b828>] (__fput+0x9c/0x1ec)
[ 3154.013763] [<c012b78c>] (__fput) from [<c012b9d8>] (____fput+0x10/0x14)
[ 3154.030792] [<c012b9c8>] (____fput) from [<c0062c80>] (task_work_run+0xbc/0x100)
[ 3154.042633] [<c0062bc4>] (task_work_run) from [<c00473d0>] (do_exit+0x2f8/0x950)
[ 3154.058715] [<c00470d8>] (do_exit) from [<c0047b3c>] (do_group_exit+0x44/0xb8)
[ 3154.066741] [<c0047af8>] (do_group_exit) from [<c0055d04>] (get_signal_to_deliver+0x23c/0x67c)
[ 3154.080718] [<c0055ac8>] (get_signal_to_deliver) from [<c05b4504>] (do_signal+0xb4/0x3d8)
[ 3154.101531] [<c05b4450>] (do_signal) from [<c0012588>] (do_work_pending+0xa4/0xe4)
[ 3154.120391] [<c00124e4>] (do_work_pending) from [<c000f5d8>] (work_pending+0xc/0x20)
[ 3154.136962] ===========================
[ 3154.136962]
[ 3154.142608] UNREF FB ID: 35: 3
[ 3154.143157] CPU: 1 PID: 1525 Comm: perf Tainted: G W 3.15.0-rc1-00033-g16787b3dfc0f #45
[ 3154.155334] Backtrace:
[ 3154.156463] [<c0012bfc>] (dump_backtrace) from [<c0012d98>] (show_stack+0x18/0x1c)
[ 3154.170715] [<c0012d80>] (show_stack) from [<c05b80bc>] (dump_stack+0x94/0xc8)
[ 3154.179748] [<c05b8028>] (dump_stack) from [<bf1cc978>] (drm_framebuffer_unreference+0x28/0x70 [drm])
[ 3154.193572] [<bf1cc950>] (drm_framebuffer_unreference [drm]) from [<bf1cca78>] (drm_mode_set_config_internal+0xb8/0xf0 [drm])
[ 3154.209472] [<bf1cc9c0>] (drm_mode_set_config_internal [drm]) from [<bf220a70>] (drm_fb_helper_restore_fbdev_mode+0xb8/0xd8 [drm_kms_helper])
[ 3154.229003] [<bf2209b8>] (drm_fb_helper_restore_fbdev_mode [drm_kms_helper]) from [<bf22f588>] (dev_lastclose+0xc4/0x118 [omapdrm])
[ 3154.241882] [<bf22f4c4>] (dev_lastclose [omapdrm]) from [<bf1c3cfc>] (drm_lastclose+0x38/0x140 [drm])
[ 3154.266967] [<bf1c3cc4>] (drm_lastclose [drm]) from [<bf1c4148>] (drm_release+0x344/0x544 [drm])
[ 3154.279907] [<bf1c3e04>] (drm_release [drm]) from [<c012b828>] (__fput+0x9c/0x1ec)
[ 3154.301147] [<c012b78c>] (__fput) from [<c012b9d8>] (____fput+0x10/0x14)
[ 3154.321929] [<c012b9c8>] (____fput) from [<c0062c80>] (task_work_run+0xbc/0x100)
[ 3154.329864] [<c0062bc4>] (task_work_run) from [<c00473d0>] (do_exit+0x2f8/0x950)
[ 3154.345947] [<c00470d8>] (do_exit) from [<c0047b3c>] (do_group_exit+0x44/0xb8)
[ 3154.353973] [<c0047af8>] (do_group_exit) from [<c0055d04>] (get_signal_to_deliver+0x23c/0x67c)
[ 3154.370178] [<c0055ac8>] (get_signal_to_deliver) from [<c05b4504>] (do_signal+0xb4/0x3d8)
[ 3154.391204] [<c05b4450>] (do_signal) from [<c0012588>] (do_work_pending+0xa4/0xe4)
[ 3154.401855] [<c00124e4>] (do_work_pending) from [<c000f5d8>] (work_pending+0xc/0x20)
[ 3154.420623] ===========================
[ 3154.420623]
[ 3154.789916] sleep done
[ 3154.789947] UNPIN WORKER UNREF
[ 3154.795654] UNREF FB ID: 0: -1
[ 3154.798889] CPU: 0 PID: 1519 Comm: kworker/u4:0 Tainted: G W 3.15.0-rc1-00033-g16787b3dfc0f #45
[ 3154.798889] Workqueue: omapdrm flip_worker [drm]
[ 3154.814208] Backtrace:
[ 3154.816833] [<c0012bfc>] (dump_backtrace) from [<c0012d98>] (show_stack+0x18/0x1c)
[ 3154.830718] [<c0012d80>] (show_stack) from [<c05b80bc>] (dump_stack+0x94/0xc8)
[ 3154.830718] [<c05b8028>] (dump_stack) from [<bf1cc978>] (drm_framebuffer_unreference+0x28/0x70 [drm])
[ 3154.852355] [<bf1cc950>] (drm_framebuffer_unreference [drm]) from [<bf231d58>] (unpin_worker+0x54/0x70 [omapdrm])
[ 3154.863800] [<bf231d04>] (unpin_worker [omapdrm]) from [<bf1da5bc>] (flip_worker+0x94/0xa0 [drm])
[ 3154.863800] [<bf1da528>] (flip_worker [drm]) from [<c005e8f0>] (process_one_work+0x1b8/0x510)
[ 3154.897033] [<c005e738>] (process_one_work) from [<c005f050>] (worker_thread+0x120/0x394)
[ 3154.914855] [<c005ef30>] (worker_thread) from [<c0065e9c>] (kthread+0xd0/0xec)
[ 3154.933563] [<c0065dcc>] (kthread) from [<c000f648>] (ret_from_fork+0x14/0x2c)
[ 3154.949951] ===========================
[ 3154.949951]
[ 3154.955718] UPDATE PIN REF
[ 3154.958618] REF FB ID: 35: 4
[ 3154.961730] CPU: 0 PID: 1519 Comm: kworker/u4:0 Tainted: G W 3.15.0-rc1-00033-g16787b3dfc0f #45
[ 3154.971984] Workqueue: omapdrm apply_worker [omapdrm]
[ 3154.972015] Backtrace:
[ 3154.972015] [<c0012bfc>] (dump_backtrace) from [<c0012d98>] (show_stack+0x18/0x1c)
[ 3154.994049] [<c0012d80>] (show_stack) from [<c05b80bc>] (dump_stack+0x94/0xc8)
[ 3155.001770] [<c05b8028>] (dump_stack) from [<bf1cc90c>] (drm_framebuffer_reference+0x54/0x98 [drm])
[ 3155.015472] [<bf1cc8b8>] (drm_framebuffer_reference [drm]) from [<bf231c44>] (omap_plane_pre_apply+0x188/0x248 [omapdrm])
[ 3155.015472] [<bf231abc>] (omap_plane_pre_apply [omapdrm]) from [<bf2310b8>] (apply_worker+0xb0/0x178 [omapdrm])
[ 3155.042053] [<bf231008>] (apply_worker [omapdrm]) from [<c005e8f0>] (process_one_work+0x1b8/0x510)
[ 3155.070922] [<c005e738>] (process_one_work) from [<c005f050>] (worker_thread+0x120/0x394)
[ 3155.092864] [<c005ef30>] (worker_thread) from [<c0065e9c>] (kthread+0xd0/0xec)
[ 3155.111511] [<c0065dcc>] (kthread) from [<c000f648>] (ret_from_fork+0x14/0x2c)
[ 3155.121978] ===========================
[ 3155.121978]
[ 3155.130920] omapdrm omapdrm.0: rotation '1' ignored for non-tiled fb
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2014-04-14 8:43 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-10 11:47 Possible fb ref count issue with drm_plane_force_disable() Tomi Valkeinen
2014-04-11 6:31 ` Archit Taneja
2014-04-11 6:40 ` Tomi Valkeinen
2014-04-11 6:57 ` Archit Taneja
2014-04-11 7:03 ` Tomi Valkeinen
2014-04-11 7:19 ` Daniel Vetter
2014-04-11 11:50 ` Ville Syrjälä
2014-04-14 8:43 ` Tomi Valkeinen [this message]
2014-04-15 9:16 ` Tomi Valkeinen
2014-04-15 10:10 ` Rob Clark
2014-04-15 10:29 ` Andrzej Hajda
2014-04-15 10:44 ` Tomi Valkeinen
2014-04-15 12:24 ` Rob Clark
2014-04-15 13:30 ` Tomi Valkeinen
2014-04-15 22:01 ` Daniel Vetter
2014-04-15 12:00 ` Tomi Valkeinen
2014-04-15 21:57 ` Daniel Vetter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=534B9FC0.2020700@ti.com \
--to=tomi.valkeinen@ti.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=ville.syrjala@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.