From: Damien Lespiau <damien.lespiau@intel.com>
To: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 7/7] drm/i915/skl: Warn if the cached cdclk freq is not the requested one
Date: Fri, 5 Jun 2015 13:40:29 +0100 [thread overview]
Message-ID: <20150605124029.GD28564@strange.ger.corp.intel.com> (raw)
In-Reply-To: <20150605122445.GV5176@intel.com>
On Fri, Jun 05, 2015 at 03:24:45PM +0300, Ville Syrjälä wrote:
> On Thu, Jun 04, 2015 at 06:21:35PM +0100, Damien Lespiau wrote:
> > 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);
> > }
>
> Could you add this to all the set_cdclk() functions? Maybe
> intel_check_cdclk() or something.
I was thinking that we should probably introduce a low level
set_core_display_clock() vfunc and a intel_set_core_display_clock()
wrapper were we'd put the common code (updating the cached value, that
WARN(), ...)
Thoughts?
--
Damien
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2015-06-05 12:40 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 ` [PATCH 7/7] drm/i915/skl: Warn if the cached cdclk freq is not the requested one Damien Lespiau
2015-06-05 12:24 ` Ville Syrjälä
2015-06-05 12:40 ` Damien Lespiau [this message]
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=20150605124029.GD28564@strange.ger.corp.intel.com \
--to=damien.lespiau@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=ville.syrjala@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox