From: "Nautiyal, Ankit K" <ankit.k.nautiyal@intel.com>
To: Jani Nikula <jani.nikula@linux.intel.com>,
<intel-gfx@lists.freedesktop.org>,
<intel-xe@lists.freedesktop.org>
Cc: <ville.syrjala@linux.intel.com>, <arun.r.murthy@intel.com>
Subject: Re: [PATCH 04/12] drm/i915/dp: Add helper to get AS SDP Transmission Line
Date: Mon, 13 Apr 2026 15:08:37 +0530 [thread overview]
Message-ID: <6d7bec96-8a62-4764-9469-882eec1699ab@intel.com> (raw)
In-Reply-To: <60b491e73f722548e1d40f4aafccd1096c4807cf@intel.com>
On 4/13/2026 2:04 PM, Jani Nikula wrote:
> On Mon, 13 Apr 2026, Ankit Nautiyal <ankit.k.nautiyal@intel.com> wrote:
>> Introduce a DP helper to compute the Adaptive Sync SDP transmission line
>> and use it when programming the EMP_AS_SDP_TL register.
>>
>> Currently the AS SDP transmission line is programmed to the T1 position.
>> This can be extended in the future to support programming the T2 position
>> as well.
>>
>> While at it, improve the documentation: the AS SDP transmission line
>> corresponds to the T1 position, which maps to the start of the VSYNC
>> pulse.
>>
>> Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
>> ---
>> drivers/gpu/drm/i915/display/intel_dp.c | 12 ++++++++++++
>> drivers/gpu/drm/i915/display/intel_dp.h | 2 ++
>> drivers/gpu/drm/i915/display/intel_vrr.c | 4 ++--
>> 3 files changed, 16 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
>> index 4955bd8b11d7..fd668babd641 100644
>> --- a/drivers/gpu/drm/i915/display/intel_dp.c
>> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
>> @@ -7415,3 +7415,15 @@ bool intel_dp_joiner_candidate_valid(struct intel_connector *connector,
>>
>> return true;
>> }
>> +
>> +int intel_dp_sdp_as_tl(const struct intel_crtc_state *crtc_state)
> So the name of the function is Intel display port secondary data packet
> adaptive sync transmission line.
>
> The function name doesn't say what the function *does*.
I agree. I will make the function reflect what the function does.
Thanks & Regards,
Ankit
>
>> +{
>> + /*
>> + * EMP_AS_SDP_TL defines the T1 position as the default AS SDP
>> + * Transmission Line, which corresponds to the start of the
>> + * VSYNC pulse.
>> + *
>> + * Use the T1 position for now.
>> + */
>> + return crtc_state->vrr.vsync_start;
>> +}
>> diff --git a/drivers/gpu/drm/i915/display/intel_dp.h b/drivers/gpu/drm/i915/display/intel_dp.h
>> index 2849b9ecdc71..7024fd0ace0a 100644
>> --- a/drivers/gpu/drm/i915/display/intel_dp.h
>> +++ b/drivers/gpu/drm/i915/display/intel_dp.h
>> @@ -238,4 +238,6 @@ bool intel_dp_joiner_candidate_valid(struct intel_connector *connector,
>> for ((__num_joined_pipes) = 1; (__num_joined_pipes) <= (I915_MAX_PIPES); (__num_joined_pipes)++) \
>> for_each_if(intel_dp_joiner_candidate_valid(__connector, (__mode)->hdisplay, __num_joined_pipes))
>>
>> +int intel_dp_sdp_as_tl(const struct intel_crtc_state *crtc_state);
>> +
>> #endif /* __INTEL_DP_H__ */
>> diff --git a/drivers/gpu/drm/i915/display/intel_vrr.c b/drivers/gpu/drm/i915/display/intel_vrr.c
>> index 5164d8c354e0..b700da4e9256 100644
>> --- a/drivers/gpu/drm/i915/display/intel_vrr.c
>> +++ b/drivers/gpu/drm/i915/display/intel_vrr.c
>> @@ -607,11 +607,11 @@ void intel_vrr_write_emp_as_sdp_tl(const struct intel_crtc_state *crtc_state)
>>
>> /*
>> * Since currently we support VRR only for DP/eDP, so this is programmed
>> - * only for Adaptive Sync SDP to Vsync start.
>> + * only for Adaptive Sync SDP.
>> */
>> intel_de_write(display,
>> EMP_AS_SDP_TL(display, cpu_transcoder),
>> - EMP_AS_SDP_DB_TL(crtc_state->vrr.vsync_start));
>> + EMP_AS_SDP_DB_TL(intel_dp_sdp_as_tl(crtc_state)));
>> }
>>
>> void intel_vrr_set_transcoder_timings(const struct intel_crtc_state *crtc_state)
next prev parent reply other threads:[~2026-04-13 9:38 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-13 3:53 [PATCH 00/12] Add support for Common SDP Transmission Line Ankit Nautiyal
2026-04-13 3:53 ` [PATCH 01/12] drm/i915/vrr: Add HAS_EMP_AS_SDP_TL macro Ankit Nautiyal
2026-04-13 8:31 ` Jani Nikula
2026-04-13 8:58 ` Nautiyal, Ankit K
2026-04-13 3:53 ` [PATCH 02/12] drm/i915/vrr: Add helper to readback EMP_AS_SDP_TL Ankit Nautiyal
2026-04-13 8:32 ` Jani Nikula
2026-04-13 9:25 ` Ville Syrjälä
2026-04-13 9:54 ` Nautiyal, Ankit K
2026-04-13 10:21 ` Ville Syrjälä
2026-04-13 3:53 ` [PATCH 03/12] drm/i915/vrr: Separate out helper to write EMP_AS_SDP_TL Ankit Nautiyal
2026-04-13 3:53 ` [PATCH 04/12] drm/i915/dp: Add helper to get AS SDP Transmission Line Ankit Nautiyal
2026-04-13 8:34 ` Jani Nikula
2026-04-13 9:38 ` Nautiyal, Ankit K [this message]
2026-04-13 3:53 ` [PATCH 05/12] drm/i915/dp: Add crtc state for AS SDP transmission line Ankit Nautiyal
2026-04-13 8:36 ` Jani Nikula
2026-04-13 9:36 ` Nautiyal, Ankit K
2026-04-13 3:53 ` [PATCH 06/12] drm/i915/dp: Store and use AS SDP transmission line from crtc state Ankit Nautiyal
2026-04-13 3:53 ` [PATCH 07/12] drm/i915/nvl: Add register definitions for common SDP Transmission Line Ankit Nautiyal
2026-04-13 3:53 ` [PATCH 08/12] drm/i915/display: Add HAS_CMN_SDP_TL macro Ankit Nautiyal
2026-04-13 8:37 ` Jani Nikula
2026-04-13 3:53 ` [PATCH 09/12] drm/i915/dp: Store SDP transmission lines in crtc_state Ankit Nautiyal
2026-04-13 3:53 ` [PATCH 10/12] drm/i915/dp: Introduce helpers to enable/disable CMN SDP Transmission line Ankit Nautiyal
2026-04-13 3:53 ` [PATCH 11/12] drm/i915/dp: Enable Common " Ankit Nautiyal
2026-04-13 3:53 ` [PATCH 12/12] drm/i915/display: Dump SDP Transmission lines Ankit Nautiyal
2026-04-13 4:18 ` ✗ CI.checkpatch: warning for Add support for Common SDP Transmission Line (rev2) Patchwork
2026-04-13 4:19 ` ✓ CI.KUnit: success " Patchwork
2026-04-13 5:00 ` ✓ Xe.CI.BAT: " Patchwork
2026-04-13 6:04 ` ✗ Xe.CI.FULL: failure " Patchwork
-- strict thread matches above, loose matches on Subject: below --
2026-04-16 2:44 [PATCH 00/12] Add support for Common SDP Transmission Line Ankit Nautiyal
2026-04-16 2:44 ` [PATCH 04/12] drm/i915/dp: Add helper to get AS " Ankit Nautiyal
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=6d7bec96-8a62-4764-9469-882eec1699ab@intel.com \
--to=ankit.k.nautiyal@intel.com \
--cc=arun.r.murthy@intel.com \
--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