From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Cyrus <cyrus.lien@canonical.com>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: Fix detection for a CMP-V PCH
Date: Mon, 18 Nov 2019 17:53:37 +0200 [thread overview]
Message-ID: <20191118155337.GU1208@intel.com> (raw)
In-Reply-To: <878sodyyjr.fsf@intel.com>
On Mon, Nov 18, 2019 at 05:49:44PM +0200, Jani Nikula wrote:
> On Tue, 12 Nov 2019, Imre Deak <imre.deak@intel.com> wrote:
> > According to internal documents I found for CMP PCHs the PCI ID 0xA3C1
>
> This seems to be pushed already, but I'm just confused about difference
> between the id here in the commit message vs. the one in the patch.
#define INTEL_PCH_DEVICE_ID_MASK 0xff80
Ie. we only match the top 9 bits.
>
> BR,
> Jani.
>
> > belongs to a CMP-V chipset. Based on the same docs the programming of
> > the PCH is compatible with that of KBP. Fix up my previous wrong
> > assumption accordingly using the SPT programming which in turn is the
> > basis for KBP.
> >
> > The original bug reporter verified that this is the correct PCH
> > identification (the only way we'll program valid DDC pin-pair values to
> > the GMBUS register) and the Windows team uses the same identification
> > (that is using the KBP programming model for this PCH).
> >
> > I filed the necessary Bspec update requests (BSpec/33734).
> >
> > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=112051
> > Fixes: 37c92dc303dd ("drm/i915: Add new CNL PCH ID seen on a CML platform")
> > Reported-and-tested-by: Cyrus <cyrus.lien@canonical.com>
> > Cc: Cyrus <cyrus.lien@canonical.com>
> > Cc: Timo Aaltonen <tjaalton@ubuntu.com>
> > Cc: José Roberto de Souza <jose.souza@intel.com>
> > Signed-off-by: Imre Deak <imre.deak@intel.com>
> > ---
> > drivers/gpu/drm/i915/intel_pch.c | 6 +++++-
> > drivers/gpu/drm/i915/intel_pch.h | 2 +-
> > 2 files changed, 6 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/i915/intel_pch.c b/drivers/gpu/drm/i915/intel_pch.c
> > index fd22355b9a96..43b68b5fc562 100644
> > --- a/drivers/gpu/drm/i915/intel_pch.c
> > +++ b/drivers/gpu/drm/i915/intel_pch.c
> > @@ -62,7 +62,6 @@ intel_pch_type(const struct drm_i915_private *dev_priv, unsigned short id)
> > /* KBP is SPT compatible */
> > return PCH_SPT;
> > case INTEL_PCH_CNP_DEVICE_ID_TYPE:
> > - case INTEL_PCH_CNP2_DEVICE_ID_TYPE:
> > DRM_DEBUG_KMS("Found Cannon Lake PCH (CNP)\n");
> > WARN_ON(!IS_CANNONLAKE(dev_priv) && !IS_COFFEELAKE(dev_priv));
> > return PCH_CNP;
> > @@ -76,6 +75,11 @@ intel_pch_type(const struct drm_i915_private *dev_priv, unsigned short id)
> > WARN_ON(!IS_COFFEELAKE(dev_priv));
> > /* CometPoint is CNP Compatible */
> > return PCH_CNP;
> > + case INTEL_PCH_CMP_V_DEVICE_ID_TYPE:
> > + DRM_DEBUG_KMS("Found Comet Lake V PCH (CMP-V)\n");
> > + WARN_ON(!IS_COFFEELAKE(dev_priv));
> > + /* Comet Lake V PCH is based on KBP, which is SPT compatible */
> > + return PCH_SPT;
> > case INTEL_PCH_ICP_DEVICE_ID_TYPE:
> > DRM_DEBUG_KMS("Found Ice Lake PCH\n");
> > WARN_ON(!IS_ICELAKE(dev_priv));
> > diff --git a/drivers/gpu/drm/i915/intel_pch.h b/drivers/gpu/drm/i915/intel_pch.h
> > index 52d145dcdb15..3053d1ce398b 100644
> > --- a/drivers/gpu/drm/i915/intel_pch.h
> > +++ b/drivers/gpu/drm/i915/intel_pch.h
> > @@ -40,10 +40,10 @@ enum intel_pch {
> > #define INTEL_PCH_SPT_LP_DEVICE_ID_TYPE 0x9D00
> > #define INTEL_PCH_KBP_DEVICE_ID_TYPE 0xA280
> > #define INTEL_PCH_CNP_DEVICE_ID_TYPE 0xA300
> > -#define INTEL_PCH_CNP2_DEVICE_ID_TYPE 0xA380
> > #define INTEL_PCH_CNP_LP_DEVICE_ID_TYPE 0x9D80
> > #define INTEL_PCH_CMP_DEVICE_ID_TYPE 0x0280
> > #define INTEL_PCH_CMP2_DEVICE_ID_TYPE 0x0680
> > +#define INTEL_PCH_CMP_V_DEVICE_ID_TYPE 0xA380
> > #define INTEL_PCH_ICP_DEVICE_ID_TYPE 0x3480
> > #define INTEL_PCH_MCC_DEVICE_ID_TYPE 0x4B00
> > #define INTEL_PCH_TGP_DEVICE_ID_TYPE 0xA080
>
> --
> Jani Nikula, Intel Open Source Graphics Center
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Ville Syrjälä
Intel
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
WARNING: multiple messages have this Message-ID (diff)
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Cyrus <cyrus.lien@canonical.com>, intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH] drm/i915: Fix detection for a CMP-V PCH
Date: Mon, 18 Nov 2019 17:53:37 +0200 [thread overview]
Message-ID: <20191118155337.GU1208@intel.com> (raw)
Message-ID: <20191118155337.-dLG5Fn4kep-V3Uzkjy5bNJGmmKVv4DH8nWayEGLbd4@z> (raw)
In-Reply-To: <878sodyyjr.fsf@intel.com>
On Mon, Nov 18, 2019 at 05:49:44PM +0200, Jani Nikula wrote:
> On Tue, 12 Nov 2019, Imre Deak <imre.deak@intel.com> wrote:
> > According to internal documents I found for CMP PCHs the PCI ID 0xA3C1
>
> This seems to be pushed already, but I'm just confused about difference
> between the id here in the commit message vs. the one in the patch.
#define INTEL_PCH_DEVICE_ID_MASK 0xff80
Ie. we only match the top 9 bits.
>
> BR,
> Jani.
>
> > belongs to a CMP-V chipset. Based on the same docs the programming of
> > the PCH is compatible with that of KBP. Fix up my previous wrong
> > assumption accordingly using the SPT programming which in turn is the
> > basis for KBP.
> >
> > The original bug reporter verified that this is the correct PCH
> > identification (the only way we'll program valid DDC pin-pair values to
> > the GMBUS register) and the Windows team uses the same identification
> > (that is using the KBP programming model for this PCH).
> >
> > I filed the necessary Bspec update requests (BSpec/33734).
> >
> > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=112051
> > Fixes: 37c92dc303dd ("drm/i915: Add new CNL PCH ID seen on a CML platform")
> > Reported-and-tested-by: Cyrus <cyrus.lien@canonical.com>
> > Cc: Cyrus <cyrus.lien@canonical.com>
> > Cc: Timo Aaltonen <tjaalton@ubuntu.com>
> > Cc: José Roberto de Souza <jose.souza@intel.com>
> > Signed-off-by: Imre Deak <imre.deak@intel.com>
> > ---
> > drivers/gpu/drm/i915/intel_pch.c | 6 +++++-
> > drivers/gpu/drm/i915/intel_pch.h | 2 +-
> > 2 files changed, 6 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/i915/intel_pch.c b/drivers/gpu/drm/i915/intel_pch.c
> > index fd22355b9a96..43b68b5fc562 100644
> > --- a/drivers/gpu/drm/i915/intel_pch.c
> > +++ b/drivers/gpu/drm/i915/intel_pch.c
> > @@ -62,7 +62,6 @@ intel_pch_type(const struct drm_i915_private *dev_priv, unsigned short id)
> > /* KBP is SPT compatible */
> > return PCH_SPT;
> > case INTEL_PCH_CNP_DEVICE_ID_TYPE:
> > - case INTEL_PCH_CNP2_DEVICE_ID_TYPE:
> > DRM_DEBUG_KMS("Found Cannon Lake PCH (CNP)\n");
> > WARN_ON(!IS_CANNONLAKE(dev_priv) && !IS_COFFEELAKE(dev_priv));
> > return PCH_CNP;
> > @@ -76,6 +75,11 @@ intel_pch_type(const struct drm_i915_private *dev_priv, unsigned short id)
> > WARN_ON(!IS_COFFEELAKE(dev_priv));
> > /* CometPoint is CNP Compatible */
> > return PCH_CNP;
> > + case INTEL_PCH_CMP_V_DEVICE_ID_TYPE:
> > + DRM_DEBUG_KMS("Found Comet Lake V PCH (CMP-V)\n");
> > + WARN_ON(!IS_COFFEELAKE(dev_priv));
> > + /* Comet Lake V PCH is based on KBP, which is SPT compatible */
> > + return PCH_SPT;
> > case INTEL_PCH_ICP_DEVICE_ID_TYPE:
> > DRM_DEBUG_KMS("Found Ice Lake PCH\n");
> > WARN_ON(!IS_ICELAKE(dev_priv));
> > diff --git a/drivers/gpu/drm/i915/intel_pch.h b/drivers/gpu/drm/i915/intel_pch.h
> > index 52d145dcdb15..3053d1ce398b 100644
> > --- a/drivers/gpu/drm/i915/intel_pch.h
> > +++ b/drivers/gpu/drm/i915/intel_pch.h
> > @@ -40,10 +40,10 @@ enum intel_pch {
> > #define INTEL_PCH_SPT_LP_DEVICE_ID_TYPE 0x9D00
> > #define INTEL_PCH_KBP_DEVICE_ID_TYPE 0xA280
> > #define INTEL_PCH_CNP_DEVICE_ID_TYPE 0xA300
> > -#define INTEL_PCH_CNP2_DEVICE_ID_TYPE 0xA380
> > #define INTEL_PCH_CNP_LP_DEVICE_ID_TYPE 0x9D80
> > #define INTEL_PCH_CMP_DEVICE_ID_TYPE 0x0280
> > #define INTEL_PCH_CMP2_DEVICE_ID_TYPE 0x0680
> > +#define INTEL_PCH_CMP_V_DEVICE_ID_TYPE 0xA380
> > #define INTEL_PCH_ICP_DEVICE_ID_TYPE 0x3480
> > #define INTEL_PCH_MCC_DEVICE_ID_TYPE 0x4B00
> > #define INTEL_PCH_TGP_DEVICE_ID_TYPE 0xA080
>
> --
> Jani Nikula, Intel Open Source Graphics Center
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Ville Syrjälä
Intel
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2019-11-18 15:53 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-12 10:46 [PATCH] drm/i915: Fix detection for a CMP-V PCH Imre Deak
2019-11-12 10:46 ` [Intel-gfx] " Imre Deak
2019-11-12 11:22 ` ✓ Fi.CI.BAT: success for " Patchwork
2019-11-12 11:22 ` [Intel-gfx] " Patchwork
2019-11-12 16:21 ` ✓ Fi.CI.IGT: " Patchwork
2019-11-12 16:21 ` [Intel-gfx] " Patchwork
2019-11-13 12:18 ` Imre Deak
2019-11-13 12:18 ` [Intel-gfx] " Imre Deak
2019-11-12 19:02 ` [PATCH] " Souza, Jose
2019-11-12 19:02 ` [Intel-gfx] " Souza, Jose
2019-11-18 15:49 ` Jani Nikula
2019-11-18 15:49 ` [Intel-gfx] " Jani Nikula
2019-11-18 15:53 ` Ville Syrjälä [this message]
2019-11-18 15:53 ` Ville Syrjälä
2019-11-18 16:12 ` Imre Deak
2019-11-18 16:12 ` [Intel-gfx] " Imre Deak
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=20191118155337.GU1208@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=cyrus.lien@canonical.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@linux.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.