summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.c
diff options
context:
space:
mode:
authorBen Widawsky2013-09-11 23:57:50 +0200
committerDaniel Vetter2013-09-12 21:58:22 +0200
commit68c8c17f527effba57f4e82efee18a249c6a1b58 (patch)
treea05723acd6d127cbe0a10815775821eb4746582b /drivers/gpu/drm/i915/i915_drv.c
parentdrm/i915: Extract vm specific part of eviction (diff)
downloadkernel-qcow2-linux-68c8c17f527effba57f4e82efee18a249c6a1b58.tar.gz
kernel-qcow2-linux-68c8c17f527effba57f4e82efee18a249c6a1b58.tar.xz
kernel-qcow2-linux-68c8c17f527effba57f4e82efee18a249c6a1b58.zip
drm/i915: evict VM instead of everything
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: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Ben Widawsky <ben@bwidawsk.net> [danvet: One additional s/evict_everything/evict_vm/ to update a comment in the code.] Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.c')
0 files changed, 0 insertions, 0 deletions