drm/i915/bdw: Don't use forcewake needlessly
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 13 Dec 2013 11:26:20 +0000 (13:26 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 13 Dec 2013 16:48:28 +0000 (17:48 +0100)
commita3564d2b5236b73bceb271f482965d38cd9d8d8e
treeb183e114c73f72f7c1797f47f98ac9806be387d8
parent97058870e616631a80721e08d5797d7da4b23b0a
drm/i915/bdw: Don't use forcewake needlessly

Not all registers need forcewake even if they're not shadowed.
Add the missing check to gen8_writeX() to avoid needless forcewake
usage when writing eg. display registers.

v2: Use straight up <0x40000 check instead of NEEDS_FORCE_WAKE()

Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_uncore.c