From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: "Souza, Jose" <jose.souza@intel.com>
Cc: "intel-gfx@lists.freedesktop.org" <intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH 3/4] drm/i915/display: DFSM CDCLK LIMIT is only available in BXT
Date: Fri, 11 Oct 2019 15:31:02 +0300 [thread overview]
Message-ID: <20191011123102.GR1208@intel.com> (raw)
In-Reply-To: <3b7ad4a20360b24e3821e414d5ac3298e39ef6ef.camel@intel.com>
On Thu, Oct 10, 2019 at 08:45:42PM +0000, Souza, Jose wrote:
> I messed up on this patch, please ignore this one.
> Will send the fixed version soon.
The whole thing is wrong according to the spec:
"This field is unused on BXT. Any CD clock frequency limitation must be
done in software."
>
> On Thu, 2019-10-10 at 12:32 -0700, José Roberto de Souza wrote:
> > On GLK those registers are reserved and on another gens it have
> > another meaning, so renaming it to BXT only.
> >
> > BSpec: 7548
> > Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
> > ---
> > drivers/gpu/drm/i915/display/intel_cdclk.c | 12 +++++-------
> > drivers/gpu/drm/i915/i915_reg.h | 10 +++++-----
> > 2 files changed, 10 insertions(+), 12 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/i915/display/intel_cdclk.c
> > b/drivers/gpu/drm/i915/display/intel_cdclk.c
> > index 43564295b864..a1787d165467 100644
> > --- a/drivers/gpu/drm/i915/display/intel_cdclk.c
> > +++ b/drivers/gpu/drm/i915/display/intel_cdclk.c
> > @@ -2384,8 +2384,8 @@ void intel_update_max_cdclk(struct
> > drm_i915_private *dev_priv)
> > dev_priv->max_cdclk_freq = 652800;
> > } else if (IS_CANNONLAKE(dev_priv)) {
> > dev_priv->max_cdclk_freq = 528000;
> > - } else if (IS_GEN9_BC(dev_priv)) {
> > - u32 limit = I915_READ(SKL_DFSM) &
> > SKL_DFSM_CDCLK_LIMIT_MASK;
> > + } else if (IS_BROXTON(dev_priv)) {
> > + u32 limit = I915_READ(SKL_DFSM) &
> > BXT_DFSM_CDCLK_LIMIT_MASK;
> > int max_cdclk, vco;
> >
> > vco = dev_priv->skl_preferred_vco_freq;
> > @@ -2396,11 +2396,11 @@ void intel_update_max_cdclk(struct
> > drm_i915_private *dev_priv)
> > * first guess. skl_calc_cdclk() will correct it
> > * if the preferred vco is 8100 instead.
> > */
> > - if (limit == SKL_DFSM_CDCLK_LIMIT_675)
> > + if (limit == BXT_DFSM_CDCLK_LIMIT_675)
> > max_cdclk = 617143;
> > - else if (limit == SKL_DFSM_CDCLK_LIMIT_540)
> > + else if (limit == BXT_DFSM_CDCLK_LIMIT_540)
> > max_cdclk = 540000;
> > - else if (limit == SKL_DFSM_CDCLK_LIMIT_450)
> > + else if (limit == BXT_DFSM_CDCLK_LIMIT_450)
> > max_cdclk = 432000;
> > else
> > max_cdclk = 308571;
> > @@ -2408,8 +2408,6 @@ void intel_update_max_cdclk(struct
> > drm_i915_private *dev_priv)
> > dev_priv->max_cdclk_freq = skl_calc_cdclk(max_cdclk,
> > vco);
> > } else if (IS_GEMINILAKE(dev_priv)) {
> > dev_priv->max_cdclk_freq = 316800;
> > - } else if (IS_BROXTON(dev_priv)) {
> > - dev_priv->max_cdclk_freq = 624000;
> > } else if (IS_BROADWELL(dev_priv)) {
> > /*
> > * FIXME with extra cooling we can allow
> > diff --git a/drivers/gpu/drm/i915/i915_reg.h
> > b/drivers/gpu/drm/i915/i915_reg.h
> > index b383511b6231..39c65f051468 100644
> > --- a/drivers/gpu/drm/i915/i915_reg.h
> > +++ b/drivers/gpu/drm/i915/i915_reg.h
> > @@ -7644,11 +7644,11 @@ enum {
> >
> > #define SKL_DFSM _MMIO(0x51000)
> > #define SKL_DFSM_DISPLAY_HDCP_DISABLE (1 << 25)
> > -#define SKL_DFSM_CDCLK_LIMIT_MASK (3 << 23)
> > -#define SKL_DFSM_CDCLK_LIMIT_675 (0 << 23)
> > -#define SKL_DFSM_CDCLK_LIMIT_540 (1 << 23)
> > -#define SKL_DFSM_CDCLK_LIMIT_450 (2 << 23)
> > -#define SKL_DFSM_CDCLK_LIMIT_337_5 (3 << 23)
> > +#define BXT_DFSM_CDCLK_LIMIT_MASK (3 << 23)
> > +#define BXT_DFSM_CDCLK_LIMIT_675 (0 << 23)
> > +#define BXT_DFSM_CDCLK_LIMIT_540 (1 << 23)
> > +#define BXT_DFSM_CDCLK_LIMIT_450 (2 << 23)
> > +#define BXT_DFSM_CDCLK_LIMIT_337_5 (3 << 23)
> > #define SKL_DFSM_PIPE_A_DISABLE (1 << 30)
> > #define SKL_DFSM_PIPE_B_DISABLE (1 << 21)
> > #define SKL_DFSM_PIPE_C_DISABLE (1 << 28)
> _______________________________________________
> 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-10-11 12:31 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-10 19:32 [PATCH 1/4] drm/i915/display: Handle fused off display correctly José Roberto de Souza
2019-10-10 19:32 ` [PATCH 2/4] drm/i915/display: Handle fused off HDCP José Roberto de Souza
2019-10-11 12:27 ` Ville Syrjälä
2019-10-10 19:32 ` [PATCH 3/4] drm/i915/display: DFSM CDCLK LIMIT is only available in BXT José Roberto de Souza
2019-10-10 20:45 ` Souza, Jose
2019-10-11 12:31 ` Ville Syrjälä [this message]
2019-10-10 19:32 ` [PATCH 4/4] drm/i915/display: Check if FBC and DMC are fused off José Roberto de Souza
2019-10-11 12:29 ` Ville Syrjälä
2019-10-10 20:18 ` ✗ Fi.CI.BAT: failure for series starting with [1/4] drm/i915/display: Handle fused off display correctly Patchwork
2019-10-11 7:16 ` Martin Peres
2019-10-11 19:30 ` Souza, Jose
2019-10-11 12:25 ` [PATCH 1/4] " Ville Syrjälä
2019-10-11 15:00 ` Souza, Jose
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=20191011123102.GR1208@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jose.souza@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