[Intel-gfx] [PATCH 3/3] drm/i915: Use insert_page for pwrite_fast
Tvrtko Ursulin
tvrtko.ursulin at linux.intel.com
Thu Nov 5 04:37:46 PST 2015
On 05/11/15 11:45, ankitprasad.r.sharma at intel.com wrote:
> From: Ankitprasad Sharma <ankitprasad.r.sharma at intel.com>
>
> In pwrite_fast, map an object page by page if obj_ggtt_pin fails. First,
> we try a nonblocking pin for the whole object (since that is fastest if
> reused), then failing that we try to grab one page in the mappable
> aperture. It also allows us to handle objects larger than the mappable
> aperture (e.g. if we need to pwrite with vGPU restricting the aperture
> to a measely 8MiB or something like that).
Aperture in aperture, reminds me of those "Yo dawg I've heard you like X
so I've put X in your X so you can Y while you Y" jokes. :D
Would using the partial view code be interesting for this? Might be
faster due to larger chunks possible, or slower due more expensive set
up time, I don't know.
Interesting thing is it was added for virtualization use cases so there
is overlap here.
Regards,
Tvrtko
More information about the Intel-gfx
mailing list