]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3ab3b379af3dfffaba5d16843572732d50580679
tree576a1ef3798c0b8c56c1dfe6b965c6969c2dedd6
parent88deee9e3b02cf9ee57c2adb61dc651f2a2f771d
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