All of 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 2/2] drm/i915/gt: Save/restore interrupts around breadcrumb disable
Date: Tue, 13 Aug 2019 17:50:03 +0300	[thread overview]
Message-ID: <87a7cd6rxg.fsf@gaia.fi.intel.com> (raw)
In-Reply-To: <20190813132916.20382-2-chris@chris-wilson.co.uk>

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

> Stop assuming we only get called with irqs-on for disarming the
> breadcrumbs, and do a full save/restore spin_lock_irq.
>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>

perf timer, drop ref, engine_unpark, disable_breadcrumbs
with irqs off.

Well, the trace on previous patch makes it clear,
for those who know the code...I had to read.

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

> ---
>  drivers/gpu/drm/i915/gt/intel_breadcrumbs.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/gt/intel_breadcrumbs.c b/drivers/gpu/drm/i915/gt/intel_breadcrumbs.c
> index 15bbdd8c7552..2bc9c460e78d 100644
> --- a/drivers/gpu/drm/i915/gt/intel_breadcrumbs.c
> +++ b/drivers/gpu/drm/i915/gt/intel_breadcrumbs.c
> @@ -67,14 +67,15 @@ static void __intel_breadcrumbs_disarm_irq(struct intel_breadcrumbs *b)
>  void intel_engine_disarm_breadcrumbs(struct intel_engine_cs *engine)
>  {
>  	struct intel_breadcrumbs *b = &engine->breadcrumbs;
> +	unsigned long flags;
>  
>  	if (!b->irq_armed)
>  		return;
>  
> -	spin_lock_irq(&b->irq_lock);
> +	spin_lock_irqsave(&b->irq_lock, flags);
>  	if (b->irq_armed)
>  		__intel_breadcrumbs_disarm_irq(b);
> -	spin_unlock_irq(&b->irq_lock);
> +	spin_unlock_irqrestore(&b->irq_lock, flags);
>  }
>  
>  static inline bool __request_completed(const struct i915_request *rq)
> -- 
> 2.23.0.rc1
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2019-08-13 14:50 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-13 13:29 [PATCH 1/2] drm/i915: Push the wakeref->count deferral to the backend Chris Wilson
2019-08-13 13:29 ` [PATCH 2/2] drm/i915/gt: Save/restore interrupts around breadcrumb disable Chris Wilson
2019-08-13 14:50   ` Mika Kuoppala [this message]
2019-08-13 13:44 ` ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/2] drm/i915: Push the wakeref->count deferral to the backend Patchwork
2019-08-13 14:07 ` ✓ Fi.CI.BAT: success " Patchwork
2019-08-13 14:47 ` [PATCH 1/2] " Mika Kuoppala
2019-08-13 14:51 ` [PATCH v2] " Chris Wilson
2019-08-13 19:07   ` [PATCH v3] " Chris Wilson
2019-08-13 17:45 ` ✗ Fi.CI.CHECKPATCH: warning for series starting with [v2] drm/i915: Push the wakeref->count deferral to the backend (rev2) Patchwork
2019-08-13 18:14 ` ✗ Fi.CI.BAT: failure " Patchwork
2019-08-13 19:29 ` ✗ Fi.CI.CHECKPATCH: warning for series starting with [v3] drm/i915: Push the wakeref->count deferral to the backend (rev3) Patchwork
2019-08-13 19:55 ` ✓ Fi.CI.BAT: success " Patchwork
2019-08-13 21:05 ` ✓ Fi.CI.IGT: success for series starting with [1/2] drm/i915: Push the wakeref->count deferral to the backend Patchwork
2019-08-14  7:45 ` ✓ Fi.CI.IGT: success for series starting with [v3] drm/i915: Push the wakeref->count deferral to the backend (rev3) 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=87a7cd6rxg.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 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.