drm/i915: Sanity check all registers for matching fw domains
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 13 Feb 2017 17:15:35 +0000 (17:15 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 13 Feb 2017 20:45:49 +0000 (20:45 +0000)
commita8fb2bad82b64047d9c6090b859467cacc69e9d2
tree576a1ef3798c0b8c56c1dfe6b965c6969c2dedd6
parent9852d543a85f3aaeb408259f5e462c4ce7f1dc99
drm/i915: Sanity check all registers for matching fw domains

Add a late selftest that walks over all forcewake registers (those below
0x40000) and uses the mmio debug register to check to see if any are
unclaimed. This is possible if we fail to wake the appropriate
powerwells for the register.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170213171558.20942-24-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/intel_uncore.c