From: "Kulkarni, Vandita" <vandita.kulkarni@intel.com>
To: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
"Lisovskiy, Stanislav" <stanislav.lisovskiy@intel.com>,
"intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>
Cc: "Nikula, Jani" <jani.nikula@intel.com>,
"Peres, Martin" <martin.peres@intel.com>
Subject: Re: [PATCH] drm/i915: Fix wrong escape clock divisor init for GLK
Date: Thu, 11 Jul 2019 08:32:12 +0000 [thread overview]
Message-ID: <57510F3E2013164E925CD03ED7512A3B8090DE43@BGSMSX108.gar.corp.intel.com> (raw)
In-Reply-To: <ab8278e1-2270-9207-9b16-a0d0f9821ca8@linux.intel.com>
> -----Original Message-----
> From: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> Sent: Wednesday, July 10, 2019 8:04 PM
> To: Lisovskiy, Stanislav <stanislav.lisovskiy@intel.com>; intel-
> gfx@lists.freedesktop.org
> Cc: Peres, Martin <martin.peres@intel.com>; ville.syrjala@linux.intel.com;
> Saarinen, Jani <jani.saarinen@intel.com>; Nikula, Jani <jani.nikula@intel.com>;
> Kulkarni, Vandita <vandita.kulkarni@intel.com>
> Subject: Re: [PATCH] drm/i915: Fix wrong escape clock divisor init for GLK
>
> Op 10-07-2019 om 16:12 schreef Stanislav Lisovskiy:
> > According to Bspec clock divisor registers in GeminiLake should be
> > initialized by shifting 1(<<) to amount of correspondent divisor.
> > While i915 was writing all this time that value as is.
> >
> > Surprisingly that it by accident worked, until we met some issues with
> > Microtech Etab.
> >
> > Signed-off-by: Stanislav.Lisovskiy@intel.com
> > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108826
> > ---
> > drivers/gpu/drm/i915/display/vlv_dsi_pll.c | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/i915/display/vlv_dsi_pll.c
> > b/drivers/gpu/drm/i915/display/vlv_dsi_pll.c
> > index 99cc3e2e9c2c..f016a776a39e 100644
> > --- a/drivers/gpu/drm/i915/display/vlv_dsi_pll.c
> > +++ b/drivers/gpu/drm/i915/display/vlv_dsi_pll.c
> > @@ -396,8 +396,8 @@ static void glk_dsi_program_esc_clock(struct
> drm_device *dev,
> > else
> > txesc2_div = 10;
> >
> > - I915_WRITE(MIPIO_TXESC_CLK_DIV1, txesc1_div &
> GLK_TX_ESC_CLK_DIV1_MASK);
> > - I915_WRITE(MIPIO_TXESC_CLK_DIV2, txesc2_div &
> GLK_TX_ESC_CLK_DIV2_MASK);
> > + I915_WRITE(MIPIO_TXESC_CLK_DIV1, (1 << (txesc1_div - 1)) &
> GLK_TX_ESC_CLK_DIV1_MASK);
> > + I915_WRITE(MIPIO_TXESC_CLK_DIV2, (1 << (txesc2_div - 1)) &
> > +GLK_TX_ESC_CLK_DIV2_MASK);
> > }
The code change looks good to me. With Maarten's comment fixed,
Reviewed-by: Vandita Kulkarni <vandita.kulkarni@intel.com>
Regards,
Vandita
> >
> > /* Program BXT Mipi clocks and dividers */
>
> Missing a fixes tag?
>
> find the original commit that introduced this, then run dim fixes $commitid.
>
> Cheers,
>
> Maarten
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2019-07-11 8:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-10 14:12 [PATCH] drm/i915: Fix wrong escape clock divisor init for GLK Stanislav Lisovskiy
2019-07-10 14:33 ` Maarten Lankhorst
2019-07-11 8:32 ` Kulkarni, Vandita [this message]
2019-07-10 14:34 ` ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
2019-07-11 8:56 ` ✓ Fi.CI.BAT: success " Patchwork
2019-07-11 15:24 ` ✓ Fi.CI.IGT: " Patchwork
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=57510F3E2013164E925CD03ED7512A3B8090DE43@BGSMSX108.gar.corp.intel.com \
--to=vandita.kulkarni@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@intel.com \
--cc=maarten.lankhorst@linux.intel.com \
--cc=martin.peres@intel.com \
--cc=stanislav.lisovskiy@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 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.