From: Maarten Lankhorst <maarten.lankho...@linux.intel.com>

Same as other tests, use pin_map_unlocked.

Signed-off-by: Maarten Lankhorst <maarten.lankho...@linux.intel.com>
Cc: Thomas Hellström <thomas.hellst...@linux.intel.com>
---
 drivers/gpu/drm/i915/gt/selftest_engine_cs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/gt/selftest_engine_cs.c 
b/drivers/gpu/drm/i915/gt/selftest_engine_cs.c
index 729c3c7b11e2..853d1f02131a 100644
--- a/drivers/gpu/drm/i915/gt/selftest_engine_cs.c
+++ b/drivers/gpu/drm/i915/gt/selftest_engine_cs.c
@@ -72,7 +72,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;
@@ -208,7 +208,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;
-- 
2.26.2

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reply via email to