[Intel-gfx] [PATCH] drm/i915: Add execution priority boosting for mmioflips

Tvrtko Ursulin tvrtko.ursulin at linux.intel.com
Tue Nov 15 09:39:33 UTC 2016


On 15/11/2016 09:22, Chris Wilson wrote:
> Commit 6b5e90f58c56 ("drm/i915/scheduler: Boost priorities for flips")
> added priority boosting for the modern atomic pageflips (and modesets),
> but we should do the same for existing users of mmioflips (we don't yet
> need to consider csflips as they are not used by execlists and so do not
> have any support for a scheduler).
>
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> ---
>  drivers/gpu/drm/i915/intel_display.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> index 0be9447cc31f..06d9deea1a6f 100644
> --- a/drivers/gpu/drm/i915/intel_display.c
> +++ b/drivers/gpu/drm/i915/intel_display.c
> @@ -12038,6 +12038,7 @@ static void intel_mmio_flip_work_func(struct work_struct *w)
>  		to_intel_framebuffer(crtc->base.primary->fb);
>  	struct drm_i915_gem_object *obj = intel_fb->obj;
>
> +	i915_gem_object_wait_priority(obj, 0, I915_PRIORITY_DISPLAY);
>  	WARN_ON(i915_gem_object_wait(obj, 0, MAX_SCHEDULE_TIMEOUT, NULL) < 0);
>
>  	intel_pipe_update_start(crtc);
>

Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>

Regards,

Tvrtko


More information about the Intel-gfx mailing list