From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Ankit Nautiyal <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 12:25:14 +0300 [thread overview]
Message-ID: <ady2etQgkOzYOOA5@intel.com> (raw)
In-Reply-To: <20260413035349.1730312-3-ankit.k.nautiyal@intel.com>
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.
> +}
> diff --git a/drivers/gpu/drm/i915/display/intel_vrr.h b/drivers/gpu/drm/i915/display/intel_vrr.h
> index 4f16ca4af91f..6659a8a53432 100644
> --- a/drivers/gpu/drm/i915/display/intel_vrr.h
> +++ b/drivers/gpu/drm/i915/display/intel_vrr.h
> @@ -53,5 +53,6 @@ int intel_vrr_dcb_vmin_vblank_start_next(const struct intel_crtc_state *crtc_sta
> int intel_vrr_dcb_vmax_vblank_start_next(const struct intel_crtc_state *crtc_state);
> int intel_vrr_dcb_vmin_vblank_start_final(const struct intel_crtc_state *crtc_state);
> int intel_vrr_dcb_vmax_vblank_start_final(const struct intel_crtc_state *crtc_state);
> +u16 intel_vrr_read_emp_as_sdp_tl(const struct intel_crtc_state *crtc_state);
>
> #endif /* __INTEL_VRR_H__ */
> --
> 2.45.2
--
Ville Syrjälä
Intel
next prev parent reply other threads:[~2026-04-13 9:25 UTC|newest]
Thread overview: 30+ 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ä [this message]
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
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
2026-04-13 7:30 ` ✓ i915.CI.BAT: success " Patchwork
2026-04-13 12:10 ` ✓ 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=ady2etQgkOzYOOA5@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 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.