]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Skip unbinding large unmappable global buffers
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 13 Oct 2016 08:55:04 +0000 (09:55 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 13 Oct 2016 14:47:47 +0000 (15:47 +0100)
commit7d75066f29a8b5d364e03414267dcdf8d85cedba
treed15e12f05b39e22ce0068b317b1e0a916bab6ccf
parentb9c44e1a56f8d6f0ea9a0a011e4ad302dc37082e
drm/i915: Skip unbinding large unmappable global buffers

If the user requests a mappable binding to the global GTT, we will first
unbind an existing mapping if it doesn't match. We will unbind even if
there is no possibility that the object can fit in the mappable
aperture. This may lead to a ping-pong migration of the object, for
example igt/gem_exec_big.

v2: Comment upon the reasoning, or lack thereof!, behind the choice of
magic numbers.

Testcase: igt/gem_exec_big
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20161013085504.30705-1-chris@chris-wilson.co.uk
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com
drivers/gpu/drm/i915/i915_gem.c