Re: [Intel-gfx] [PATCH 2/2] drm/i915/userptr: Add a flag to populate the userptr on creation

2017-11-08 Thread Jason Ekstrand
Both of these patches need I915_PARAM_HAS_USERPTR_WHATEVER queries. On Wed, Nov 8, 2017 at 10:51 AM, Chris Wilson wrote: > Acquiring the backing struct pages for the userptr range is not free; > the first client for userptr would insist on frequently creating userptr >

[Intel-gfx] [PATCH 2/2] drm/i915/userptr: Add a flag to populate the userptr on creation

2017-11-08 Thread Chris Wilson
Acquiring the backing struct pages for the userptr range is not free; the first client for userptr would insist on frequently creating userptr objects ahead of time and not use them. For that first client, deferring the cost of populating the userptr (calling get_user_pages()) to the actual