]> 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)
commit6b9737b60884e99d65ff5c26ef15328f6a5bd877
tree64807f0cecea275798452ad43c9e422f4e2dd05d
parent8cbbe673a4731c24cb37011292acf946cb10704d
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