drm/i915/selftests: verify_gt_engine_wa() needs rpm wakeref
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 6 Dec 2018 18:07:12 +0000 (18:07 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 6 Dec 2018 20:45:09 +0000 (20:45 +0000)
commit3abd6143f97114360118b43f6465abb207be905a
tree90291520d77d212472c78d281bc4c64a9bceb9f5
parent7e90e8d0c0ea211241ba42390bc7602debdff90e
drm/i915/selftests: verify_gt_engine_wa() needs rpm wakeref

The mmio readback for verify_gt_engine_wa() also needs a runtime-pm
wakeref, so effectively do the entirety of both engine workarounds
tests. As such simplify the rpm behaviour here by acquiring the wakeref
for the whole of each subtest. It would be still useful to later verify
the registers retain their magic values across rpm suspend/resume.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181206180713.6827-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/intel_workarounds.c