All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: "Michał Winiarski" <michal.winiarski@intel.com>,
	intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 1/4] drm/i915/guc: Remove obsolete comments and remove unused variable
Date: Tue, 12 Sep 2017 15:21:06 +0100	[thread overview]
Message-ID: <150522606644.29947.4202111966643443885@mail.alporthouse.com> (raw)
In-Reply-To: <150522587602.29947.9258672024882907650@mail.alporthouse.com>

Quoting Chris Wilson (2017-09-12 15:17:56)
> Quoting Michał Winiarski (2017-09-12 13:47:23)
> > Originally removed in:
> > c1adab970348 ("drm/i915/guc: Remove failed doorbell stat from debugfs")
> > f1448a62a103 ("drm/i915/guc: Remove last submission result from debugfs")
> > 
> > Were accidentaly restored in:
> > 925344ccc91d ("BackMerge tag 'v4.12-rc5' into drm-next")
> > 
> > We can also remove unused variable and replace it with a WARN.
> > 
> > Cc: Chris Wilson <chris@chris-wilson.co.uk>
> > Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
> > Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
> > Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
> > ---
> >  drivers/gpu/drm/i915/i915_guc_submission.c | 3 +--
> >  drivers/gpu/drm/i915/intel_uc.h            | 4 ----
> >  2 files changed, 1 insertion(+), 6 deletions(-)
> > 
> > diff --git a/drivers/gpu/drm/i915/i915_guc_submission.c b/drivers/gpu/drm/i915/i915_guc_submission.c
> > index 48a1e9349a2c..8a550785b257 100644
> > --- a/drivers/gpu/drm/i915/i915_guc_submission.c
> > +++ b/drivers/gpu/drm/i915/i915_guc_submission.c
> > @@ -602,7 +602,6 @@ static void __i915_guc_submit(struct drm_i915_gem_request *rq)
> >         struct intel_guc *guc = &rq->i915->guc;
> >         struct i915_guc_client *client = guc->execbuf_client;
> >         unsigned long flags;
> > -       int b_ret;
> >  
> >         /* WA to flush out the pending GMADR writes to ring buffer. */
> >         if (i915_vma_is_map_and_fenceable(rq->ring->vma))
> > @@ -611,7 +610,7 @@ static void __i915_guc_submit(struct drm_i915_gem_request *rq)
> >         spin_lock_irqsave(&client->wq_lock, flags);
> >  
> >         guc_wq_item_append(client, rq);
> > -       b_ret = guc_ring_doorbell(client);
> > +       WARN_ON(guc_ring_doorbell(client));
> 
> Hmm:
> https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_5658/fi-skl-6700k/igt@gem_exec_parallel@basic.html
> 
> Ok, time to dig.

Actually that's a compliment to your lockless implementation. We have
multiple threads competing to ring the doorbell. So one more patch
required...
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2017-09-12 14:21 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-12 12:47 [PATCH 1/4] drm/i915/guc: Remove obsolete comments and remove unused variable Michał Winiarski
2017-09-12 12:47 ` [PATCH 2/4] drm/i915/guc: Submit GuC workitems containing coalesced requests Michał Winiarski
2017-09-12 13:35   ` Chris Wilson
2017-09-12 12:47 ` [PATCH 3/4] drm/i915/guc: Make adding GuC work items lockless Michał Winiarski
2017-09-12 13:40   ` Chris Wilson
2017-09-12 12:47 ` [PATCH 4/4] HAX Enable GuC Submission for CI Michał Winiarski
2017-09-12 13:12   ` Chris Wilson
2017-09-12 13:22   ` [PATCH v2 " Michał Winiarski
2017-09-12 14:08 ` ✗ Fi.CI.BAT: failure for series starting with [1/4] drm/i915/guc: Remove obsolete comments and remove unused variable (rev2) Patchwork
2017-09-12 14:17 ` [PATCH 1/4] drm/i915/guc: Remove obsolete comments and remove unused variable Chris Wilson
2017-09-12 14:21   ` Chris Wilson [this message]
2017-09-12 14:32     ` Chris Wilson
2017-09-13 11:06 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=150522606644.29947.4202111966643443885@mail.alporthouse.com \
    --to=chris@chris-wilson.co.uk \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=michal.winiarski@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.