diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-04-12 00:44:27 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-04-12 13:38:06 +0100 |
commit | 10e9bd9ab0322a3929db0bf84ff1ca3f28ed0ee4 (patch) | |
tree | 4b3132a9a6dde888293d45a544bc953e07bbc219 /drivers/gpu/drm/i915/selftests | |
parent | 8968a3649a7c09a0c7f92001b0a599b93a4d9685 (diff) | |
download | op-kernel-dev-10e9bd9ab0322a3929db0bf84ff1ca3f28ed0ee4.zip op-kernel-dev-10e9bd9ab0322a3929db0bf84ff1ca3f28ed0ee4.tar.gz |
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>
Diffstat (limited to 'drivers/gpu/drm/i915/selftests')
-rw-r--r-- | drivers/gpu/drm/i915/selftests/i915_gem_object.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/selftests/i915_gem_object.c b/drivers/gpu/drm/i915/selftests/i915_gem_object.c index 1634247..8f011c4 100644 --- a/drivers/gpu/drm/i915/selftests/i915_gem_object.c +++ b/drivers/gpu/drm/i915/selftests/i915_gem_object.c @@ -545,7 +545,9 @@ static int igt_mmap_offset_exhaustion(void *arg) } mutex_lock(&i915->drm.struct_mutex); + intel_runtime_pm_get(i915); err = make_obj_busy(obj); + intel_runtime_pm_put(i915); mutex_unlock(&i915->drm.struct_mutex); if (err) { pr_err("[loop %d] Failed to busy the object\n", loop); |