]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/tegra: Don't use vblank_disable_immediate on incapable driver.
authorMario Kleiner <mario.kleiner.de@gmail.com>
Mon, 4 May 2015 04:29:44 +0000 (06:29 +0200)
committerDave Airlie <airlied@redhat.com>
Fri, 8 May 2015 10:56:34 +0000 (20:56 +1000)
commit3790e395b8f4b66fe4e53629f304505c110a2be7
tree9725ea8fcee818862273b910267ac99370a54790
parent94754c183ada2143f03f3e16827904aab9e09f8e
drm/tegra: Don't use vblank_disable_immediate on incapable driver.

Tegra would not only need a hardware vblank counter that
increments at leading edge of vblank, but also support
for instantaneous high precision vblank timestamp queries, ie.
a proper implementation of dev->driver->get_vblank_timestamp().

Without these, there can be off-by-one errors during vblank
disable/enable if the scanout is inside vblank at en/disable
time, and additionally clients will never see any useable
vblank timestamps when querying via drmWaitVblank ioctl. This
would negatively affect swap scheduling under X11 and Wayland.

Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/tegra/drm.c