Re: [Intel-gfx] [PATCH] drm/i915: Remove leftover vma->obj->pages_pin_count on insert/remove

2019-10-15 Thread Matthew Auld
On 15/10/2019 11:01, Chris Wilson wrote: We now do the page pin count upfront in vma_get_pages/vma_put_pages, so that we do the allocations before we enter the vm->mutex. Then our vma page references are tracking in vma->pages_count and the extra obj->pages_pin_count being performed in

[Intel-gfx] [PATCH] drm/i915: Remove leftover vma->obj->pages_pin_count on insert/remove

2019-10-15 Thread Chris Wilson
We now do the page pin count upfront in vma_get_pages/vma_put_pages, so that we do the allocations before we enter the vm->mutex. Then our vma page references are tracking in vma->pages_count and the extra obj->pages_pin_count being performed in i915_vma_insert/i915_vma_remove is redundant, and