From: Maarten Lankhorst Date: Tue, 23 Mar 2021 15:50:43 +0000 (+0100) Subject: drm/i915/selftests: Prepare mocs tests for obj->mm.lock removal X-Git-Tag: v5.15.73~11975^2~17^2~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e20e9b1503e5298bf960e98a32b58522db6b19dd;p=platform%2Fkernel%2Flinux-rpi.git drm/i915/selftests: Prepare mocs tests for obj->mm.lock removal Use pin_map_unlocked when we're not holding locks. Signed-off-by: Maarten Lankhorst Reviewed-by: Thomas Hellström Signed-off-by: Daniel Vetter Link: https://patchwork.freedesktop.org/patch/msgid/20210323155059.628690-55-maarten.lankhorst@linux.intel.com --- diff --git a/drivers/gpu/drm/i915/gt/selftest_mocs.c b/drivers/gpu/drm/i915/gt/selftest_mocs.c index a539f68d08b9..f00b91452806 100644 --- a/drivers/gpu/drm/i915/gt/selftest_mocs.c +++ b/drivers/gpu/drm/i915/gt/selftest_mocs.c @@ -80,7 +80,7 @@ static int live_mocs_init(struct live_mocs *arg, struct intel_gt *gt) if (IS_ERR(arg->scratch)) return PTR_ERR(arg->scratch); - arg->vaddr = i915_gem_object_pin_map(arg->scratch->obj, I915_MAP_WB); + arg->vaddr = i915_gem_object_pin_map_unlocked(arg->scratch->obj, I915_MAP_WB); if (IS_ERR(arg->vaddr)) { err = PTR_ERR(arg->vaddr); goto err_scratch;