]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Add a debug interface to forcibly evict and shrink our object caches
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 15 Jan 2013 12:39:35 +0000 (12:39 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 17 Jan 2013 21:07:57 +0000 (22:07 +0100)
commit7d4563878f7397d8f344c96e9e0bae6cf0d93bde
treee60ac4ebeeab688a32b28cfc3d4143768a58f6fc
parent10de9c9252a50f9e4ba39e5e36b5ac4e3384d7a0
drm/i915: Add a debug interface to forcibly evict and shrink our object caches

As a means to investigate some bad system behaviour related to the
purging of the active, inactive and unbound lists, it is useful to be
able to manually control when those lists should be cleared.

v2: use _safe list iterators as we kick objects from the list as we
walk.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
[danvet: Add a small comment explaining why we don't need to check and
wait for gpu resets, acked by Chris on irc.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c