drm/vc4: Don't wait for vblank when updating the cursor
authorMichael Zoran <mzoran@crowfest.net>
Fri, 24 Feb 2017 01:54:31 +0000 (17:54 -0800)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 23 Jul 2017 02:23:27 +0000 (02:23 +0000)
commitc12b16573652603e1cb8043704b4849fc8c6cb50
tree7b90b90d5e152b38f2f5f0c73d6c0acdedd67fd6
parent86dd56ecf2735c3076a316607c0d2c7e4bfa3d2b
drm/vc4: Don't wait for vblank when updating the cursor

Commonly used desktop environments such as xfce4 and gnome
on debian sid can flood the graphics drivers with cursor
updates.  Because the current implementation is waiting
for a vblank between cursor updates, this will cause the
display to hang for a long time since a typical refresh
rate is only 60Hz.

This is unnecessary and unexpected by user mode software,
so simply swap out the cursor frame buffer without waiting.

Signed-off-by: Michael Zoran <mzoran@crowfest.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/vc4/vc4_plane.c