[Intel-gfx] [PATCH] drm/i915: Assert that we don't submit to execlists whilst a preempt is pending

Mika Kuoppala mika.kuoppala at linux.intel.com
Mon Jan 23 15:31:14 UTC 2017


Chris Wilson <chris at chris-wilson.co.uk> writes:

> To complement the check in execlists_elsp_ready(), also assert that we
> don't submit the same context while it has a lite restore still pending.
>
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

Reviewed-by: Mika Kuoppala <mika.kuoppala at intel.com>

> ---
>  drivers/gpu/drm/i915/intel_lrc.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/i915/intel_lrc.c b/drivers/gpu/drm/i915/intel_lrc.c
> index eceffe25c022..18f0afd9fa81 100644
> --- a/drivers/gpu/drm/i915/intel_lrc.c
> +++ b/drivers/gpu/drm/i915/intel_lrc.c
> @@ -384,6 +384,7 @@ static void execlists_submit_ports(struct intel_engine_cs *engine)
>  		dev_priv->regs + i915_mmio_reg_offset(RING_ELSP(engine));
>  	u64 desc[2];
>  
> +	GEM_BUG_ON(port[0].count > 1);
>  	if (!port[0].count)
>  		execlists_context_status_change(port[0].request,
>  						INTEL_CONTEXT_SCHEDULE_IN);
> -- 
> 2.11.0


More information about the Intel-gfx mailing list