]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Handle ENOSPC after failing to insert a mappable node
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 16 Jul 2016 17:42:36 +0000 (18:42 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 19 Jul 2016 07:59:40 +0000 (08:59 +0100)
commiteb8e45c1e494182335ff7ee0554483de4232ade2
tree9844f28d34ab2739087fe0d6659dcd43b807f59e
parentf70fa825bf96484aae5daf043ce203cb59834466
drm/i915: Handle ENOSPC after failing to insert a mappable node

Even after adding individual page support for GTT mmaping, we can still
fail to find any space within the mappable region, and
drm_mm_insert_node() will then report ENOSPC. We have to then handle
this error by using the shmem access to the pages.

Fixes: e3f4e962fc3b ("drm/i915: Support for pread/pwrite ... objects")
Testcase: igt/gem_concurrent_blit
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ankitprasad Sharma <ankitprasad.r.sharma@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com
Link: http://patchwork.freedesktop.org/patch/msgid/1468690956-23480-1-git-send-email-chris@chris-wilson.co.uk
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c