From: Daniel Vetter Date: Mon, 10 Dec 2012 23:59:24 +0000 (+0100) Subject: drm: refcounting for sprite framebuffers X-Git-Tag: v3.9-rc1~83^2~38^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c2a75325c800de286166c693e0cd33c3a1c5ec8;p=pandora-kernel.git drm: refcounting for sprite framebuffers Now plane->fb holds a reference onto it's framebuffer. Nothing too fancy going on here: - Extract __drm_framebuffer_unreference to be called when we know we're not dropping the last reference, e.g. useful in the fb cleanup code. - Reduce the locked sections in the set_plane ioctl to only protect plane->fb/plane->crtc and the driver callback (i.e. hw state). Everything either doesn't disappear (crtc, plane) or is refcounted (fb), and all the data we check is invariant over the respective object's lifetimes. Reviewed-by: Rob Clark Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed