drm/i915: Disable high-precision vblank timestamping for UMS
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 23 Jan 2011 10:45:14 +0000 (10:45 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 24 Jan 2011 18:26:31 +0000 (18:26 +0000)
We only have sufficient information for accurate (sub-frame) timestamping
when the modesetting is under our control.

Reported-by: Chris Clayton <chris2553@googlemail.com>
Tested-by: Chris Clayton <chris2553@googlemail.com>
Reviewed-by: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_drv.c

index 59eb19b13b3f95b502eacb6ca786766765c4beea..66796bb82d3e540b1db6d356308916a534be22b5 100644 (file)
@@ -752,6 +752,9 @@ static int __init i915_init(void)
                driver.driver_features &= ~DRIVER_MODESET;
 #endif
 
+       if (!(driver.driver_features & DRIVER_MODESET))
+               driver.get_vblank_timestamp = NULL;
+
        return drm_init(&driver);
 }