diff options
author | 2020-07-31 09:50:12 +0100 | |
---|---|---|
committer | 2020-09-07 13:18:36 +0300 | |
commit | 99a7f4dae7ee6081df04741e0c4ea5e49b139540 (patch) | |
tree | 2d16bacb5fec32fdaff5d1109cdd5d74d62620d8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drm/i915: Export a preallocate variant of i915_active_acquire() (diff) | |
download | linux-rng-99a7f4dae7ee6081df04741e0c4ea5e49b139540.tar.xz linux-rng-99a7f4dae7ee6081df04741e0c4ea5e49b139540.zip |
drm/i915: Keep the most recently used active-fence upon discard
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@chris-wilson.co.uk>
Reviewed-by: Thomas Hellström <thomas.hellstrom@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200731085015.32368-4-chris@chris-wilson.co.uk
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions