[Intel-gfx] [RFC PATCH 128/162] drm/i915/dg1: intel_memory_region_evict() changes for eviction

Chris Wilson chris at chris-wilson.co.uk
Fri Nov 27 14:07:07 UTC 2020


Quoting Matthew Auld (2020-11-27 12:06:44)
> From: CQ Tang <cq.tang at intel.com>
> 
> Function i915_gem_shrink_memory_region() is changed to
> intel_memory_region_evict() and moved from i915_gem_shrinker.c
> to intel_memory_region.c, this function is used to handle local
> memory swapping, in addition to evict purgeable objects only.

We really do not want to conflate the system shrinker with eviction.
Reservation based eviction looks nothing like the shrinker.
-Chris


More information about the dri-devel mailing list