[Intel-gfx] [PATCH 07/66] drm/i915: Keep the most recently used active-fence upon discard
Thomas Hellström (Intel)
thomas_os at shipmail.org
Wed Jul 22 09:46:29 UTC 2020
On 2020-07-15 13:50, Chris Wilson wrote:
> Whenever an i915_active idles, we prune its tree of old fence slots to
> prevent a gradual leak should it be used to track many, many timelines.
> The downside is that we then have to frequently reallocate the rbtree.
> A compromise is that we keep the most recently used fence slot, and
> reuse that for the next active reference as that is the most likely
> timeline to be reused.
>
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> ---
> drivers/gpu/drm/i915/i915_active.c | 27 ++++++++++++++++++++-------
> drivers/gpu/drm/i915/i915_active.h | 4 ----
> 2 files changed, 20 insertions(+), 11 deletions(-)
Lgtm. Reviewed-by: Thomas Hellström <thomas.hellstrom at intel.com>
More information about the Intel-gfx
mailing list