]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd7f6e2902860a52e5c0864741cac6e48caf000e9
tree5674286ef9b3dc79baf987f57eba1842278de5c0
parent39fcf2e94a0a8b089ac98c18e67aed69e9ef04a4
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