From: Imre Deak <imre.deak@intel.com>
To: Jani Nikula <jani.nikula@linux.intel.com>,
intel-gfx@lists.freedesktop.org
Cc: David Weinehall <david.weinehall@intel.com>
Subject: Re: [PATCH] drm/i915: Fix mismatched INIT power domain disabling during suspend
Date: Thu, 13 Oct 2016 19:59:17 +0300 [thread overview]
Message-ID: <1476377957.27758.22.camel@intel.com> (raw)
In-Reply-To: <87twcgwiav.fsf@intel.com>
On to, 2016-10-13 at 15:21 +0300, Jani Nikula wrote:
> On Thu, 13 Oct 2016, Imre Deak <imre.deak@intel.com> wrote:
> > Currently the display INIT power domain disabling/enabling happens in a
> > mismatched way in the suspend/resume_early hooks respectively. This can
> > leave display power wells incorrectly disabled in the resume hook if the
> > suspend sequence is aborted for some reason resulting in the
> > suspend/resume hooks getting called but the suspend_late/resume_early
> > hooks being skipped. In particular this change fixes "Unclaimed read
> > from register 0x1e1204" on BYT/BSW triggered from i915_drm_resume()->
> > intel_pps_unlock_regs_wa() when suspending with /sys/power/pm_test set
> > to devices.
> >
> > Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
> > Cc: David Weinehall <david.weinehall@intel.com>
> > Signed-off-by: Imre Deak <imre.deak@intel.com>
>
> Fixes: ?
Fixes: 85e90679335f ("drm/i915: disable power wells on suspend")
> Cc: stable@vger.kernel.org ?
It matters only for an error path which is rare (another device needs
to fail suspending between its suspend and suspend_late steps) and
pm_test. So I'd say this isn't for fixes or stable.
--Imre
>
> > ---
> > drivers/gpu/drm/i915/i915_drv.c | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/i915/i915_drv.c
> > b/drivers/gpu/drm/i915/i915_drv.c
> > index e9b3bfc..5adabac 100644
> > --- a/drivers/gpu/drm/i915/i915_drv.c
> > +++ b/drivers/gpu/drm/i915/i915_drv.c
> > @@ -1430,8 +1430,6 @@ static int i915_drm_suspend(struct drm_device
> > *dev)
> >
> > dev_priv->suspend_count++;
> >
> > - intel_display_set_init_power(dev_priv, false);
> > -
> > intel_csr_ucode_suspend(dev_priv);
> >
> > out:
> > @@ -1449,6 +1447,8 @@ static int i915_drm_suspend_late(struct
> > drm_device *dev, bool hibernation)
> >
> > disable_rpm_wakeref_asserts(dev_priv);
> >
> > + intel_display_set_init_power(dev_priv, false);
> > +
> > fw_csr = !IS_BROXTON(dev_priv) &&
> > suspend_to_idle(dev_priv) && dev_priv-
> > >csr.dmc_payload;
> > /*
>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2016-10-13 16:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-13 11:34 [PATCH] drm/i915: Fix mismatched INIT power domain disabling during suspend Imre Deak
2016-10-13 12:21 ` Jani Nikula
2016-10-13 16:59 ` Imre Deak [this message]
2016-10-13 12:43 ` Ville Syrjälä
2016-10-13 13:18 ` Imre Deak
2016-10-14 11:01 ` ✗ Fi.CI.BAT: warning for " Patchwork
2016-10-14 11:41 ` Imre Deak
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=1476377957.27758.22.camel@intel.com \
--to=imre.deak@intel.com \
--cc=david.weinehall@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@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