drm/i915: Fix scanline counter fixup on BDW
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 11 Mar 2014 10:58:46 +0000 (12:58 +0200)
committerJani Nikula <jani.nikula@intel.com>
Wed, 12 Mar 2014 15:13:59 +0000 (17:13 +0200)
commit243026249324b2c958b67ab387fe6813a9836fe0
tree45518d633bfc028f18a8eb8535fe329566138d00
parentfcb818231f81e22b2c3a76d7ef416237fa0c7609
drm/i915: Fix scanline counter fixup on BDW

The display interrupts changed on BDW, so the current ILK-HSW specific
code in ilk_pipe_in_vblank_locked() doesn't work there. Add the required
bits for BDW, and while at it, change the existing code to use nicer
looking vblank status bit macros.

Also remove the now stale __raw_i915_read16() definition which was
left over from the failed gen2 ISR experiment.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=73962
Tested-by: Lu Hua <huax.lu@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_irq.c