Message ID | 1432129518-29140-5-git-send-email-damien.lespiau@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Wed, May 20, 2015 at 02:45:17PM +0100, Damien Lespiau wrote: > Right not we don't initialize the stored CDCLK on DDI platforms. Fix > that. > > Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Merged up to this patch, thanks, Daniel > --- > drivers/gpu/drm/i915/intel_ddi.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c > index d602db2..b57f156 100644 > --- a/drivers/gpu/drm/i915/intel_ddi.c > +++ b/drivers/gpu/drm/i915/intel_ddi.c > @@ -2518,8 +2518,8 @@ void intel_ddi_pll_init(struct drm_device *dev) > else > hsw_shared_dplls_init(dev_priv); > > - DRM_DEBUG_KMS("CDCLK running at %dKHz\n", > - dev_priv->display.get_display_clock_speed(dev)); > + dev_priv->cdclk_freq = dev_priv->display.get_display_clock_speed(dev); > + DRM_DEBUG_KMS("CDCLK running at %dKHz\n", dev_priv->cdclk_freq); > > if (IS_SKYLAKE(dev)) { > if (!(I915_READ(LCPLL1_CTL) & LCPLL_PLL_ENABLE)) > -- > 2.1.0 > > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx
On Wed, May 20, 2015 at 05:53:42PM +0200, Daniel Vetter wrote: > On Wed, May 20, 2015 at 02:45:17PM +0100, Damien Lespiau wrote: > > Right not we don't initialize the stored CDCLK on DDI platforms. Fix > > that. > > > > Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> > > Merged up to this patch, thanks, Daniel I'll take that back, our usage of dev_priv->cdclk_freq seems rather inconsistent and there's patches in-flight to completely rework all this. Hence I dropped this patch here again. -Daniel > > > --- > > drivers/gpu/drm/i915/intel_ddi.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c > > index d602db2..b57f156 100644 > > --- a/drivers/gpu/drm/i915/intel_ddi.c > > +++ b/drivers/gpu/drm/i915/intel_ddi.c > > @@ -2518,8 +2518,8 @@ void intel_ddi_pll_init(struct drm_device *dev) > > else > > hsw_shared_dplls_init(dev_priv); > > > > - DRM_DEBUG_KMS("CDCLK running at %dKHz\n", > > - dev_priv->display.get_display_clock_speed(dev)); > > + dev_priv->cdclk_freq = dev_priv->display.get_display_clock_speed(dev); > > + DRM_DEBUG_KMS("CDCLK running at %dKHz\n", dev_priv->cdclk_freq); > > > > if (IS_SKYLAKE(dev)) { > > if (!(I915_READ(LCPLL1_CTL) & LCPLL_PLL_ENABLE)) > > -- > > 2.1.0 > > > > _______________________________________________ > > Intel-gfx mailing list > > Intel-gfx@lists.freedesktop.org > > http://lists.freedesktop.org/mailman/listinfo/intel-gfx > > -- > Daniel Vetter > Software Engineer, Intel Corporation > http://blog.ffwll.ch
On Wed, May 20, 2015 at 05:56:30PM +0200, Daniel Vetter wrote: > On Wed, May 20, 2015 at 05:53:42PM +0200, Daniel Vetter wrote: > > On Wed, May 20, 2015 at 02:45:17PM +0100, Damien Lespiau wrote: > > > Right not we don't initialize the stored CDCLK on DDI platforms. Fix > > > that. > > > > > > Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> > > > > Merged up to this patch, thanks, Daniel > > I'll take that back, our usage of dev_priv->cdclk_freq seems rather > inconsistent and there's patches in-flight to completely rework all this. > Hence I dropped this patch here again. dev_priv->cdclk_freq is going to be the current cdclk frequency. So if we actually want to hang on to the boot cdclk it needs to be stored separately. > -Daniel > > > > > > --- > > > drivers/gpu/drm/i915/intel_ddi.c | 4 ++-- > > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > > > diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c > > > index d602db2..b57f156 100644 > > > --- a/drivers/gpu/drm/i915/intel_ddi.c > > > +++ b/drivers/gpu/drm/i915/intel_ddi.c > > > @@ -2518,8 +2518,8 @@ void intel_ddi_pll_init(struct drm_device *dev) > > > else > > > hsw_shared_dplls_init(dev_priv); > > > > > > - DRM_DEBUG_KMS("CDCLK running at %dKHz\n", > > > - dev_priv->display.get_display_clock_speed(dev)); > > > + dev_priv->cdclk_freq = dev_priv->display.get_display_clock_speed(dev); > > > + DRM_DEBUG_KMS("CDCLK running at %dKHz\n", dev_priv->cdclk_freq); > > > > > > if (IS_SKYLAKE(dev)) { > > > if (!(I915_READ(LCPLL1_CTL) & LCPLL_PLL_ENABLE)) > > > -- > > > 2.1.0 > > > > > > _______________________________________________ > > > Intel-gfx mailing list > > > Intel-gfx@lists.freedesktop.org > > > http://lists.freedesktop.org/mailman/listinfo/intel-gfx > > > > -- > > Daniel Vetter > > Software Engineer, Intel Corporation > > http://blog.ffwll.ch > > -- > Daniel Vetter > Software Engineer, Intel Corporation > http://blog.ffwll.ch > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx
diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c index d602db2..b57f156 100644 --- a/drivers/gpu/drm/i915/intel_ddi.c +++ b/drivers/gpu/drm/i915/intel_ddi.c @@ -2518,8 +2518,8 @@ void intel_ddi_pll_init(struct drm_device *dev) else hsw_shared_dplls_init(dev_priv); - DRM_DEBUG_KMS("CDCLK running at %dKHz\n", - dev_priv->display.get_display_clock_speed(dev)); + dev_priv->cdclk_freq = dev_priv->display.get_display_clock_speed(dev); + DRM_DEBUG_KMS("CDCLK running at %dKHz\n", dev_priv->cdclk_freq); if (IS_SKYLAKE(dev)) { if (!(I915_READ(LCPLL1_CTL) & LCPLL_PLL_ENABLE))
Right not we don't initialize the stored CDCLK on DDI platforms. Fix that. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> --- drivers/gpu/drm/i915/intel_ddi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)