drm/i915: Calculate vblank timestamping constants before enabling vblank.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Tue, 14 Jul 2015 11:46:40 +0000 (13:46 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 14 Jul 2015 15:18:38 +0000 (17:18 +0200)
commit3a03dfb057d0ee5f3146ffe40179af3ed7e48213
treefec575e23441c36e4b2f95fa7d5ede41178b3c4e
parent4be40c987aa0867a8fa77c12d5ed6fa2f8853dbc
drm/i915: Calculate vblank timestamping constants before enabling vblank.

This is required to properly initialize vblanks on the active crtc.
Without it drm_calc_vbltimestamp_from_scanoutpos can fail with
crtc 0: Noop due to uninitialized mode.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c