diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-05-09 12:52:17 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-05-12 13:02:03 +0100 |
commit | 73e28cc40bf00b5d168cb8f5cff1ae63e9097446 (patch) | |
tree | 0518843c1ad49a049c2deeb8c1bf41383ff55020 /drivers/pcmcia/pxa2xx_palmtx.c | |
parent | 1c8ee8b92fb6ac9d5975147cc902e8c142eca338 (diff) | |
download | linux-73e28cc40bf00b5d168cb8f5cff1ae63e9097446.tar.bz2 |
drm/i915: Handle idling during i915_gem_evict_something busy loops
i915_gem_evict_something() is charged with finding a slot within the GTT
that we may reuse. Since our goal is not to stall, we first look for a
slot that only overlaps idle vma. To this end, on the first pass we move
any active vma to the end of the search list. However, we only stopped
moving active vma after we see the first active vma twice. If during the
search, that first active vma completed, we would not notice and keep on
extending the search list.
Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/1746
Fixes: 2850748ef876 ("drm/i915: Pull i915_vma_pin under the vm->mutex")
Fixes: b1e3177bd1d8 ("drm/i915: Coordinate i915_active with its own mutex")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: <stable@vger.kernel.org> # v5.5+
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200509115217.26853-1-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/pcmcia/pxa2xx_palmtx.c')
0 files changed, 0 insertions, 0 deletions