[Intel-gfx] [PATCH 5/5] drm/i915: Convert execbuf code to use vmas
Chris Wilson
chris at chris-wilson.co.uk
Sat Aug 10 11:10:57 CEST 2013
On Fri, Aug 09, 2013 at 10:12:16PM -0700, Ben Widawsky wrote:
> From: Ben Widawsky <ben at bwidawsk.net>
>
> In order to transition more of our code over to using a VMA instead of
> an <OBJ, VM> pair - we must have the vma accessible at execbuf time. Up
> until now, we've only had a VMA when actually binding an object.
>
> The previous patch helped handle the distinction on bound vs. unbound.
> This patch will help us catch leaks, and other issues before we actually
> shuffle a bunch of stuff around.
>
> This attempts to convert all the execbuf code to speak in vmas. Since
> the execbuf code is very self contained it was a nice isolated
> conversion.
>
> The meat of the code is about turning eb_objects into eb_vma, and then
> wiring up the rest of the code to use vmas instead of obj, vm pairs.
>
> Unfortunately, to do this, we must move the exec_list link from the obj
> structure. This list is reused in the eviction code, so we must also
> modify the eviction code to make this work.
>
> v2: Release table lock early, and two a 2 phase vma lookup to avoid
> having to use a GFP_ATOMIC. (Chris)
>
> v3: s/obj_exec_list/obj_exec_link/
> Updates to address
> commit 6d2b888569d366beb4be72cacfde41adee2c25e1
> Author: Chris Wilson <chris at chris-wilson.co.uk>
> Date: Wed Aug 7 18:30:54 2013 +0100
>
> drm/i915: List objects allocated from stolen memory in debugfs
>
> Signed-off-by: Ben Widawsky <ben at bwidawsk.net>
One thing to check&confirm is that any differences in gem_exec_lut_handle
are within the noise.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list