]> git.baikalelectronics.ru Git - 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)
commitd9e962d193a18d9adf1115fe8dc08639a092862d
tree1b6cf8f79d73e2ab17c7ab3d9a56e4784777681f
parent1b72e14c296bba097ed34b3d206e1d5a4ab64d8f
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