From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= Subject: Re: [PATCH 2/2] drm/i915: only run hsw_power_well_post_enable when really needed Date: Tue, 7 Oct 2014 23:00:54 +0300 Message-ID: <20141007200054.GF32511@intel.com> References: <1412709071-1886-1-git-send-email-przanoni@gmail.com> <1412709071-1886-2-git-send-email-przanoni@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTP id 434A66E04E for ; Tue, 7 Oct 2014 13:01:44 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1412709071-1886-2-git-send-email-przanoni@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Paulo Zanoni Cc: intel-gfx@lists.freedesktop.org, Paulo Zanoni List-Id: intel-gfx@lists.freedesktop.org On Tue, Oct 07, 2014 at 04:11:11PM -0300, Paulo Zanoni wrote: > From: Paulo Zanoni > = > Only run it after we actually enable the power well. When we're > booting the machine there are cases where we run > hsw_power_well_post_enable without really needing, and even though > this is not causing any real bugs, it is unneeded and causes confusion > to people debugging interrupts. > = > Signed-off-by: Paulo Zanoni Seems perfectly sensible. Reviewed-by: Ville Syrj=E4l=E4 > --- > drivers/gpu/drm/i915/intel_runtime_pm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > = > diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c b/drivers/gpu/drm/i9= 15/intel_runtime_pm.c > index 36749b9..39c33e0 100644 > --- a/drivers/gpu/drm/i915/intel_runtime_pm.c > +++ b/drivers/gpu/drm/i915/intel_runtime_pm.c > @@ -221,9 +221,9 @@ static void hsw_set_power_well(struct drm_i915_privat= e *dev_priv, > if (wait_for((I915_READ(HSW_PWR_WELL_DRIVER) & > HSW_PWR_WELL_STATE_ENABLED), 20)) > DRM_ERROR("Timeout enabling power well\n"); > + hsw_power_well_post_enable(dev_priv); > } > = > - hsw_power_well_post_enable(dev_priv); > } else { > if (enable_requested) { > I915_WRITE(HSW_PWR_WELL_DRIVER, 0); > -- = > 2.1.1 > = > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- = Ville Syrj=E4l=E4 Intel OTC