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

Daniel Vetter daniel at ffwll.ch
Wed Mar 24 17:14:04 UTC 2021


On Tue, Mar 23, 2021 at 04:50:54PM +0100, Maarten Lankhorst wrote:
> Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>

Fixes a commit I'll drop anyway, so didn't bother with this one.
-Daniel

> ---
>  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
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


More information about the Intel-gfx mailing list