]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Ensure i915_vma tests do not get -ENOSPC with the locking changes.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 16 Dec 2021 14:27:39 +0000 (15:27 +0100)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Mon, 20 Dec 2021 15:34:20 +0000 (16:34 +0100)
commiteb33f86fe47145bd5e401ad7bc897784d567ae39
tree8c1eb3d287e40ba1122b87c5f4ad0bce1e24057c
parent69ead94dad27cc153a5d93a0ffe24b7df6e50c1c
drm/i915: Ensure i915_vma tests do not get -ENOSPC with the locking changes.

Now that we require locking to evict, multiple vmas from the same object
might not be evicted. This is expected and required, because execbuf will
move to short-term pinning by using the lock only. This will cause these
tests to fail, because they create a ton of vma's for the same object.

Unbind manually to prevent spurious -ENOSPC in those mock tests.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211216142749.1966107-8-maarten.lankhorst@linux.intel.com
drivers/gpu/drm/i915/selftests/i915_vma.c