All of lore.kernel.org
 help / color / mirror / Atom feed
From: Damien Lespiau <damien.lespiau@intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: [PATCH 7/7] drm/i915/skl: Warn if the cached cdclk freq is not the requested one
Date: Thu,  4 Jun 2015 18:21:35 +0100	[thread overview]
Message-ID: <1433438495-16667-7-git-send-email-damien.lespiau@intel.com> (raw)
In-Reply-To: <1433438495-16667-1-git-send-email-damien.lespiau@intel.com>

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
---
 drivers/gpu/drm/i915/intel_display.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index a232dc9..a018465 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -5627,6 +5627,10 @@ static void skl_set_cdclk(struct drm_i915_private *dev_priv, unsigned int freq)
 	mutex_unlock(&dev_priv->rps.hw_lock);
 
 	intel_update_cdclk(dev);
+
+	WARN(freq != dev_priv->cdclk_freq,
+	     "cdclk requested %d kHz but got %d kHz\n",
+	     freq, dev_priv->cdclk_freq);
 }
 
 void skl_uninit_cdclk(struct drm_i915_private *dev_priv)
-- 
2.1.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

  parent reply	other threads:[~2015-06-04 17:21 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-04 17:21 [PATCH 1/7] drm/i915: Make broxton_set_cdclk() static Damien Lespiau
2015-06-04 17:21 ` [PATCH 2/7] drm/i915/skl: Derive the max CDCLK from DFSM Damien Lespiau
2015-06-10 12:19   ` Jani Nikula
2015-06-04 17:21 ` [PATCH 3/7] drm/i915/skl: Don't warn if reading back DPLL0 is disabled Damien Lespiau
2015-06-04 17:21 ` [PATCH 4/7] drm/i915: Don't display the boot CDCLK twice Damien Lespiau
2015-06-04 17:21 ` [PATCH 5/7] drm/i915/skl: Update the cached CDCLK at the end of set_cdclk() Damien Lespiau
2015-06-04 17:21 ` [PATCH 6/7] drm/i915/bxt: Use intel_update_cdclk() to update dev_priv->cdclk_freq Damien Lespiau
2015-06-04 17:21 ` Damien Lespiau [this message]
2015-06-05 12:24   ` [PATCH 7/7] drm/i915/skl: Warn if the cached cdclk freq is not the requested one Ville Syrjälä
2015-06-05 12:40     ` Damien Lespiau
2015-06-05 12:42       ` Ville Syrjälä
2015-06-05 16:40   ` shuang.he
2015-06-05 12:23 ` [PATCH 1/7] drm/i915: Make broxton_set_cdclk() static Ville Syrjälä
2015-06-10 12:19   ` Jani Nikula

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=1433438495-16667-7-git-send-email-damien.lespiau@intel.com \
    --to=damien.lespiau@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    /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.