drm/i915/selftests: Prepare cs engine tests for obj->mm.lock removal
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Tue, 23 Mar 2021 15:50:48 +0000 (16:50 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 24 Mar 2021 16:46:47 +0000 (17:46 +0100)
Same as other tests, use pin_map_unlocked.

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-60-maarten.lankhorst@linux.intel.com
drivers/gpu/drm/i915/gt/selftest_engine_cs.c

index fd9414b..625ebb7 100644 (file)
@@ -76,7 +76,7 @@ static struct i915_vma *create_empty_batch(struct intel_context *ce)
        if (IS_ERR(obj))
                return ERR_CAST(obj);
 
-       cs = i915_gem_object_pin_map(obj, I915_MAP_WB);
+       cs = i915_gem_object_pin_map_unlocked(obj, I915_MAP_WB);
        if (IS_ERR(cs)) {
                err = PTR_ERR(cs);
                goto err_put;
@@ -212,7 +212,7 @@ static struct i915_vma *create_nop_batch(struct intel_context *ce)
        if (IS_ERR(obj))
                return ERR_CAST(obj);
 
-       cs = i915_gem_object_pin_map(obj, I915_MAP_WB);
+       cs = i915_gem_object_pin_map_unlocked(obj, I915_MAP_WB);
        if (IS_ERR(cs)) {
                err = PTR_ERR(cs);
                goto err_put;