drm/i915: Fix HSW parity test
authorBen Widawsky <benjamin.widawsky@intel.com>
Wed, 18 Sep 2013 04:12:42 +0000 (21:12 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 19 Sep 2013 18:36:35 +0000 (20:36 +0200)
commit1c966dd26b2e46a9d089fcb7e36f649000670e64
treec0bd82cdae2f168b0d186a31dc030c2ea745efd1
parent644db711d3af6f7b91ce4b7e1a056a84bf34d349
drm/i915: Fix HSW parity test

Haswell changed the log registers to be WO, so we can no longer read
them to determine the programming (which sucks, see later note). For
now, simply use the cached value, and hope HW doesn't screw us over.

v2: Simplify the logic to avoid an extra !, remove last, and fix the
buffer offset which broke along the rebase (Ville)

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=57441
CC: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_sysfs.c