From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= Subject: Re: [PATCH 37/62] drm/i915/bdw: pretend we have LPT LP on Broadwell Date: Sun, 3 Nov 2013 13:19:17 +0200 Message-ID: <20131103111917.GN13047@intel.com> References: <1383451680-11173-1-git-send-email-benjamin.widawsky@intel.com> <1383451680-11173-38-git-send-email-benjamin.widawsky@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mga14.intel.com (mga14.intel.com [143.182.124.37]) by gabe.freedesktop.org (Postfix) with ESMTP id 03425EE158 for ; Sun, 3 Nov 2013 03:19:21 -0800 (PST) Content-Disposition: inline In-Reply-To: <1383451680-11173-38-git-send-email-benjamin.widawsky@intel.com> 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: Ben Widawsky Cc: Daniel Vetter , Intel GFX , Ben Widawsky , Paulo Zanoni List-Id: intel-gfx@lists.freedesktop.org On Sat, Nov 02, 2013 at 09:07:35PM -0700, Ben Widawsky wrote: > From: Paulo Zanoni > = > The platforms we currently have all have LPT LP on them. As such, we > have no way to identify the new WPT PCH that will ship with Broadwell. > = > NOTE: For all purposes relevant to the driver that this point, LPT and > WPT are equivalent. Therefore there should be no need to actually change > this for some time. > = > v2: Don't assign dev_priv->num_pch_pll any more. > = > v3: Rebase on top of the PCH detection changes for virtualized > enviroments. > = > v4 (Ben): Wrote commit message > = > Signed-off-by: Paulo Zanoni (v1) > Signed-off-by: Daniel Vetter > Signed-off-by: Ben Widawsky > --- I would have probably placed the hack to the if (!pch) block in the end, but since it's a hack anyway I guess it's good enough. Reviewed-by: Ville Syrj=E4l=E4 > drivers/gpu/drm/i915/i915_drv.c | 6 ++++++ > 1 file changed, 6 insertions(+) > = > diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_= drv.c > index c86d44b..590d999 100644 > --- a/drivers/gpu/drm/i915/i915_drv.c > +++ b/drivers/gpu/drm/i915/i915_drv.c > @@ -453,6 +453,12 @@ void intel_detect_pch(struct drm_device *dev) > DRM_DEBUG_KMS("Found LynxPoint LP PCH\n"); > WARN_ON(!IS_HASWELL(dev)); > WARN_ON(!IS_ULT(dev)); > + } else if (IS_BROADWELL(dev)) { > + dev_priv->pch_type =3D PCH_LPT; > + dev_priv->pch_id =3D > + INTEL_PCH_LPT_LP_DEVICE_ID_TYPE; > + DRM_DEBUG_KMS("This is Broadwell, assuming " > + "LynxPoint LP PCH\n"); > } else { > goto check_next; > } > -- = > 1.8.4.2 > = > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- = Ville Syrj=E4l=E4 Intel OTC