From: Imre Deak <imre.deak@intel.com>
To: ville.syrjala@linux.intel.com, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: synchronize_irq() before turning off disp2d power well on VLV/CHV
Date: Mon, 22 Feb 2016 14:37:25 +0200 [thread overview]
Message-ID: <1456144645.9487.11.camel@intel.com> (raw)
In-Reply-To: <1455900112-15387-1-git-send-email-ville.syrjala@linux.intel.com>
On pe, 2016-02-19 at 18:41 +0200, ville.syrjala@linux.intel.com wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> After we've told the irq code we don't want to handle display irqs
> anymore, we must make sure any display irq handling already
> kicked off has finished before we actually turn off the power well.
>
> I wouldn't expect PIPESTAT based interrupts to occur anymore since
> vblanks/page flips/gmbus/etc should all be quiescent at this point.
> But at least hotplug interrupts could still occur. Hotplug
> interrupts may also kick off the workqueue based hotplug processing,
> but that code should take the required power domain references
> itself, so there shouldn't be any need to synchronize with the
> hotplug processing from the power well code.
>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
> ---
> drivers/gpu/drm/i915/intel_runtime_pm.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c
> b/drivers/gpu/drm/i915/intel_runtime_pm.c
> index a2e367cf99a2..59e9222223c9 100644
> --- a/drivers/gpu/drm/i915/intel_runtime_pm.c
> +++ b/drivers/gpu/drm/i915/intel_runtime_pm.c
> @@ -941,6 +941,9 @@ static void vlv_display_power_well_deinit(struct
> drm_i915_private *dev_priv)
> valleyview_disable_display_irqs(dev_priv);
> spin_unlock_irq(&dev_priv->irq_lock);
>
> + /* make sure we're done processing display irqs */
> + synchronize_irq(dev_priv->dev->irq);
> +
> vlv_power_sequencer_reset(dev_priv);
> }
>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2016-02-22 12:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-19 16:41 [PATCH] drm/i915: synchronize_irq() before turning off disp2d power well on VLV/CHV ville.syrjala
2016-02-22 10:23 ` ✗ Fi.CI.BAT: warning for " Patchwork
2016-02-22 15:04 ` Ville Syrjälä
2016-02-22 12:37 ` Imre Deak [this message]
2016-02-22 17:46 ` [PATCH] " Ville Syrjälä
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=1456144645.9487.11.camel@intel.com \
--to=imre.deak@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=ville.syrjala@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).