• Ben Widawsky's avatar
    drm/i915: evict VM instead of everything · 68c8c17f
    Ben Widawsky authored
    When reserving objects during execbuf, it is possible to come across an
    object which will not fit given the current fragmentation of the address
    space. We do not have any defragment in drm_mm, so the strategy is to
    instead evict everything, and reallocate objects.
    
    With the upcoming addition of multiple VMs, there is no point to evict
    everything since doing so is overkill for the specific case mentioned
    above.
    Recommended-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    Signed-off-by: default avatarBen Widawsky <ben@bwidawsk.net>
    [danvet: One additional s/evict_everything/evict_vm/ to update a
    comment in the code.]
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    68c8c17f
i915_gem_evict.c 6.67 KB