]> 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)
commit2ea8326cbf1edcebc8528ba8f290e1135c494dcb
tree5674286ef9b3dc79baf987f57eba1842278de5c0
parentc0121996af663210a6b39a1f7402cbf33d2783e0
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