]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Call i915_gem_evict_vm in vm_fault_gtt to prevent new ENOSPC errors, v2.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Fri, 14 Jan 2022 13:23:15 +0000 (14:23 +0100)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Tue, 18 Jan 2022 11:00:29 +0000 (12:00 +0100)
commit26dd8c55bb0d12ac401d5640c041116e426ee92c
treee16b5e8d48fdbc0e861ef4393adedde1d22963dc
parent3f9eb20340ef0f5d5cbebe367716a5c737b49cc5
drm/i915: Call i915_gem_evict_vm in vm_fault_gtt to prevent new ENOSPC errors, v2.

Now that we cannot unbind kill the currently locked object directly
because we're removing short term pinning, we may have to unbind the
object from gtt manually, using a i915_gem_evict_vm() call.

Changes since v1:
- Remove -ENOSPC warning, can still happen with concurrent mmaps
  where we can't unbind the other mmap because of the lock held.
  This  fixes the gem_mmap_gtt@cpuset tests.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220114132320.109030-2-maarten.lankhorst@linux.intel.com
drivers/gpu/drm/i915/gem/i915_gem_mman.c