drm/i915: Switch to kernel context before idling at runtime
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 31 May 2018 08:22:43 +0000 (09:22 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 31 May 2018 18:29:50 +0000 (19:29 +0100)
commit4dfacb0bcbee79fa2ef4b2e9e64a8f8a28598934
tree5674286ef9b3dc79baf987f57eba1842278de5c0
parent13295bd887d07a9d904401808f41a8d35946d8c2
drm/i915: Switch to kernel context before idling at runtime

We can reduce our exposure to random neutrinos by resting on the kernel
context having flushed out the user contexts to system memory and
beyond. The corollary is that we then we require two passes through the
idle handler to go to sleep, which on a truly idle system involves an
extra pass through the slow and irregular retire work handler.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180531082246.9763-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_context.c