From: Jesse Barnes Subject: Re: [PATCH v2 05/21] drm/i915: add init power domain to always-on power wells Date: Thu, 6 Mar 2014 11:01:26 -0800 Message-ID: <20140306110126.0049a04a@jbarnes-desktop> References: <1393953790-20733-1-git-send-email-imre.deak@intel.com> <1393953790-20733-6-git-send-email-imre.deak@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from oproxy18-pub.mail.unifiedlayer.com (oproxy18-pub.mail.unifiedlayer.com [69.89.17.20]) by gabe.freedesktop.org (Postfix) with SMTP id 481E0F9C39 for ; Thu, 6 Mar 2014 11:00:53 -0800 (PST) In-Reply-To: <1393953790-20733-6-git-send-email-imre.deak@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org To: Imre Deak Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Tue, 4 Mar 2014 19:22:54 +0200 Imre Deak wrote: > Whenever we request a power domain it has to guarantee that all HW > resources are enabled that are needed to access a HW register associated > with that power domain. In case a register is on an always-on power well > this won't result in turning on a power well, but it may require > enabling some other HW resource. One such resource is the HSW/BDW device > D0 state that is required for all register accesses and thus for all > power wells/power domains. > > So far the init power domain (guaranteeing access to all HW registers) > was part of the default i9xx always-on power well, but not the HSW/BDW > always-on power wells. Add the domain to the latter power wells too. > > Atm, all the always-on power wells have noop handlers, so this doesn't > change the functionality. > > v2: > - clarify semantics of always-on power wells (Paulo) > > Signed-off-by: Imre Deak > --- > drivers/gpu/drm/i915/intel_pm.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c > index ebbd0ed..9a608f1 100644 > --- a/drivers/gpu/drm/i915/intel_pm.c > +++ b/drivers/gpu/drm/i915/intel_pm.c > @@ -5388,7 +5388,8 @@ EXPORT_SYMBOL_GPL(i915_release_power_well); > > #define HSW_ALWAYS_ON_POWER_DOMAINS ( \ > BIT(POWER_DOMAIN_PIPE_A) | \ > - BIT(POWER_DOMAIN_TRANSCODER_EDP)) > + BIT(POWER_DOMAIN_TRANSCODER_EDP) | \ > + BIT(POWER_DOMAIN_INIT)) > #define HSW_DISPLAY_POWER_DOMAINS ( \ > (POWER_DOMAIN_MASK & ~HSW_ALWAYS_ON_POWER_DOMAINS) | \ > BIT(POWER_DOMAIN_INIT)) Reviewed-by: Jesse Barnes -- Jesse Barnes, Intel Open Source Technology Center