]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Add soft-pinning API for execbuffer
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 6 Oct 2015 10:53:11 +0000 (11:53 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 22 Oct 2015 10:52:53 +0000 (12:52 +0200)
commit226bd4c6ef02e13b01edcc25b06811d9274f0fb4
treeb2144bef0081be4bb6cf88657224d73b5efdb803
parentf88827164dc0165c9f2c83b84fcbab2afc082575
drm/i915: Add soft-pinning API for execbuffer

Userspace can pass in an offset that it presumes the object is located
at. The kernel will then do its utmost to fit the object into that
location. The assumption is that userspace is handling its own object
locations (for example along with full-ppgtt) and that the kernel will
rarely have to make space for the user's requests.

v2: Fix i915_gem_evict_range() (now evict_for_vma) to handle ordinary
and fixed objects within the same batch

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: "Daniel, Thomas" <thomas.daniel@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gpu_error.c