]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Add consistency check for page-flipping
authorThierry Reding <thierry.reding@avionic-design.de>
Wed, 13 Feb 2013 15:08:33 +0000 (16:08 +0100)
committerThierry Reding <thierry.reding@avionic-design.de>
Fri, 22 Feb 2013 07:21:07 +0000 (08:21 +0100)
commit2b09dad2290aaa08484813f377e3b614fbd9b859
tree45b779f761fba928171b9d8a9c1928398737a5d5
parentfb7f186b9afb8ac41e7529e3d4320fcd665f1fb2
drm: Add consistency check for page-flipping

Driver implementations of the drm_crtc's .page_flip() function are
required to update the crtc->fb field on success to reflect that the new
framebuffer is now in use. This is important to keep reference counting
on the framebuffers balanced.

While at it, document this requirement to keep others from falling into
the same trap.

Suggested-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Documentation/DocBook/drm.tmpl
drivers/gpu/drm/drm_crtc.c