All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: Mika Kuoppala <mika.kuoppala@linux.intel.com>,
	intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: Skip engine serialisation for no-op seqno reset
Date: Tue, 27 Nov 2018 12:59:46 +0000	[thread overview]
Message-ID: <154332358631.11623.1181961237855620841@skylake-alporthouse-com> (raw)
In-Reply-To: <87k1kyfzps.fsf@gaia.fi.intel.com>

Quoting Mika Kuoppala (2018-11-27 12:54:07)
> Chris Wilson <chris@chris-wilson.co.uk> writes:
> 
> > If the engine's seqno is already at our target seqno (most likely it
> > hasn't been used since the last reset), we can skip serialising the
> > engine and leave it as is.
> >
> > Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> > Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
> > ---
> >  drivers/gpu/drm/i915/i915_request.c | 3 +++
> >  1 file changed, 3 insertions(+)
> >
> > diff --git a/drivers/gpu/drm/i915/i915_request.c b/drivers/gpu/drm/i915/i915_request.c
> > index 71107540581d..ca95ab2f4cfa 100644
> > --- a/drivers/gpu/drm/i915/i915_request.c
> > +++ b/drivers/gpu/drm/i915/i915_request.c
> > @@ -136,6 +136,9 @@ static int reset_all_global_seqno(struct drm_i915_private *i915, u32 seqno)
> >                         intel_engine_get_seqno(engine),
> >                         seqno);
> >  
> > +             if (seqno == engine->timeline.seqno)
> > +                     continue;
> > +
> 
> Patch looks valid. Only concern is possibility of hiding
> the idle assertion deeper. But as that is for icl
> and debugfs stomping, I am in favour.

Ssh, what if that was its primary raison d'etre? ;)
Though given the failure, it's not going to completely hide them.
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

      reply	other threads:[~2018-11-27 12:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-26  9:56 [PATCH] drm/i915: Skip engine serialisation for no-op seqno reset Chris Wilson
2018-11-26 12:52 ` ✓ Fi.CI.BAT: success for " Patchwork
2018-11-26 16:25 ` ✗ Fi.CI.IGT: failure " Patchwork
2018-11-27 12:54 ` [PATCH] " Mika Kuoppala
2018-11-27 12:59   ` Chris Wilson [this message]

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=154332358631.11623.1181961237855620841@skylake-alporthouse-com \
    --to=chris@chris-wilson.co.uk \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=mika.kuoppala@linux.intel.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.