drm/i915: Wake device for emitting request during selftest
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 11 Apr 2017 23:44:27 +0000 (00:44 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 12 Apr 2017 12:38:06 +0000 (13:38 +0100)
commit10e9bd9ab0322a3929db0bf84ff1ca3f28ed0ee4
tree4b3132a9a6dde888293d45a544bc953e07bbc219
parent8968a3649a7c09a0c7f92001b0a599b93a4d9685
drm/i915: Wake device for emitting request during selftest

igt_mmap_offset_exhaustion() selftest was using live requests to make an
object busy, but we did not hold a runtime pm wakeref for submitting the
requests. Acquire it to avoid triggering "RPM wakelock ref not held
during HW access" warnings.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170411234427.14841-3-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/selftests/i915_gem_object.c