]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Try hard to bind the context
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 5 Dec 2019 11:37:25 +0000 (11:37 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 5 Dec 2019 13:50:54 +0000 (13:50 +0000)
commitecfdd9dd62dec41f12c5dc378679701c9cca8dc6
tree64807f0cecea275798452ad43c9e422f4e2dd05d
parent2b210935a7f578bce24fd7d3f767cf934dd197dc
drm/i915: Try hard to bind the context

It is not acceptable for context pinning to fail with -ENOSPC as we
should always be able to make space in the GGTT. The only reason we may
fail is that other "temporary" context pins are reserving their space
and we need to wait for an available slot.

Closes: https://gitlab.freedesktop.org/drm/intel/issues/676
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191205113726.413351-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_context.c
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_vma.c
drivers/gpu/drm/i915/i915_vma.h