]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Force relocations via cpu if we run out of idle aperture
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 7 Oct 2016 06:53:25 +0000 (07:53 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 7 Oct 2016 07:27:22 +0000 (08:27 +0100)
commit30d5ae414813c9b230ac1a0f0ebadedc66119870
treec8665685fc178a27ffdf74d3c239a78e688dadca
parent2ed824f1bdf1a70ac08dbbdb1a9b32053afad4e9
drm/i915: Force relocations via cpu if we run out of idle aperture

If we run out of enough aperture space to fit the entire object, we
fallback to trying to insert a single page. However, if that also fails,
we currently fail to userspace with an unexpected ENOSPC. (ENOSPC means
to userspace that their batch could not be fitted within the GTT.) Prior
to commit 61e0498ece39 ("drm/i915: Fallback to single page GTT
mmappings for relocations") the approach is to fallback to using the
slow CPU relocation path in case of iomapping failure, and that is the
behaviour we need to restore.

Fixes: 61e0498ece39 ("drm/i915: Fallback to single page GTT mmappings...")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98101
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161007065327.24515-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_execbuffer.c