]> git.baikalelectronics.ru Git - kernel.git/commit
drm: omapdrm: Fix page flip race with CRTC disable
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 4 Mar 2015 16:24:18 +0000 (18:24 +0200)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 12 Jun 2015 19:52:46 +0000 (22:52 +0300)
commitd835d1182dae0aa8254caaabf02f43be0f0f7b49
tree2c41ef6b8d01092a6468b69ed75d80629daf205f
parent6d4a8d540dc9265a268c47b507fad004b923c18d
drm: omapdrm: Fix page flip race with CRTC disable

We can't rely on crtc->primary->fb in the page flip worker, as a racing
CRTC disable (due for instance to an explicit framebuffer deletion from
userspace) would set that field to NULL before the worker gets a change
to run. Store the framebuffer queued for page flip in a new field of
omap_crtc instead, and hold a reference to it.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/omap_crtc.c