drm/i915: Flush the idle-worker for debugfs/i915_drop_caches
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 18 Oct 2017 12:16:21 +0000 (13:16 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 18 Oct 2017 14:46:11 +0000 (15:46 +0100)
commitb4a0b32d7a6024d9349fd464b3ae7a45048acd36
treef0eb2de9231b6581cc5f5a94d3aa865c66efd2e4
parent31d1d3c8862e88c8db1b0c9a560f2a76b1a4972b
drm/i915: Flush the idle-worker for debugfs/i915_drop_caches

After being requested to idle the GPU, flush the idle worker to drop the
residual active state, and any internal object caches.

v2: By popular demand, introduce DROP_IDLE for fine-grained control from
userspace, though it should be used as part of a
DROP_ACTIVE | DROP_RETIRE | DROP_IDLE | DROP_FREED
sequence.
v3: Convert to BIT() to sell it to Joonas.

References: https://bugs.freedesktop.org/show_bug.cgi?id=102655
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171018121621.10824-1-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_debugfs.c