From: "Kumar, Shobhit" <shobhit.kumar@intel.com>
To: Damien Lespiau <damien.lespiau@intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>,
Daniel Vetter <daniel.vetter@intel.com>,
intel-gfx <intel-gfx@lists.freedesktop.org>,
arjan.van.de.ven@intel.com
Subject: Re: [PATCH 4/4] drm/i915: Add support for Generic MIPI panel driver
Date: Thu, 22 May 2014 13:15:19 +0530 [thread overview]
Message-ID: <537DAB0F.3010101@intel.com> (raw)
In-Reply-To: <20140520205508.GA7703@strange.amr.corp.intel.com>
On 5/21/2014 2:25 AM, Damien Lespiau wrote:
> On Tue, May 20, 2014 at 09:46:01PM +0530, Shobhit Kumar wrote:
>>> - UI is a period, so is homogeneous to time (s), but ui_num being in
>>> s^-1 and ui_den a constant, ui_num/ui_den looks like a frequency. Or
>>> could it be that UI = ui_den / ui_num? would be confusing, but the
>>> code below would make more sense. In which case could we have UI =
>>> ui_num / ui_den?
>>
>> I just kept ui_num and ui_den separately to take care of precision
>> loss, but I see how it is adding to confusion. Actually it is ui_den
>> / ui_num and we have all computations as 1/UI so it works. I think I
>> will compute UI directly as UI = (NS_KHZ_RATIO * 1000) /bitrate and
>> divide by 1000 wherever we use to maintain precision. Sounds ok ?
>
> I think just exchanging the two variable names (ui_num and ui_den)
> should be less work for you and should be enough. It's really just about
> having ui_num being the UI numerator so the reader is not too surprised
Yeah. Will fix this
>
>>>> + /* B044 */
>>>> + intel_dsi->hs_to_lp_count =
>>>> + CEIL_DIV(
>>>> + 4 * tlpx_ui + prepare_cnt * 2 +
>>>> + exit_zero_cnt * 2 + 10,
>>>> + 8);
>>>
>>> The previous was before I tried to look at the spec too closely. Mind
>>> explaining why we don't look at the HS to LP switch count? ie why HS to
>>> LP switch cound is always smaller than the LP to HS one?
>>
>> Because LP to HS uses exit_zero_count which is generally higher than
>> clk_zero_count. So just directly used LP to HS which amounts to
>> saying that switching from HS to LP takes lesser time than switching
>> from LP to HS. I can/should add code to compute max of the two.
>
> This could go to a separate task if you don't have time right now,
>
Most likely I can do this as well. Will push the updated patch by
sometime tomorrow.
Regards
Shobhit
next prev parent reply other threads:[~2014-05-22 7:45 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-14 5:48 [PATCH 0/4] Generic MIPI Panel driver Shobhit Kumar
2014-04-14 5:48 ` [PATCH 1/4] drm/i915: Correct MIPI operation mode as per expected values from VBT Shobhit Kumar
2014-05-15 15:03 ` Damien Lespiau
2014-04-14 5:48 ` [PATCH 2/4] drm/i915: MIPI init count programming as generic parameter Shobhit Kumar
2014-05-15 15:04 ` Damien Lespiau
2014-04-14 5:48 ` [PATCH 3/4] drm/i915: MIPI PPS delays added Shobhit Kumar
2014-05-15 15:06 ` Damien Lespiau
2014-05-15 20:44 ` Daniel Vetter
2014-04-14 5:48 ` [PATCH 4/4] drm/i915: Add support for Generic MIPI panel driver Shobhit Kumar
2014-05-15 16:48 ` Damien Lespiau
2014-05-16 9:23 ` Shobhit Kumar
2014-05-16 11:17 ` Damien Lespiau
2014-05-19 14:23 ` Damien Lespiau
2014-05-20 16:16 ` Shobhit Kumar
2014-05-20 20:55 ` Damien Lespiau
2014-05-22 7:45 ` Kumar, Shobhit [this message]
2014-05-23 16:05 ` [v2] " Shobhit Kumar
2014-05-27 11:02 ` Damien Lespiau
2014-05-27 11:21 ` Kumar, Shobhit
2014-05-27 11:37 ` Daniel Vetter
2014-05-27 11:39 ` Daniel Vetter
2014-05-27 11:42 ` Kumar, Shobhit
2014-05-27 11:51 ` Daniel Vetter
2014-05-27 12:26 ` Damien Lespiau
2014-05-27 13:53 ` [PATCH] drm/i915: Fix checkpatch errors Shobhit Kumar
2014-05-27 14:19 ` Damien Lespiau
2014-05-27 14:34 ` Kumar, Shobhit
2014-05-27 14:39 ` Damien Lespiau
2014-05-27 17:03 ` Daniel Vetter
2014-04-28 4:16 ` [PATCH 0/4] Generic MIPI Panel driver Kumar, Shobhit
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=537DAB0F.3010101@intel.com \
--to=shobhit.kumar@intel.com \
--cc=arjan.van.de.ven@intel.com \
--cc=damien.lespiau@intel.com \
--cc=daniel.vetter@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@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.