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)
commit8eadc19b380d5650e9d9c58e8ecc28e9f2b4a371
tree84fffa45d432bac47b8b947864fffc5d4195aff8
parent504ae4024131c5a01c3ce8382d49b801375e039c
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