From: Ramalingam C <ramalingam.c@intel.com>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: Jani Nikula <jani.nikula@intel.com>,
intel-gfx <intel-gfx@lists.freedesktop.org>,
"Syrjala, Ville" <ville.syrjala@intel.com>
Subject: Re: [PATCH 2/2] drm/i915/BXT: Tolerance at BXT DSI pipe_config comparison
Date: Fri, 15 Apr 2016 16:27:17 +0530 [thread overview]
Message-ID: <5710C90D.8060306@intel.com> (raw)
In-Reply-To: <20160413144625.GC2510@phenom.ffwll.local>
On Wednesday 13 April 2016 08:16 PM, Daniel Vetter wrote:
> On Wed, Apr 13, 2016 at 06:34:25PM +0530, Ramalingam C wrote:
>> On Wednesday 13 April 2016 05:27 PM, Daniel Vetter wrote:
>>> On Wed, Apr 13, 2016 at 1:48 PM, Daniel Vetter <daniel@ffwll.ch> wrote:
>>>> On Wed, Apr 13, 2016 at 1:06 PM, Jani Nikula <jani.nikula@intel.com> wrote:
>>>>>> Then fix adjusted_mode to have the timings in terms of txbyteclkhs
>>>>>> already. Problem solved.
>>>>> I let Ville convince me there would be problems with that. Ville, care
>>>>> to fill in the details?
>>>> If we change them too hard the accurate vblank timestamp stuff will be
>>>> upset. But then we only need to adjust horizontal timings for dsi,
>>>> whereas on gen5+ the vblank ts code uses the line counter (i.e.
>>>> vertical timings) only.
>>>>
>>>> If it's just that it should work, and I don't think we have any other
>>>> users of the adjusted_mode.
>>> Ok, I was wrong and we obviously need the right dotclock to compute
>>> linedur_ns correctly in drm_calc_timestamping_constants(). So either
>>> we adjust the dotclock of adjusted_mode too (imo makes most sense), or
>>> we need yet another mode somewhere and use that for dsi cross checking
>>> (real ugly imo). More I missed?
>> Another point to be considered:
>> And we program hsync, hfp and hbp in terms of txbyteclkhs to port register,
>> which are not part of adjusted_mode.
>> So for BXT DSI, we have to store them interms of txbyteclkhs and compare
>> with hsync, hfp and hbp read from HW??
> Yeah that's my idea. Plus we should probably store txbyteclkhs somewhere,
> too. Or at least we need to adjust the clock in adjusted_mode to match
> txbyteclkhs, otherwise the vblank ts code goes off the rails.
Ok. I will post a RFC for this. But for that we need to finalize few points.
1. We need to add three more variables in pipe_config for caching(SW and
HW State) the hfp, hsync and hbp.
2. On BXT DSI, We will compare the hdisplay, hfp, hsync and hbp only on
pipe_config_compare not all horizontal timing param of adjusted mode.
3. So we dont need to recalculate all horizontal timing parameters of
adjusted_mode from port register at get_config(). Should we fill them
too (No harm Though)?
Please clarify if we are fine with above points.
-Ram
> -Daniel
--
Thanks,
--Ram
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2016-04-15 11:06 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-29 17:34 [PATCH 1/2] drm/i915/BXT: Get pipe conf from the port registers Ramalingam C
2016-03-29 17:34 ` [PATCH 2/2] drm/i915/BXT: Tolerance at BXT DSI pipe_config comparison Ramalingam C
2016-03-29 18:28 ` kbuild test robot
2016-03-30 11:03 ` Jani Nikula
2016-03-30 11:32 ` Daniel Vetter
2016-03-30 14:19 ` Ramalingam C
2016-03-30 19:04 ` Daniel Vetter
2016-04-04 15:43 ` Ramalingam C
2016-04-05 8:30 ` Jani Nikula
2016-04-05 9:40 ` Ramalingam C
2016-04-13 10:06 ` Daniel Vetter
2016-04-13 11:06 ` Jani Nikula
2016-04-13 11:48 ` Daniel Vetter
2016-04-13 11:57 ` Daniel Vetter
2016-04-13 13:04 ` Ramalingam C
2016-04-13 14:46 ` Daniel Vetter
2016-04-15 10:57 ` Ramalingam C [this message]
2016-04-19 10:30 ` Ramalingam C
2016-04-13 10:05 ` Daniel Vetter
2016-03-30 6:14 ` ✗ Fi.CI.BAT: failure for series starting with [1/2] drm/i915/BXT: Get pipe conf from the port registers Patchwork
2016-03-30 10:43 ` [PATCH 1/2] " Jani Nikula
2016-03-30 13:28 ` Ramalingam C
2016-03-30 13:53 ` [PATCH 1/2] drm/i915: Sharing the pixel_format_from_vbt to whole i915 Ramalingam C
2016-03-30 13:53 ` [PATCH 2/2] drm/i915/BXT: Get pipe conf from the port registers Ramalingam C
2016-04-04 9:18 ` Ramalingam C
2016-04-06 11:45 ` Jani Nikula
2016-04-06 11:37 ` [PATCH 1/2] drm/i915: Sharing the pixel_format_from_vbt to whole i915 Jani Nikula
2016-03-31 12:51 ` ✗ Fi.CI.BAT: failure for series starting with [2/2] drm/i915/BXT: Get pipe conf from the port registers (rev3) 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=5710C90D.8060306@intel.com \
--to=ramalingam.c@intel.com \
--cc=daniel@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@intel.com \
--cc=ville.syrjala@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