drm/i915: Repeat eviction search after idling the GPU
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 9 Dec 2013 10:37:24 +0000 (10:37 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 10 Dec 2013 07:13:58 +0000 (08:13 +0100)
commitad071acb53110c8efd26ff1e5b5d57449b43833b
tree8b20b8bd890979b941a8c2bc99c970b68ad93bb9
parentacc240d41ea1ab9c488a79219fb313b5b46265ae
drm/i915: Repeat eviction search after idling the GPU

With the advent of hw context support, we gained some objects that are
pinned for the duration of their request. That is we can make aperture
space available by idling the GPU and in the process performing a
context switch back to the always-pinned default context. As such, we
should not conclude that there is no space in the aperture for the
current object until we have unpinned any such context objects.

Note that we also have the problem of outstanding pageflips preventing
eviction of their framebuffer objects to resolve.

Testcase: igt/gem_ctx_exec/eviction
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=72507
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Tested-by: lu hua <huax.lu@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_evict.c