Skip to content

Commit b91e1b1

Browse files
mlankhorstdanvet
authored andcommitted
drm/i915/selftests: Prepare cs engine tests for obj->mm.lock removal
Same as other tests, use pin_map_unlocked. Signed-off-by: Maarten Lankhorst <[email protected]> Reviewed-by: Thomas Hellström <[email protected]> Signed-off-by: Daniel Vetter <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent e70a27d commit b91e1b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/i915/gt/selftest_engine_cs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ static struct i915_vma *create_empty_batch(struct intel_context *ce)
7676
if (IS_ERR(obj))
7777
return ERR_CAST(obj);
7878

79-
cs = i915_gem_object_pin_map(obj, I915_MAP_WB);
79+
cs = i915_gem_object_pin_map_unlocked(obj, I915_MAP_WB);
8080
if (IS_ERR(cs)) {
8181
err = PTR_ERR(cs);
8282
goto err_put;
@@ -212,7 +212,7 @@ static struct i915_vma *create_nop_batch(struct intel_context *ce)
212212
if (IS_ERR(obj))
213213
return ERR_CAST(obj);
214214

215-
cs = i915_gem_object_pin_map(obj, I915_MAP_WB);
215+
cs = i915_gem_object_pin_map_unlocked(obj, I915_MAP_WB);
216216
if (IS_ERR(cs)) {
217217
err = PTR_ERR(cs);
218218
goto err_put;

0 commit comments

Comments
 (0)