[Intel-gfx] [PATCH 06/21] drm/i915: introduce vm set_pages/clear_pages

Chris Wilson chris at chris-wilson.co.uk
Tue Jul 25 19:45:07 UTC 2017


Quoting Matthew Auld (2017-07-25 20:21:18)
> @@ -471,25 +473,31 @@ i915_vma_insert(struct i915_vma *vma, u64 size, u64 alignment, u64 flags)
>         if (ret)
>                 return ret;
>  

GEM_BUG_ON(vma->pages);

> +       if (!vma->pages) {
> +               ret = vma->vm->set_pages(vma);
> +               if (ret)
> +                       goto err_unpin;
> +       }

If we have not been inserted, vma->bind_flags == 0 and so vma->page must
be NULL.
-Chris


More information about the Intel-gfx mailing list