[Intel-gfx] [PATCH 02/24] drm/i915: Pin backing pages whilst exporting through a dmabuf vmap

Jesse Barnes jbarnes at virtuousgeek.org
Thu Oct 11 20:30:47 CEST 2012


On Tue,  4 Sep 2012 21:02:54 +0100
Chris Wilson <chris at chris-wilson.co.uk> wrote:

> We need to refcount our pages in order to prevent reaping them at
> inopportune times, such as when they currently vmapped or exported to
> another driver. However, we also wish to keep the lazy deallocation of
> our pages so we need to take a pin/unpinned approach rather than a
> simple refcount.
> 
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> ---

Why do we need the pages pinned if the object is vmapped?  Shouldn't we
only pin if a vmapped object is currently being used by the GPU or
mapped through the GTT?  Or is that what you meant?

Assuming that's correct:
Reviewed-by: Jesse Barnes <jbarnes at virtuousgeek.org>

-- 
Jesse Barnes, Intel Open Source Technology Center



More information about the Intel-gfx mailing list