drm/i915/selftests: Prepare execbuf tests for obj->mm.lock removal.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Tue, 23 Mar 2021 15:50:35 +0000 (16:50 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 24 Mar 2021 16:41:23 +0000 (17:41 +0100)
Also quite simple, a single call needs to use the unlocked version.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20210323155059.628690-47-maarten.lankhorst@linux.intel.com
drivers/gpu/drm/i915/gem/selftests/i915_gem_execbuffer.c

index e1d50a5..4df505e 100644 (file)
@@ -116,7 +116,7 @@ static int igt_gpu_reloc(void *arg)
        if (IS_ERR(scratch))
                return PTR_ERR(scratch);
 
-       map = i915_gem_object_pin_map(scratch, I915_MAP_WC);
+       map = i915_gem_object_pin_map_unlocked(scratch, I915_MAP_WC);
        if (IS_ERR(map)) {
                err = PTR_ERR(map);
                goto err_scratch;