]> 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)
commit7e7ed47096b589128dcb23ef9f526b76cf6d29ea
tree576a1ef3798c0b8c56c1dfe6b965c6969c2dedd6
parent6075b0bf323de06e2a0ff5c60ba1c0ebdfe31f5a
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