All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Imre Deak <imre.deak@intel.com>
Cc: intel-gfx@lists.freedesktop.org, Chris Wilson <chris@chris-wilson.co.uk>
Subject: Re: [Intel-gfx] [PATCH] drm/i915: Disable runtime power management during shutdown
Date: Wed, 3 Feb 2021 13:40:05 +0200	[thread overview]
Message-ID: <YBqLlRYq00BEP/4i@intel.com> (raw)
In-Reply-To: <20210128191349.GE142820@ideak-desk.fi.intel.com>

On Thu, Jan 28, 2021 at 09:13:49PM +0200, Imre Deak wrote:
> On Wed, Jan 27, 2021 at 08:19:09PM +0200, Imre Deak wrote:
> > At least on some TGL platforms PUNIT wants to access some display HW
> > registers, but it doesn't handle display power managment (disabling DC
> > states as required) and so this register access will lead to a hang. To
> > prevent this disable runtime power management for poweroff and reboot.
> > 
> > Reported-and-tested-by: Khaled Almahallawy <khaled.almahallawy@intel.com>
> > Signed-off-by: Imre Deak <imre.deak@intel.com>
> 
> Chris or Ville, could you ack if you see no problem with this?

Looks consistent enough with the other paths.

I guess we're now powering on pretty much everything before
reboot shutdown due to the INIT domain? Hopefully no harm in
that.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

> > ---
> >  drivers/gpu/drm/i915/i915_drv.c | 5 +++++
> >  1 file changed, 5 insertions(+)
> > 
> > diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
> > index 0037b81d991e..6f83cca8e27b 100644
> > --- a/drivers/gpu/drm/i915/i915_drv.c
> > +++ b/drivers/gpu/drm/i915/i915_drv.c
> > @@ -1054,6 +1054,8 @@ static void intel_shutdown_encoders(struct drm_i915_private *dev_priv)
> >  void i915_driver_shutdown(struct drm_i915_private *i915)
> >  {
> >  	disable_rpm_wakeref_asserts(&i915->runtime_pm);
> > +	intel_runtime_pm_disable(&i915->runtime_pm);
> > +	intel_power_domains_disable(i915);
> >  
> >  	i915_gem_suspend(i915);
> >  
> > @@ -1069,7 +1071,10 @@ void i915_driver_shutdown(struct drm_i915_private *i915)
> >  	intel_suspend_encoders(i915);
> >  	intel_shutdown_encoders(i915);
> >  
> > +	intel_power_domains_driver_remove(i915);
> >  	enable_rpm_wakeref_asserts(&i915->runtime_pm);
> > +
> > +	intel_runtime_pm_driver_release(&i915->runtime_pm);
> >  }
> >  
> >  static bool suspend_to_idle(struct drm_i915_private *dev_priv)
> > -- 
> > 2.25.1
> > 
> > _______________________________________________
> > Intel-gfx mailing list
> > Intel-gfx@lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
Ville Syrjälä
Intel
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2021-02-03 11:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-27 18:19 [Intel-gfx] [PATCH] drm/i915: Disable runtime power management during shutdown Imre Deak
2021-01-27 19:37 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
2021-01-27 20:06 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2021-01-27 21:14 ` [Intel-gfx] [PATCH] " Almahallawy, Khaled
2021-01-28  0:31 ` [Intel-gfx] ✓ Fi.CI.IGT: success for " Patchwork
2021-02-04 18:23   ` Imre Deak
2021-01-28 19:13 ` [Intel-gfx] [PATCH] " Imre Deak
2021-02-03 11:40   ` Ville Syrjälä [this message]
2021-02-03 15:39     ` 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=YBqLlRYq00BEP/4i@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=chris@chris-wilson.co.uk \
    --cc=imre.deak@intel.com \
    --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.