From: Jesse Barnes Subject: Re: [PATCH] drm/i915: protect HSW power well check with IS_HASWELL in redisable_vga Date: Fri, 11 Oct 2013 14:46:16 -0700 Message-ID: <20131011144616.24ad120c@jbarnes-desktop> References: <1381525350-22675-1-git-send-email-jbarnes@virtuousgeek.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from outbound-ss-1869.hostmonster.com (outbound-ss-1869.hostmonster.com [66.147.252.18]) by gabe.freedesktop.org (Postfix) with SMTP id C13C3E623E for ; Fri, 11 Oct 2013 17:08:50 -0700 (PDT) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Paulo Zanoni Cc: Intel Graphics Development List-Id: intel-gfx@lists.freedesktop.org On Fri, 11 Oct 2013 18:39:01 -0300 Paulo Zanoni wrote: > 2013/10/11 Jesse Barnes : > > This may need work if other platforms do the same thing, but in the > > meantime we should avoid looking at HSW specific bits in this generic > > function. > > > > Signed-off-by: Jesse Barnes > > --- > > drivers/gpu/drm/i915/intel_display.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c > > index 53c4ea8..e1b19b4 100644 > > --- a/drivers/gpu/drm/i915/intel_display.c > > +++ b/drivers/gpu/drm/i915/intel_display.c > > @@ -10667,7 +10667,7 @@ void i915_redisable_vga(struct drm_device *dev) > > * level, just check if the power well is enabled instead of trying to > > * follow the "don't touch the power well if we don't need it" policy > > * the rest of the driver uses. */ > > - if (HAS_POWER_WELL(dev) && > > + if (IS_HASWELL(dev) && > > But today, HAS_POWER_WELL is exactly the same thing as IS_HASWELL, so > you're not really changing anything besides coding style :) > > I know you have plans to add power well support for other platforms, > so: Reviewed-by: Paulo Zanoni > > But this patch really makes sense only when inside some bigger series > that we haven't seen yet. I'll leave the decision to merge it or not > to Daniel. The bigger series is coming, indulge me with this patch. :) -- Jesse Barnes, Intel Open Source Technology Center