]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Extend debugfs/i915_drop_caches to call i915_gem_shrink_all()
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 8 Mar 2017 14:46:22 +0000 (14:46 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 10 Mar 2017 13:02:34 +0000 (13:02 +0000)
commit9d611e8849a91b0883147caebf885edd1ec39d8b
tree84fffa45d432bac47b8b947864fffc5d4195aff8
parent6ed7629fe0333c9c5a0741deb662c99bf97de66b
drm/i915: Extend debugfs/i915_drop_caches to call i915_gem_shrink_all()

Sometimes we want to explicitly page out all available objects from igt,
i.e. call i915_gem_shrink_all() and check that subsequent operations
succeed. This adds DROP_SHRINK_ALL [0x8] to the set of flags for
debugfs/i915_drop_caches for that purpose.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170308144622.23194-1-chris@chris-wilson.co.uk
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c