From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: "Nautiyal, Ankit K" <ankit.k.nautiyal@intel.com>
Cc: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org,
arun.r.murthy@intel.com
Subject: Re: [PATCH 02/12] drm/i915/vrr: Add helper to readback EMP_AS_SDP_TL
Date: Mon, 13 Apr 2026 13:21:08 +0300 [thread overview]
Message-ID: <adzDlJ9Pr5SdzTre@intel.com> (raw)
In-Reply-To: <00a50371-ab7b-44a2-9261-fc3f8308eb4a@intel.com>
On Mon, Apr 13, 2026 at 03:24:30PM +0530, Nautiyal, Ankit K wrote:
>
> On 4/13/2026 2:55 PM, Ville Syrjälä wrote:
> > On Mon, Apr 13, 2026 at 09:23:39AM +0530, Ankit Nautiyal wrote:
> >> EMP_AS_SDP_TL is used to program both DP Adaptive Sync SDP and HDMI
> >> Video Timing EMP for VRR operation. Add a helper to read back the
> >> programmed transmission line from hardware so VRR code can populate
> >> the corresponding CRTC state fields during get_config.
> >>
> >> This provides a common read-back path for VRR packet transmission
> >> line state.
> >>
> >> Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
> >> ---
> >> drivers/gpu/drm/i915/display/intel_vrr.c | 13 +++++++++++++
> >> drivers/gpu/drm/i915/display/intel_vrr.h | 1 +
> >> 2 files changed, 14 insertions(+)
> >>
> >> diff --git a/drivers/gpu/drm/i915/display/intel_vrr.c b/drivers/gpu/drm/i915/display/intel_vrr.c
> >> index 1fed597439b0..abdae7f1f8a8 100644
> >> --- a/drivers/gpu/drm/i915/display/intel_vrr.c
> >> +++ b/drivers/gpu/drm/i915/display/intel_vrr.c
> >> @@ -1218,3 +1218,16 @@ int intel_vrr_dcb_vmax_vblank_start_final(const struct intel_crtc_state *crtc_st
> >>
> >> return intel_vrr_vblank_start(crtc_state, VRR_DCB_VMAX(tmp) + 1);
> >> }
> >> +
> >> +u16 intel_vrr_read_emp_as_sdp_tl(const struct intel_crtc_state *crtc_state)
> >> +{
> >> + struct intel_display *display = to_intel_display(crtc_state);
> >> + enum transcoder cpu_transcoder = crtc_state->cpu_transcoder;
> >> + u32 val;
> >> +
> >> + if (!HAS_EMP_AS_SDP_TL(display))
> >> + return 0;
> >> +
> >> + val = intel_de_read(display, EMP_AS_SDP_TL(display, cpu_transcoder));
> >> + return REG_FIELD_GET(EMP_AS_SDP_DB_TL_MASK, val);
> > This stuff really doesn't seem to belong in intel_vrr.c. We probably need
> > some kind of infoframe/SDP file where all the relevant stuff lives. Long
> > ago I did attempt to extract all the infoframe stuff from intel_hdmi.c
> > into intel_dip.c (or something like that), but there were still far too
> > many HDMI specifics in the result for my liking.
> >
> > So I think what's really needed is an effort to distill the core of the
> > video DIP implementation (really just the low level buffer read/write
> > stuff, and I suspect now also this transmission line stuff) into a new
> > file. You could perhaps introduce that new file here, and then we'll
> > try to get to extracting the DIP buffer stuff later.
> Alright. I can start with a new file for SDP transmission line stuff.
>
> Since we are on the topic, I had a query:
> The hsw_infoframe_enable() switch mixes HDMI packet types and DP SDP
> types in a single namespace.
> The types currently used don't collide, but I think these might collide
> at some point, (if not already).
> Do we need to change this? OR these are guaranteed to be non-overlapping?
We should perhaps introduce a DIP type enum and have the higher level
code convert the HDMI/DP specific types into that.
--
Ville Syrjälä
Intel
next prev parent reply other threads:[~2026-04-13 10:21 UTC|newest]
Thread overview: 28+ 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ä [this message]
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
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
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=adzDlJ9Pr5SdzTre@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=ankit.k.nautiyal@intel.com \
--cc=arun.r.murthy@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
/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