[Intel-gfx] [PATCH v9 65/70] drm/i915: Fix pin_map in scheduler selftests

Maarten Lankhorst maarten.lankhorst at linux.intel.com
Tue Mar 23 15:50:54 UTC 2021


Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
---
 drivers/gpu/drm/i915/selftests/i915_scheduler.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/selftests/i915_scheduler.c b/drivers/gpu/drm/i915/selftests/i915_scheduler.c
index f54bdbeaa48b..4c306e40c416 100644
--- a/drivers/gpu/drm/i915/selftests/i915_scheduler.c
+++ b/drivers/gpu/drm/i915/selftests/i915_scheduler.c
@@ -645,7 +645,7 @@ static int __igt_schedule_cycle(struct drm_i915_private *i915,
 	if (IS_ERR(obj))
 		return PTR_ERR(obj);
 
-	time = i915_gem_object_pin_map(obj, I915_MAP_WC);
+	time = i915_gem_object_pin_map_unlocked(obj, I915_MAP_WC);
 	if (IS_ERR(time)) {
 		err = PTR_ERR(time);
 		goto out_obj;
-- 
2.31.0



More information about the Intel-gfx mailing list