All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paulo Zanoni <paulo.r.zanoni@intel.com>
To: Rodrigo Vivi <rodrigo.vivi@intel.com>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: Fix PCH names for KBP and CNP.
Date: Mon, 31 Jul 2017 16:05:24 -0300	[thread overview]
Message-ID: <1501527924.2624.31.camel@intel.com> (raw)
In-Reply-To: <20170731185220.758-1-rodrigo.vivi@intel.com>

Em Seg, 2017-07-31 às 11:52 -0700, Rodrigo Vivi escreveu:
> No functional change.
> 
> KBP was based on SPT and spec wasn't clear about the full name.
> There was the initial point of the "Point" confusion.
> 
> Later the split with Coffee Lake and Cannon Lake both using CNP
> and also some uncertainty from the specs we had at that time
> made us to propagated the mistake along.
> 
> So, let's fix this now and avoid propagating these wrong
> "points".

Can't we go further and try to hardcode the used PCH based on the
graphics PCI ID? I mean, skip detection entirely.

> 
> Cc: Anusha Srivatsa <anusha.srivatsa@intel.com>
> Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> ---
>  drivers/gpu/drm/i915/i915_drv.c | 6 +++---
>  drivers/gpu/drm/i915/i915_drv.h | 4 ++--
>  2 files changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_drv.c
> b/drivers/gpu/drm/i915/i915_drv.c
> index 214555e813f1..9561c2a19fc1 100644
> --- a/drivers/gpu/drm/i915/i915_drv.c
> +++ b/drivers/gpu/drm/i915/i915_drv.c
> @@ -237,17 +237,17 @@ static void intel_detect_pch(struct
> drm_i915_private *dev_priv)
>  					!IS_KABYLAKE(dev_priv));
>  			} else if (id ==
> INTEL_PCH_KBP_DEVICE_ID_TYPE) {
>  				dev_priv->pch_type = PCH_KBP;
> -				DRM_DEBUG_KMS("Found KabyPoint
> PCH\n");
> +				DRM_DEBUG_KMS("Found Kaby Lake PCH
> (KBP)\n");
>  				WARN_ON(!IS_SKYLAKE(dev_priv) &&
>  					!IS_KABYLAKE(dev_priv));
>  			} else if (id ==
> INTEL_PCH_CNP_DEVICE_ID_TYPE) {
>  				dev_priv->pch_type = PCH_CNP;
> -				DRM_DEBUG_KMS("Found CannonPoint
> PCH\n");
> +				DRM_DEBUG_KMS("Found Cannon Lake PCH
> (CNP)\n");
>  				WARN_ON(!IS_CANNONLAKE(dev_priv) &&
>  					!IS_COFFEELAKE(dev_priv));
>  			} else if (id ==
> INTEL_PCH_CNP_LP_DEVICE_ID_TYPE) {
>  				dev_priv->pch_type = PCH_CNP;
> -				DRM_DEBUG_KMS("Found CannonPoint LP
> PCH\n");
> +				DRM_DEBUG_KMS("Found Cannon Lake LP
> PCH (CNP-LP)\n");
>  				WARN_ON(!IS_CANNONLAKE(dev_priv) &&
>  					!IS_COFFEELAKE(dev_priv));
>  			} else if (id ==
> INTEL_PCH_P2X_DEVICE_ID_TYPE ||
> diff --git a/drivers/gpu/drm/i915/i915_drv.h
> b/drivers/gpu/drm/i915/i915_drv.h
> index d63645a521c4..bc1755657189 100644
> --- a/drivers/gpu/drm/i915/i915_drv.h
> +++ b/drivers/gpu/drm/i915/i915_drv.h
> @@ -1166,8 +1166,8 @@ enum intel_pch {
>  	PCH_CPT,	/* Cougarpoint/Pantherpoint PCH */
>  	PCH_LPT,	/* Lynxpoint/Wildcatpoint PCH */
>  	PCH_SPT,        /* Sunrisepoint PCH */
> -	PCH_KBP,        /* Kabypoint PCH */
> -	PCH_CNP,        /* Cannonpoint PCH */
> +	PCH_KBP,        /* Kaby Lake PCH */
> +	PCH_CNP,        /* Cannon Lake PCH */
>  	PCH_NOP,
>  };
>  
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2017-07-31 19:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-31 18:52 [PATCH] drm/i915: Fix PCH names for KBP and CNP Rodrigo Vivi
2017-07-31 19:05 ` Paulo Zanoni [this message]
2017-07-31 19:09   ` Vivi, Rodrigo
2017-08-02 17:10     ` Srivatsa, Anusha
2017-08-03 19:32       ` Rodrigo Vivi
2017-07-31 19:09 ` ✓ Fi.CI.BAT: success for " Patchwork

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=1501527924.2624.31.camel@intel.com \
    --to=paulo.r.zanoni@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=rodrigo.vivi@intel.com \
    /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.