diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-07-31 11:50:12 +0300 |
---|---|---|
committer | Joonas Lahtinen <joonas.lahtinen@linux.intel.com> | 2020-09-07 13:18:36 +0300 |
commit | 99a7f4dae7ee6081df04741e0c4ea5e49b139540 (patch) | |
tree | 2d16bacb5fec32fdaff5d1109cdd5d74d62620d8 /tools/perf/scripts/python/stackcollapse.py | |
parent | 5d9341370f57c058a8d880490ba9e79e761b2d7a (diff) | |
download | linux-99a7f4dae7ee6081df04741e0c4ea5e49b139540.tar.xz |
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/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions