Message ID | 20180522002558.29262-10-paulo.r.zanoni@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Em Seg, 2018-05-21 às 17:25 -0700, Paulo Zanoni escreveu: > From: Anusha Srivatsa <anusha.srivatsa@intel.com> > > This patch adds the support to detect PCH_ICP. > > Suggested-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com> > Signed-off-by: Anusha Srivatsa <anusha.srivatsa@intel.com> > Signed-off-by: Michel Thierry <michel.thierry@intel.com> > --- > drivers/gpu/drm/i915/i915_drv.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/gpu/drm/i915/i915_drv.c > b/drivers/gpu/drm/i915/i915_drv.c > index 9c449b8d8eab..7b6f64321f11 100644 > --- a/drivers/gpu/drm/i915/i915_drv.c > +++ b/drivers/gpu/drm/i915/i915_drv.c > @@ -233,6 +233,8 @@ intel_virt_detect_pch(const struct > drm_i915_private *dev_priv) > id = INTEL_PCH_SPT_DEVICE_ID_TYPE; > else if (IS_COFFEELAKE(dev_priv) || IS_CANNONLAKE(dev_priv)) > id = INTEL_PCH_CNP_DEVICE_ID_TYPE; > + else if (IS_ICELAKE(dev_priv)) > + id = INTEL_PCH_ICP_DEVICE_ID_TYPE; > > if (id) > DRM_DEBUG_KMS("Assuming PCH ID %04x\n", id);
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index 9c449b8d8eab..7b6f64321f11 100644 --- a/drivers/gpu/drm/i915/i915_drv.c +++ b/drivers/gpu/drm/i915/i915_drv.c @@ -233,6 +233,8 @@ intel_virt_detect_pch(const struct drm_i915_private *dev_priv) id = INTEL_PCH_SPT_DEVICE_ID_TYPE; else if (IS_COFFEELAKE(dev_priv) || IS_CANNONLAKE(dev_priv)) id = INTEL_PCH_CNP_DEVICE_ID_TYPE; + else if (IS_ICELAKE(dev_priv)) + id = INTEL_PCH_ICP_DEVICE_ID_TYPE; if (id) DRM_DEBUG_KMS("Assuming PCH ID %04x\n", id);