All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Nautiyal, Ankit K" <ankit.k.nautiyal@intel.com>
To: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
Cc: <intel-gfx@lists.freedesktop.org>, <intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH 13/13] drm/i915: Add more vertical timing diagrams
Date: Sat, 28 Nov 2026 08:29:35 +0530	[thread overview]
Message-ID: <277461fe-d81a-40e9-abd6-612e00368aa3@intel.com> (raw)
In-Reply-To: <awmeDlxhpzOsqpba@intel.com>


On 11/27/2026 8:43 PM, Ville Syrjälä wrote:
> On Fri, Nov 27, 2026 at 11:36:59AM +0530, Nautiyal, Ankit K wrote:
>> On 10/23/2026 10:28 PM, Ville Syrjala wrote:
>>> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>>>
>>> Document what's going in the vertical blank interval on all
>>> platforms. We already have one diagram, but that also includes
>>> details on the frame counter vs. pixel counter differences and
>>> whatnot, and so would probably get even messier if we added
>>> more to it. So create a new set of simpler diagrams. We basically
>>> have four different timing generator behaviors, add a diagram
>>> for each.
>>>
>>> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
>>> ---
>>>    drivers/gpu/drm/i915/display/intel_vblank.c | 50 +++++++++++++++++++++
>>>    1 file changed, 50 insertions(+)
>>>
>>> diff --git a/drivers/gpu/drm/i915/display/intel_vblank.c b/drivers/gpu/drm/i915/display/intel_vblank.c
>>> index 084f6aaea61d..d93a78cea9cc 100644
>>> --- a/drivers/gpu/drm/i915/display/intel_vblank.c
>>> +++ b/drivers/gpu/drm/i915/display/intel_vblank.c
>>> @@ -68,6 +68,56 @@
>>>     *   of horizontal active on the first line of vertical active
>>>     */
>>>    
>>> +/*
>>> + * Overview of vertical timings:
>>> + *
>>> + * Legacy timing generator (pre-TGL):
>>> + * ... vactive |    vblank   | vactive ...
>>> + *             | "guardband" |
>>> + *             | FSD |
>>> + *             ^     ^
>>> + *             |     frame start (vblank interrupt on gen2/3)
>>> + *             vblank
>>> + *
>>> + * Legacy timing generator (TGL+):
>>> + * ... vactive |         vblank         | vactive ...
>>> + *             | window 2 | "guardband" |
>>> + *             |   SCL    | FSD |
>>> + *             ^          ^     ^
>>> + *             |          |     frame start
>>> + *             |          delayed vblank
>>> + *             undelayed vblank
>>> + *
>>> + * VRR timing generator (ICL):
>>> + * ... vactive |               vblank               | vactive ...
>>> + *             | window 1 | VRR stretch | guardband |
>>> + *                                      | FSD |
>>> + *                                      ^     ^
>>> + *                                      |     frame start
>>> + *                                      vblank
>>> + *
>>> + * VRR timing generator (TGL-LNL):
>>> + * ... vactive |                    vblank                     | vactive ...
>>> + *             | window 1 | VRR stretch | window 2 | guardband |
>>> + *                                      |   SCL    | FSD |
>>> + *             |    DSB safe window     |
>>> + *             ^                                   ^     ^
>>> + *             |                                   |     frame start
>>> + *             undelayed vblank                    delayed vblank
>>> + *
>>> + * VRR timing generator (PTL+):
>>> + * ... vactive |                    vblank                     | vactive ...
>>> + *             | window 1 | VRR stretch | window 2 | guardband |
>>> + *    |  SCL   |                        |   SCL    | FSD |
>>> + *    |         DSB safe window         |
>>> + *             ^                                   ^     ^
>>> + *             |                                   |     frame start
>>> + *             undelayed vblank                    delayed vblank
>>> + *
>>> + * SCL = set context latency
>>> + * FSD = frame start delay
>>> + */
>> Perhaps good to mention: on ICL/TGL guardband was called pipeline_full?
> I suppose a note about that might be in order.


That will do.

>
>> Can we also document the wait_for_vblank and DSB chicken bits behaviour,
>> something like:
>>
>>    * VRR timing generator (PTL+):
>>    * ... vactive |                    vblank                     |
>> vactive ...
>>    *             | window 1 | VRR stretch | window 2 | guardband |
>>    *    |  SCL   |                        |   SCL    | FSD |
>>    *    |         DSB safe window         |
>>    *    |        ^                                   ^     ^
>>    *    |        |                                   |     frame start
>>    *    |        undelayed vblank                    delayed vblank
>>    *    ^
>>    *    |
>>    *   wait_for_vblank ends here (DSB chicken bits redirect it to the
>> safe window)
> Hmm. Maybe just an extra note at the end?
> Something like this perhaps?
>
> When DSB_CHICKEN is configured to wait for vblank, the signal
> is edge triggered on the undelayed vblank. When DSB_CHICKEN
> is configured to wait for safe window, the signal is level
> triggered on the entire DSB safe window period.


Note is perfect, and accurately describes, what I intended to capture 
near the diagram.

Can we make DSB window with dashes, if it doesn't spoil the diagram:

+ * VRR timing generator (PTL+):
+ * ... vactive |                    vblank                     | 
vactive ...
+ *             | window 1 | VRR stretch | window 2 | guardband |
+ *    |  SCL   |                        |   SCL    | FSD |
+ *    |---------DSB safe window---------|
+ *             ^                                   ^     ^
+ *             |                                   |     frame start
+ *             undelayed vblank                    delayed vblank
+ *
+ * SCL = set context latency
+ * FSD = frame start delay
+ */

+


Regards,

Ankit

>
>>
>> But even without above suggestions, the diagrams LGTM.
>>
>> I had a very primitive diagram in my scratchpad. This is better.
>>
>>
>> Reviewed-by: Ankit Nautiyal ankit.k.nautiyal@intel.com
>>
>>
>>> +
>>>    /*
>>>     * Called from drm generic code, passed a 'crtc', which we use as a pipe index.
>>>     */

  reply	other threads:[~2026-11-28  2:59 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-23 16:57 [PATCH 00/13] drm/i915/vrr: Fixes and cleanups Ville Syrjala
2026-10-23 16:57 ` [PATCH 01/13] drm/i915/vrr: Fix intel_vrr_dcb_vmin_vblank_start() Ville Syrjala
2026-10-27 16:04   ` Jani Nikula
2026-10-27 16:37     ` Ville Syrjälä
2026-10-23 16:57 ` [PATCH 02/13] drm/i915/vrr: Drop bogus intel_vrr_hw_value() call Ville Syrjala
2026-11-27  5:54   ` Nautiyal, Ankit K
2026-10-23 16:57 ` [PATCH 03/13] drm/i915/vrr: s/intel_vrr_vblank_start()/vrr_vblank_start()/ Ville Syrjala
2026-11-27  5:55   ` Nautiyal, Ankit K
2026-10-23 16:57 ` [PATCH 04/13] drm/i915/vrr: Reuse vrr_vblank_start() in more places Ville Syrjala
2026-11-27  5:55   ` Nautiyal, Ankit K
2026-10-23 16:57 ` [PATCH 05/13] drm/i915/vrr: Add a local 'adjusted_mode' variable to intel_vrr_get_config() Ville Syrjala
2026-11-27  5:56   ` Nautiyal, Ankit K
2026-10-23 16:57 ` [PATCH 06/13] drm/i915/vrr: Use the local 'adjusted_mode' intel_vrr_compute_config() Ville Syrjala
2026-11-27  5:56   ` Nautiyal, Ankit K
2026-10-23 16:57 ` [PATCH 07/13] drm/i915/vrr: Annotate live functions Ville Syrjala
2026-11-27  5:58   ` Nautiyal, Ankit K
2026-10-23 16:57 ` [PATCH 08/13] drm/i915/vrr: Shuffle code around Ville Syrjala
2026-11-27  5:58   ` Nautiyal, Ankit K
2026-10-23 16:57 ` [PATCH 09/13] drm/i915/vrr: Extract vrr_safe_window_end() Ville Syrjala
2026-11-27  5:59   ` Nautiyal, Ankit K
2026-10-23 16:58 ` [PATCH 10/13] drm/i915/vrr: Extract intel_vrr_vmin_vblank_start_live() Ville Syrjala
2026-11-27  6:00   ` Nautiyal, Ankit K
2026-10-23 16:58 ` [PATCH 11/13] drm/i915/vrr: Introduce intel_vrr_vblank_start_live() and use it for MMIO vblank evasion Ville Syrjala
2026-11-27  6:03   ` Nautiyal, Ankit K
2026-10-23 16:58 ` [PATCH 12/13] drm/i915/vrr: Include VRR safe window in state dump Ville Syrjala
2026-11-27  6:04   ` Nautiyal, Ankit K
2026-10-23 16:58 ` [PATCH 13/13] drm/i915: Add more vertical timing diagrams Ville Syrjala
2026-11-27  6:06   ` Nautiyal, Ankit K
2026-11-27 15:13     ` Ville Syrjälä
2026-11-28  2:59       ` Nautiyal, Ankit K [this message]
2026-10-23 17:05 ` ✗ CI.checkpatch: warning for drm/i915/vrr: Fixes and cleanups Patchwork
2026-10-23 17:08 ` ✓ CI.KUnit: success " Patchwork
2026-10-23 17:45 ` ✓ Xe.CI.BAT: " Patchwork
2026-10-23 18:21 ` ✓ i915.CI.BAT: " Patchwork
2026-10-23 23:57 ` ✓ Xe.CI.FULL: " Patchwork
2026-10-24  2:58 ` ✓ i915.CI.Full: " 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=277461fe-d81a-40e9-abd6-612e00368aa3@intel.com \
    --to=ankit.k.nautiyal@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@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 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.