• Ben Widawsky's avatar
    drm/i915: Move active/inactive lists to new mm · 5cef07e1
    Ben Widawsky authored
    Shamelessly manipulated out of Daniel :-)
    "When moving the lists around explain that the active/inactive stuff is
    used by eviction when we run out of address space, so needs to be
    per-vma and per-address space. Bound/unbound otoh is used by the
    shrinker which only cares about the amount of memory used and not one
    bit about in which address space this memory is all used in. Of course
    to actual kick out an object we need to unbind it from every address
    space, but for that we have the per-object list of vmas."
    
    v2: Leave the bound list as a global one. (Chris, indirectly)
    
    v3: Rebased with no i915_gtt_vm. In most places I added a new *vm local,
    since it will eventually be replaces by a vm argument.
    Put comment back inline, since it no longer makes sense to do otherwise.
    
    v4: Rebased on hangcheck/error state movement
    Signed-off-by: default avatarBen Widawsky <ben@bwidawsk.net>
    Reviewed-by: default avatarImre Deak <imre.deak@intel.com>
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    5cef07e1
i915_drv.h 65.3 KB