Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Mika Kuoppala <mika.kuoppala@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] RFT drm/i915/execlists: Flush memory before signaling ELSQ
Date: Wed, 31 Oct 2018 16:49:38 +0200	[thread overview]
Message-ID: <871s86i325.fsf@gaia.fi.intel.com> (raw)
In-Reply-To: <20181031090243.31993-1-chris@chris-wilson.co.uk>

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

> We observe that the ordering of writes for a CS event is not as strong
> from the GPU as we would like, and that on occasions we see the
> ringbuffer tail updated before the event is written into the ringbuffer,
> leading us to reuse the stale data.
>
> Through around a big hammer to try and batter ELSQ into submission with
> the presumption that perhaps the UC mmio write is not flushing our
> writes into the context images.
>
> References: https://bugs.freedesktop.org/show_bug.cgi?id=108315
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> ---
>  drivers/gpu/drm/i915/intel_lrc.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_lrc.c b/drivers/gpu/drm/i915/intel_lrc.c
> index 22b57b8926fc..ba61849fbb9b 100644
> --- a/drivers/gpu/drm/i915/intel_lrc.c
> +++ b/drivers/gpu/drm/i915/intel_lrc.c
> @@ -454,8 +454,10 @@ static void execlists_submit_ports(struct intel_engine_cs *engine)
>  	}
>  
>  	/* we need to manually load the submit queue */
> -	if (execlists->ctrl_reg)
> +	if (execlists->ctrl_reg) {
> +		wmb(); /* XXX Big hammer or paper? XXX */
>  		writel(EL_CTRL_LOAD, execlists->ctrl_reg);

Will be difficult to know if it is the additional delay or
not.

The question is then why would it only be with ctrl_reg and
not legacy submission mode. So lets try with legacy mode?

-Mika

> +	}
>  
>  	execlists_clear_active(execlists, EXECLISTS_ACTIVE_HWACK);
>  }
> -- 
> 2.19.1
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  parent reply	other threads:[~2018-10-31 14:50 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-31  9:02 [PATCH] RFT drm/i915/execlists: Flush memory before signaling ELSQ Chris Wilson
2018-10-31 12:14 ` ✓ Fi.CI.BAT: success for " Patchwork
2018-10-31 14:05 ` Patchwork
2018-10-31 14:35 ` Patchwork
2018-10-31 14:49 ` Mika Kuoppala [this message]
2018-10-31 15:06   ` [PATCH] " Chris Wilson
2018-10-31 15:29 ` ✓ Fi.CI.BAT: success for " Patchwork
2018-10-31 15:51 ` ✓ Fi.CI.IGT: " Patchwork
2018-10-31 16:03 ` ✓ Fi.CI.BAT: " Patchwork
2018-10-31 16:37 ` Patchwork
2018-10-31 16:43   ` Chris Wilson
2018-10-31 17:39 ` Patchwork
2018-10-31 17:55 ` ✓ Fi.CI.IGT: " Patchwork
2018-10-31 18:20 ` ✓ Fi.CI.BAT: " Patchwork
2018-10-31 19:17 ` ✓ Fi.CI.IGT: " Patchwork
2018-10-31 20:40 ` Patchwork
2018-10-31 21:04 ` ✓ Fi.CI.BAT: " Patchwork
2018-10-31 22:02 ` ✓ Fi.CI.IGT: " Patchwork
2018-10-31 22:11 ` ✓ Fi.CI.BAT: " Patchwork
2018-10-31 23:21 ` ✓ Fi.CI.IGT: " Patchwork
2018-11-01  1:24 ` Patchwork
2018-11-01  2:47 ` Patchwork
2018-11-01  6:12 ` Patchwork
2018-11-01  8:16 ` Patchwork
2018-11-01  9:06 ` ✓ Fi.CI.BAT: " Patchwork
2018-11-01 11:39 ` ✓ Fi.CI.IGT: " Patchwork
2018-11-01 14:37 ` ✓ Fi.CI.BAT: " Patchwork
2018-11-01 16:24 ` ✓ Fi.CI.IGT: " Patchwork
2018-11-01 17:44 ` ✓ Fi.CI.BAT: " Patchwork
2018-11-01 19:54 ` ✓ Fi.CI.IGT: " Patchwork
2018-11-02  9:49 ` ✓ Fi.CI.BAT: " Patchwork
2018-11-02 11:30 ` ✓ Fi.CI.IGT: " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871s86i325.fsf@gaia.fi.intel.com \
    --to=mika.kuoppala@linux.intel.com \
    --cc=chris@chris-wilson.co.uk \
    --cc=intel-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox