[PATCH] drm/i915: Track pinned vma in intel_plane_state

Chris Wilson chris at chris-wilson.co.uk
Wed Jan 4 09:49:00 UTC 2017


On Wed, Jan 04, 2017 at 08:33:43AM +0100, Maarten Lankhorst wrote:
> From: Chris Wilson <chris at chris-wilson.co.uk>
> 
> With atomic plane states we are able to track an allocation right from
> preparation, during use and through to the final free after being
> swapped out for a new plane. We can couple the VMA we pin for the
> framebuffer (and its rotation) to this lifetime and avoid all the clumsy
> lookups in between.
> 
> v2: Remove residual vma on plane cleanup (Chris)
> v3: Add WARN_ON(vma) to intel_plane_destroy_state (Maarten)

Iirc, if we inherit plane state from the BIOS and never do a modeset,
the residual plane state has a vma.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx-trybot mailing list