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
Subject: Re: [PATCH 2/3] drm/i915: Define VLV/CHV display power well domains properly
Date: Tue, 19 Apr 2016 15:04:26 +0300	[thread overview]
Message-ID: <20160419120426.GQ4329@intel.com> (raw)
In-Reply-To: <1461045245.13585.7.camel@intel.com>

On Tue, Apr 19, 2016 at 08:54:05AM +0300, Imre Deak wrote:
> On Mon, 2016-04-18 at 14:02 +0300, ville.syrjala@linux.intel.com wrote:
> > From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> > 
> > Currently we're using POWER_DOMAIN_MASK as the power domains for the
> > display power well on VLV/CHV. That includes all power domains even
> > though the disp2d/pipe-a power well is not needed for a lot of
> > things.
> > Let's reduce these to what we actually need.
> >
> > Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> 
> Ok, so this mostly removes domains that are not defined on the given
> platform and so shouldn't be requested. (Btw, the always-on well will
> be different now in this regard after patch 1, since for that we also
> include the not-defined domains, but I think that's ok.) The modeset
> domain is the exception which may power things atm unnecessarily.

True. But probably not worth making an exception there.

> Looks
> ok:
> Reviewed-by: Imre Deak <imre.deak@intel.com>

Thanks. Entire series pushed to dinq.

> 
> > ---
> >  drivers/gpu/drm/i915/intel_runtime_pm.c | 42
> > +++++++++++++++++++++++++++++++--
> >  1 file changed, 40 insertions(+), 2 deletions(-)
> > 
> > diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c
> > b/drivers/gpu/drm/i915/intel_runtime_pm.c
> > index fe63d77b7dfb..585bbe7cefa6 100644
> > --- a/drivers/gpu/drm/i915/intel_runtime_pm.c
> > +++ b/drivers/gpu/drm/i915/intel_runtime_pm.c
> > @@ -1615,7 +1615,23 @@ void intel_display_power_put(struct
> > drm_i915_private *dev_priv,
> >  	(POWER_DOMAIN_MASK & ~BDW_ALWAYS_ON_POWER_DOMAINS) |	
> > \
> >  	BIT(POWER_DOMAIN_INIT))
> >  
> > -#define VLV_DISPLAY_POWER_DOMAINS	POWER_DOMAIN_MASK
> > +#define VLV_DISPLAY_POWER_DOMAINS (		\
> > +	BIT(POWER_DOMAIN_PIPE_A) |		\
> > +	BIT(POWER_DOMAIN_PIPE_B) |		\
> > +	BIT(POWER_DOMAIN_PIPE_A_PANEL_FITTER) |	\
> > +	BIT(POWER_DOMAIN_PIPE_B_PANEL_FITTER) |	\
> > +	BIT(POWER_DOMAIN_TRANSCODER_A) |	\
> > +	BIT(POWER_DOMAIN_TRANSCODER_B) |	\
> > +	BIT(POWER_DOMAIN_PORT_DDI_B_LANES) |	\
> > +	BIT(POWER_DOMAIN_PORT_DDI_C_LANES) |	\
> > +	BIT(POWER_DOMAIN_PORT_DSI) |		\
> > +	BIT(POWER_DOMAIN_PORT_CRT) |		\
> > +	BIT(POWER_DOMAIN_VGA) |			\
> > +	BIT(POWER_DOMAIN_AUDIO) |		\
> > +	BIT(POWER_DOMAIN_AUX_B) |		\
> > +	BIT(POWER_DOMAIN_AUX_C) |		\
> > +	BIT(POWER_DOMAIN_GMBUS) |		\
> > +	BIT(POWER_DOMAIN_INIT))
> >  
> >  #define VLV_DPIO_CMN_BC_POWER_DOMAINS (		\
> >  	BIT(POWER_DOMAIN_PORT_DDI_B_LANES) |	\
> > @@ -1645,6 +1661,28 @@ void intel_display_power_put(struct
> > drm_i915_private *dev_priv,
> >  	BIT(POWER_DOMAIN_AUX_C) |		\
> >  	BIT(POWER_DOMAIN_INIT))
> >  
> > +#define CHV_DISPLAY_POWER_DOMAINS (		\
> > +	BIT(POWER_DOMAIN_PIPE_A) |		\
> > +	BIT(POWER_DOMAIN_PIPE_B) |		\
> > +	BIT(POWER_DOMAIN_PIPE_C) |		\
> > +	BIT(POWER_DOMAIN_PIPE_A_PANEL_FITTER) |	\
> > +	BIT(POWER_DOMAIN_PIPE_B_PANEL_FITTER) |	\
> > +	BIT(POWER_DOMAIN_PIPE_C_PANEL_FITTER) |	\
> > +	BIT(POWER_DOMAIN_TRANSCODER_A) |	\
> > +	BIT(POWER_DOMAIN_TRANSCODER_B) |	\
> > +	BIT(POWER_DOMAIN_TRANSCODER_C) |	\
> > +	BIT(POWER_DOMAIN_PORT_DDI_B_LANES) |	\
> > +	BIT(POWER_DOMAIN_PORT_DDI_C_LANES) |	\
> > +	BIT(POWER_DOMAIN_PORT_DDI_D_LANES) |	\
> > +	BIT(POWER_DOMAIN_PORT_DSI) |		\
> > +	BIT(POWER_DOMAIN_VGA) |			\
> > +	BIT(POWER_DOMAIN_AUDIO) |		\
> > +	BIT(POWER_DOMAIN_AUX_B) |		\
> > +	BIT(POWER_DOMAIN_AUX_C) |		\
> > +	BIT(POWER_DOMAIN_AUX_D) |		\
> > +	BIT(POWER_DOMAIN_GMBUS) |		\
> > +	BIT(POWER_DOMAIN_INIT))
> > +
> >  #define CHV_DPIO_CMN_BC_POWER_DOMAINS (		\
> >  	BIT(POWER_DOMAIN_PORT_DDI_B_LANES) |	\
> >  	BIT(POWER_DOMAIN_PORT_DDI_C_LANES) |	\
> > @@ -1829,7 +1867,7 @@ static struct i915_power_well chv_power_wells[]
> > = {
> >  		 * power wells don't actually exist. Pipe A power
> > well is
> >  		 * required for any pipe to work.
> >  		 */
> > -		.domains = VLV_DISPLAY_POWER_DOMAINS,
> > +		.domains = CHV_DISPLAY_POWER_DOMAINS,
> >  		.data = PIPE_A,
> >  		.ops = &chv_pipe_power_well_ops,
> >  	},

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

  reply	other threads:[~2016-04-19 12:04 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-18 11:02 [PATCH 0/3] drm/i915: Power domain fixes ville.syrjala
2016-04-18 11:02 ` [PATCH 1/3] drm/i915: Set .domains=POWER_DOMAIN_MASK for the always-on well ville.syrjala
2016-04-19  5:23   ` Imre Deak
2016-04-18 11:02 ` [PATCH 2/3] drm/i915: Define VLV/CHV display power well domains properly ville.syrjala
2016-04-19  5:54   ` Imre Deak
2016-04-19 12:04     ` Ville Syrjälä [this message]
2016-04-18 11:02 ` [PATCH 3/3] drm/i915: Define HSW/BDW display power domains the right way up ville.syrjala
2016-04-19  6:25   ` Imre Deak
2016-04-18 12:03 ` ✗ Fi.CI.BAT: failure for drm/i915: Power domain fixes Patchwork
2016-04-18 16:42   ` Ville Syrjälä
2016-04-18 16:52     ` 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=20160419120426.GQ4329@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --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.