public inbox for intel-xe@lists.freedesktop.org
 help / color / mirror / Atom feed
From: "Nautiyal, Ankit K" <ankit.k.nautiyal@intel.com>
To: "Jani Nikula" <jani.nikula@linux.intel.com>,
	"Ville Syrjälä" <ville.syrjala@linux.intel.com>
Cc: <intel-gfx@lists.freedesktop.org>,
	<intel-xe@lists.freedesktop.org>,
	<dri-devel@lists.freedesktop.org>
Subject: Re: [RESEND PATCH 5/7] drm/dp: Store coasting vtotal in struct drm_dp_as_sdp
Date: Tue, 28 Apr 2026 13:18:26 +0530	[thread overview]
Message-ID: <4b0fbf94-dccf-4403-9105-5c4ed4aea29e@intel.com> (raw)
In-Reply-To: <7fea9950f85c0316c6d784048fd6c461a6ba4432@intel.com>


On 4/27/2026 6:22 PM, Jani Nikula wrote:
> On Mon, 27 Apr 2026, Ville Syrjälä <ville.syrjala@linux.intel.com> wrote:
>> On Fri, Apr 24, 2026 at 03:04:22PM +0530, Ankit Nautiyal wrote:
>>> Add new field in struct drm_dp_as_sdp to store coasting vtotal.
>>> This is used by the sinks that support Panel Replay and Asynchronous
>>> timing during PR Active to derive refresh rate, when AS SDP transmission
>>> is stopped by the source.
>>>
>>> Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
>>> ---
>>>   drivers/gpu/drm/display/drm_dp_helper.c | 1 +
>>>   include/drm/display/drm_dp_helper.h     | 1 +
>>>   2 files changed, 2 insertions(+)
>>>
>>> diff --git a/drivers/gpu/drm/display/drm_dp_helper.c b/drivers/gpu/drm/display/drm_dp_helper.c
>>> index a697cc227e28..e29958f8b0b6 100644
>>> --- a/drivers/gpu/drm/display/drm_dp_helper.c
>>> +++ b/drivers/gpu/drm/display/drm_dp_helper.c
>>> @@ -3512,6 +3512,7 @@ void drm_dp_as_sdp_log(struct drm_printer *p, const struct drm_dp_as_sdp *as_sdp
>>>   	drm_printf(p, "    duration_incr_ms: %d\n", as_sdp->duration_incr_ms);
>>>   	drm_printf(p, "    duration_decr_ms: %d\n", as_sdp->duration_decr_ms);
>>>   	drm_printf(p, "    operation_mode: %d\n", as_sdp->mode);
>>> +	drm_printf(p, "    coasting vtotal: %d\n", as_sdp->coasting_vtotal);
>> For some reason the existing fields are using '_', this one ' '.
>> Looks like VSC uses ' ' as well. So the existing stuff in
>> drm_dp_as_sdp_log() should be fixed to conform to the common
>> style, in a separate patch.
> The indentation should be switched to tabs, and should be done using
> drm_printf_indent() which keeps the format strings readable.
>
> Can be done in follow-up.

Sure. Replacing the spaces with drm_printf_indent makes sense. I will 
use `indent` as 1 in these helpers as this will work for existing callers.

Later, if we want to pass the `indent` from the callers we can change 
the callers and extend the support as a separate change.

Thanks,

Ankit


>
> BR,
> Jani.
>
>
>> Otherwise this looks fine
>> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
>>
>>>   }
>>>   EXPORT_SYMBOL(drm_dp_as_sdp_log);
>>>   
>>> diff --git a/include/drm/display/drm_dp_helper.h b/include/drm/display/drm_dp_helper.h
>>> index 1d0acd58f486..8c2d77a032f0 100644
>>> --- a/include/drm/display/drm_dp_helper.h
>>> +++ b/include/drm/display/drm_dp_helper.h
>>> @@ -126,6 +126,7 @@ struct drm_dp_as_sdp {
>>>   	int duration_decr_ms;
>>>   	bool target_rr_divider;
>>>   	enum operation_mode mode;
>>> +	int coasting_vtotal;
>>>   };
>>>   
>>>   void drm_dp_as_sdp_log(struct drm_printer *p,
>>> -- 
>>> 2.45.2

  reply	other threads:[~2026-04-28  7:48 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-24  9:34 [RESEND PATCH 0/7] AS SDP cleanups and additions for Panel Replay + VRR Ankit Nautiyal
2026-04-24  9:34 ` [RESEND PATCH 1/7] drm/dp: Rename and relocate AS SDP payload field masks Ankit Nautiyal
2026-04-24  9:34 ` [RESEND PATCH 2/7] drm/dp: Clean up DPRX feature enumeration macros Ankit Nautiyal
2026-04-24  9:34 ` [RESEND PATCH 3/7] drm/dp: Add bits for AS SDP FAVT Payload Fields Parsing support Ankit Nautiyal
2026-04-24  9:34 ` [RESEND PATCH 4/7] drm/dp: Add DPCD for configuring AS SDP for PR + VRR Ankit Nautiyal
2026-04-24  9:34 ` [RESEND PATCH 5/7] drm/dp: Store coasting vtotal in struct drm_dp_as_sdp Ankit Nautiyal
2026-04-27 12:42   ` Ville Syrjälä
2026-04-27 12:52     ` Jani Nikula
2026-04-28  7:48       ` Nautiyal, Ankit K [this message]
2026-04-28  7:43     ` Nautiyal, Ankit K
2026-04-24  9:34 ` [RESEND PATCH 6/7] drm/dp: Add a helper to get the SDP type as a string Ankit Nautiyal
2026-04-27 12:57   ` Ville Syrjälä
2026-04-28  7:42     ` Nautiyal, Ankit K
2026-04-24  9:34 ` [RESEND PATCH 7/7] drm/dp: Add target_rr_divider field in AS SDP logging Ankit Nautiyal
2026-04-27 12:58   ` Ville Syrjälä
2026-04-24 10:22 ` ✗ CI.checkpatch: warning for AS SDP cleanups and additions for Panel Replay + VRR Patchwork
2026-04-24 10:23 ` ✓ CI.KUnit: success " Patchwork
2026-04-24 11:29 ` ✓ Xe.CI.BAT: " Patchwork
2026-04-24 12:35 ` ✗ Xe.CI.FULL: failure " 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=4b0fbf94-dccf-4403-9105-5c4ed4aea29e@intel.com \
    --to=ankit.k.nautiyal@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=jani.nikula@linux.intel.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox