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

2017-07-25 Thread Chris Wilson
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)

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

2017-07-25 Thread Matthew Auld
Move the setting/clearing of the vma->pages to a vm operation. Doing so neatens things up a little, but more importantly gives us a sane place to also set/clear the vma->pages_sizes, which we introduce later in preparation for supporting huge-pages. Suggested-by: Chris Wilson Signed-off-by: Matth

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

2017-07-03 Thread Matthew Auld
Move the setting/clearing of the vma->pages to a vm operation. Doing so neatens things up a little, but more importantly gives us a sane place to also set/clear the vma->pages_sizes, which we introduce later in preparation for supporting huge-pages. Suggested-by: Chris Wilson Signed-off-by: Matth