linux-stable/drivers/gpu/drm/rockchip
John Keeping f2227f4697 drm/rockchip: don't wait for vblank if fb hasn't changed
As commented in drm_atomic_helper_wait_for_vblanks(), userspace relies
on cursor ioctls being unsynced.  Converting the rockchip driver to
atomic has significantly impacted cursor performance by making every
cursor update wait for vblank.

By skipping the vblank sync when the framebuffer has not changed (as is
done in drm_atomic_helper_wait_for_vblanks()) we can avoid this for the
common case of moving the cursor and only need to delay the cursor ioctl
when the cursor icon changes.

We cannot add the check on legacy_cursor_update since that results in
the cursor bo being unreferenced while the hardware may still be reading
it.  Fully supporting unsynced cursor updates is left for the future
when the atomic helper framework supports async updates.

Signed-off-by: John Keeping <john@metanate.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
2016-01-20 08:55:56 +08:00
..
dw-mipi-dsi.c drm/rockchip/dsi: fix handling mipi_dsi_pixel_format_to_bpp result 2016-01-18 08:43:16 +08:00
dw_hdmi-rockchip.c drm/rockchip: dw_hdmi: use encoder enable function 2015-12-28 08:57:16 +08:00
Kconfig drm: rockchip: Support Synopsys DW MIPI DSI 2016-01-06 16:16:39 +08:00
Makefile drm/rockchip: Don't build rockchip_drm_vop as modules 2016-01-18 08:42:08 +08:00
rockchip_drm_drv.c drm/rockchip: cleanup unnecessary export symbol 2016-01-18 08:42:09 +08:00
rockchip_drm_drv.h drm/rockchip: support atomic asynchronous commit 2015-12-28 08:49:54 +08:00
rockchip_drm_fb.c drm/rockchip: don't wait for vblank if fb hasn't changed 2016-01-20 08:55:56 +08:00
rockchip_drm_fb.h drm: Pass the user drm_mode_fb_cmd2 as const to .fb_create() 2015-11-24 11:47:38 +01:00
rockchip_drm_fbdev.c drm/rockchip: Use new drm_fb_helper functions 2015-08-06 14:12:56 +02:00
rockchip_drm_fbdev.h
rockchip_drm_gem.c drm/rockchip: unset pgoff when mmap'ing gems 2015-12-02 09:13:17 +08:00
rockchip_drm_gem.h drm/rockchip: Only alloc a kmap for fbdev gem object 2015-03-16 10:07:12 +08:00
rockchip_drm_vop.c drm/rockchip: vop: fix mask when updating interrupts 2016-01-18 08:42:09 +08:00
rockchip_drm_vop.h drm/rockchip: vop: spilt scale regsters 2015-12-28 09:01:41 +08:00
rockchip_vop_reg.c drm/rockchip: vop: add rk3036 vop support 2015-12-28 09:01:48 +08:00
rockchip_vop_reg.h drm/rockchip: vop: add rk3036 vop support 2015-12-28 09:01:48 +08:00