]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Don't pretend that gen2 has a hardware frame counter
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 11 Oct 2013 18:52:44 +0000 (21:52 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 14 Oct 2013 15:20:59 +0000 (17:20 +0200)
commitcb39b2d1c654f4f94c21b5536f65bf1e808f1f80
tree29a9a8ea15f6226035cc1fd28b4a3a252ba03b80
parent8713083a7541e5bfd71999ea8d03279ae6b3f032
drm/i915: Don't pretend that gen2 has a hardware frame counter

Gen2 doesn't have a hardware frame counter that can be read out. Just
provide a stub .get_vblank_counter() that always returns 0 instead of
trying to read non-existing registers.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_irq.c