[Intel-gfx] [PATCH] drm/i915/selftests: Let other struct_mutex users have their gpu time
Chris Wilson
chris at chris-wilson.co.uk
Tue Jul 3 09:59:11 UTC 2018
Quoting Chris Wilson (2018-07-03 09:30:15)
> @@ -132,18 +140,18 @@ fake_dma_object(struct drm_i915_private *i915, u64 size)
>
> static int igt_ppgtt_alloc(void *arg)
> {
> - struct drm_i915_private *dev_priv = arg;
> + struct drm_i915_private *i915 = arg;
> struct i915_hw_ppgtt *ppgtt;
> u64 size, last;
> int err = 0;
>
> /* Allocate a ppggt and try to fill the entire range */
>
> - if (!USES_PPGTT(dev_priv))
> + if (!USES_PPGTT(i915))
> return 0;
>
> - mutex_lock(&dev_priv->drm.struct_mutex);
> - ppgtt = __hw_ppgtt_create(dev_priv);
> + mutex_lock(&i915->drm.struct_mutex);
> + ppgtt = __hw_ppgtt_create(i915);
> if (IS_ERR(ppgtt)) {
> err = PTR_ERR(ppgtt);
> goto err_unlock;
> @@ -169,6 +177,8 @@ static int igt_ppgtt_alloc(void *arg)
> ppgtt->vm.clear_range(&ppgtt->vm, 0, size);
> }
>
> + schedule_locked(i915);
This still appears to be too coarse for glk.
-Chris
More information about the Intel-gfx
mailing list