UPSTREAM: drm/rockchip: Unreference framebuffers from flip work
authorTomasz Figa <tfiga@chromium.org>
Wed, 14 Sep 2016 12:54:57 +0000 (21:54 +0900)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 19 Jul 2017 06:33:53 +0000 (14:33 +0800)
commitf097cd8e930ca77430766e4304bcb23c8eb5a39c
tree673b7be6a6f8c1c97bef19d6e9de3bcc132ea2d6
parentffa4516b09713bb5037800e1b56316f3f057136e
UPSTREAM: drm/rockchip: Unreference framebuffers from flip work

Currently the driver waits for vblank and then unreferences old
framebuffers from atomic commit code path. This is however breaking the
legacy cursor API, which requires the updates to be fully asynchronous.
Instead of just adding a special case for cursor, we can have actually
smaller amount of code to unreference any changed framebuffer from a
flip work.

Signed-off-by: Tomasz Figa <tfiga@chromium.org>
(cherry picked from commit 47a7eb4597775ecdc29d2630d875a991f0449bf3)

Change-Id: Id36cdef1ea3962ac8c9a99549732d1810c57c4f9
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
drivers/gpu/drm/rockchip/rockchip_drm_vop.c