public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 4/4] drm/i915: Emit dma-fence (and execlists submit) first from signaler
Date: Mon, 23 Jan 2017 10:58:02 +0000	[thread overview]
Message-ID: <3caee242-6ed0-5187-c3fa-a4965a19bbcd@linux.intel.com> (raw)
In-Reply-To: <20170121092815.1431-4-chris@chris-wilson.co.uk>


On 21/01/2017 09:28, Chris Wilson wrote:
> When introduced, I thought that reducing client latency from the
> signaler was the priority. Since its inception the signaler has become
> responsible for keeping the execlists full, via the dma-fence. As this
> is very important to minimise overall execution time, signal the
> dma-fence first and then signal any waiting clients.
>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
> ---
>  drivers/gpu/drm/i915/intel_breadcrumbs.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_breadcrumbs.c b/drivers/gpu/drm/i915/intel_breadcrumbs.c
> index fcfa423d08bd..c1f3bd2e053b 100644
> --- a/drivers/gpu/drm/i915/intel_breadcrumbs.c
> +++ b/drivers/gpu/drm/i915/intel_breadcrumbs.c
> @@ -459,16 +459,16 @@ static int intel_breadcrumbs_signaler(void *arg)
>  		 */
>  		request = READ_ONCE(b->first_signal);
>  		if (signal_complete(request)) {
> +			local_bh_disable();
> +			dma_fence_signal(&request->fence);
> +			local_bh_enable(); /* kick start the tasklets */
> +
>  			/* Wake up all other completed waiters and select the
>  			 * next bottom-half for the next user interrupt.
>  			 */
>  			intel_engine_remove_wait(engine,
>  						 &request->signaling.wait);
>
> -			local_bh_disable();
> -			dma_fence_signal(&request->fence);
> -			local_bh_enable(); /* kick start the tasklets */
> -
>  			/* Find the next oldest signal. Note that as we have
>  			 * not been holding the lock, another client may
>  			 * have installed an even older signal than the one
>

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

Regards,

Tvrtko
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2017-01-23 10:58 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-21  9:28 [PATCH 1/4] drm/i915: Only disable execlist preemption for the duration of the request Chris Wilson
2017-01-21  9:28 ` [PATCH 2/4] drm/i915: Skip the execlists CSB scan and rewrite if the ring is untouched Chris Wilson
2017-01-23 11:33   ` Joonas Lahtinen
2017-01-23 11:47     ` Chris Wilson
2017-01-21  9:28 ` [PATCH 3/4] drm/i915: Dequeue execlists on a new request if any port is available Chris Wilson
2017-01-23 10:56   ` Tvrtko Ursulin
2017-01-23 11:21     ` Chris Wilson
2017-01-21  9:28 ` [PATCH 4/4] drm/i915: Emit dma-fence (and execlists submit) first from signaler Chris Wilson
2017-01-23 10:58   ` Tvrtko Ursulin [this message]
2017-01-23 11:37   ` Joonas Lahtinen
2017-01-21 10:54 ` ✗ Fi.CI.BAT: warning for series starting with [1/4] drm/i915: Only disable execlist preemption for the duration of the request Patchwork
2017-01-21 11:02   ` Chris Wilson

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=3caee242-6ed0-5187-c3fa-a4965a19bbcd@linux.intel.com \
    --to=tvrtko.ursulin@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