drm/i915: Fix GT wake FIFO free entries for VLV
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 14 Nov 2013 00:00:00 +0000 (02:00 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 28 Nov 2013 07:31:47 +0000 (08:31 +0100)
commit46520e2baa861a02c14d3d590d5897092950c62a
treea75c613630c1cc67484a91d40923cf1134aebcfb
parent90f256b5bbdd5c69e5a7bbaec690bc4821bb2272
drm/i915: Fix GT wake FIFO free entries for VLV

On VLV the GTFIFOCTL register has other bits besides the number of free
entries in the GT wake FIFO. Apply a mask when we read th register to
make sure we don't misinterpret the number of free FIFO entries.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
[danvet: There's some unclarity about hsw, but brushed off as todays'
Bspec just acting up a bit.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_uncore.c