]> git.baikalelectronics.ru Git - 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)
commit1ba3b02c3435b753ee5a675c9459fca165bcc0c5
tree9725ea8fcee818862273b910267ac99370a54790
parent66590cae55aa05228527691ab44e5da27f4d0fe0
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