|
@@ -355,6 +355,7 @@ static int igt_evict_contexts(void *arg)
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
mutex_lock(&i915->drm.struct_mutex);
|
|
mutex_lock(&i915->drm.struct_mutex);
|
|
|
|
+ intel_runtime_pm_get(i915);
|
|
|
|
|
|
/* Reserve a block so that we know we have enough to fit a few rq */
|
|
/* Reserve a block so that we know we have enough to fit a few rq */
|
|
memset(&hole, 0, sizeof(hole));
|
|
memset(&hole, 0, sizeof(hole));
|
|
@@ -463,6 +464,7 @@ out_locked:
|
|
}
|
|
}
|
|
if (drm_mm_node_allocated(&hole))
|
|
if (drm_mm_node_allocated(&hole))
|
|
drm_mm_remove_node(&hole);
|
|
drm_mm_remove_node(&hole);
|
|
|
|
+ intel_runtime_pm_put(i915);
|
|
mutex_unlock(&i915->drm.struct_mutex);
|
|
mutex_unlock(&i915->drm.struct_mutex);
|
|
|
|
|
|
return err;
|
|
return err;
|