From: Ville Syrjälä Date: Thu, 15 May 2014 17:23:23 +0000 (+0300) Subject: drm/i915: Fix gen2 and hsw+ scanline counter X-Git-Tag: omap-for-v3.16/fixes-against-rc1~44^2~38^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80715b2f7b97154ad8d791ddf85a386081fcceab;p=pandora-kernel.git drm/i915: Fix gen2 and hsw+ scanline counter On gen2 the scanline counter behaves a bit differently from the later generations. Instead of adding one to the raw scanline counter value, we must subtract one. On HSW/BDW the scanline counter requires a +2 adjustment on HDMI outputs. DP outputs on the on the other require the typical +1 adjustment. As the fixup we must apply to the hardware scanline counter depends on several factors, compute the desired offset at modeset time and tuck it away for when it's needed. v2: Clarify HSW+ situation Signed-off-by: Ville Syrjälä Reviewed-by: "Akash Goel " Reviewed-by: "Sourab Gupta " Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=78997 Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed