]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/i915: Replace open-coded eviction in i915_gem_idle()
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 7 Jan 2010 10:39:13 +0000 (10:39 +0000)
committerEric Anholt <eric@anholt.net>
Tue, 16 Feb 2010 19:48:43 +0000 (11:48 -0800)
commit29105ccc43ead5a0179d04b1404611981e92e278
tree1b6cf8f79d73e2ab17c7ab3d9a56e4784777681f
parent724e6d3fe8003c3f60bf404bf22e4e331327c596
drm/i915: Replace open-coded eviction in i915_gem_idle()

With the introduction of the hang-check, we can safely expect that
i915_wait_request() will always return even when the GPU hangs, and so
do not need to open code the wait in order to manually check for the
hang. Also we do not need to always evict all buffers, so only flush
the GPU (and wait for it to idle) for KMS, but continue to evict for UMS.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_gem.c