aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorChris Wilson <[email protected]>2017-04-20 11:17:09 +0100
committerChris Wilson <[email protected]>2017-04-20 12:00:32 +0100
commit2d6c4c84230df9ff99b626b52b11049e449632c9 (patch)
tree0616399a9f9971ef6bfbd9ae07bb50904191c742 /tools/perf/scripts/python
parent2310b3c952c5dc56c2e08f71b907b8e23ab3270d (diff)
drm/i915: Use discardable buffers for rings
The contents of a ring are only valid between HEAD and TAIL, when the ring is idle (HEAD == TAIL) we can simply let the pages go under memory pressure if they are not pinned by an active context. Any new content will be written after HEAD and so the ring will again be valid between HEAD and TAIL, everything outside can be discarded. Note that we take care of ensuring that we do not reset the HEAD backwards following a GPU hang on an idle ring. The same precautions are what enable us to use stolen memory for rings. Signed-off-by: Chris Wilson <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Joonas Lahtinen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions