From: Jani Nikula <jani.nikula@linux.intel.com>
To: Animesh Manna <animesh.manna@intel.com>,
intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Cc: Animesh Manna <animesh.manna@intel.com>
Subject: Re: [RFC 1/8] drm/i915/cmtg: enable cmtg LNL onwards
Date: Mon, 17 Nov 2025 17:15:20 +0200 [thread overview]
Message-ID: <233b0f125ed2caa3f8c06de970636c0d92ca79af@intel.com> (raw)
In-Reply-To: <20251117114216.1522615-2-animesh.manna@intel.com>
On Mon, 17 Nov 2025, Animesh Manna <animesh.manna@intel.com> wrote:
> Introduce a flag for cmtg. LNL onwards CMTG support will be added.
> Set the flag as per DISPLAY_VER() check.
>
> Signed-off-by: Animesh Manna <animesh.manna@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_display_types.h | 3 +++
> drivers/gpu/drm/i915/display/intel_dp.c | 5 +++++
> 2 files changed, 8 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_display_types.h b/drivers/gpu/drm/i915/display/intel_display_types.h
> index 38702a9e0f50..7b8343755c90 100644
> --- a/drivers/gpu/drm/i915/display/intel_display_types.h
> +++ b/drivers/gpu/drm/i915/display/intel_display_types.h
> @@ -1351,6 +1351,9 @@ struct intel_crtc_state {
>
> struct drm_rect psr2_su_area;
>
> + /* CMTG Enable */
The comment is useless, it's literally the same as the member name.
> + bool enable_cmtg;
Please let's add this stuff in sub-structs, we should do it more in
general:
struct {
bool enable;
} cmtg;
> +
> /* Variable Refresh Rate state */
> struct {
> bool enable, in_range;
> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> index 0ec82fcbcf48..3f7da4c08665 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> @@ -3421,6 +3421,11 @@ intel_dp_compute_config(struct intel_encoder *encoder,
> intel_dp_compute_vsc_sdp(intel_dp, pipe_config, conn_state);
> intel_dp_compute_hdr_metadata_infoframe_sdp(intel_dp, pipe_config, conn_state);
>
> + if(DISPLAY_VER(display) >= 15 && intel_dp_is_edp(intel_dp)) {
> + pipe_config->enable_cmtg = true;
> + drm_dbg_kms(display->drm,"ANI-DBG: intel_dp_compute_config\n");
Please don't leave personal debug stuff even in RFC code.
> + }
> +
> return intel_dp_tunnel_atomic_compute_stream_bw(state, intel_dp, connector,
> pipe_config);
> }
--
Jani Nikula, Intel
next prev parent reply other threads:[~2025-11-17 15:15 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-17 11:42 [RFC 0/8] CMTG enablement Animesh Manna
2025-11-17 11:42 ` [RFC 1/8] drm/i915/cmtg: enable cmtg LNL onwards Animesh Manna
2025-11-17 15:15 ` Jani Nikula [this message]
2026-01-08 8:17 ` Manna, Animesh
2025-11-17 11:42 ` [RFC 2/8] drm/i915/cmtg: cmtg set clock select Animesh Manna
2025-11-17 15:17 ` Jani Nikula
2025-11-17 11:42 ` [RFC 3/8] drm/i915/cmtg: set timings for cmtg Animesh Manna
2025-11-17 15:13 ` Jani Nikula
2026-01-08 8:15 ` Manna, Animesh
2025-11-17 11:42 ` [RFC 4/8] drm/i915/cmtg: program vrr registers of cmtg Animesh Manna
2025-11-17 15:09 ` Jani Nikula
2026-01-08 8:14 ` Manna, Animesh
2025-11-17 11:42 ` [RFC 5/8] drm/i915/cmtg: program set context latency " Animesh Manna
2025-11-17 11:42 ` [RFC 6/8] drm/i915/cmtg: set transcoder mn for cmtg Animesh Manna
2025-11-17 11:42 ` [RFC 7/8] drm/i915/cmtg: program sync to port " Animesh Manna
2025-11-17 11:42 ` [RFC 8/8] drm/i915/cmtg: enable cmtg ctl Animesh Manna
2025-11-17 12:15 ` ✗ CI.checkpatch: warning for CMTG enablement Patchwork
2025-11-17 12:16 ` ✓ CI.KUnit: success " Patchwork
2025-11-17 12:31 ` ✗ CI.checksparse: warning " Patchwork
2025-11-17 12:54 ` ✓ Xe.CI.BAT: success " Patchwork
2025-11-17 14:54 ` ✗ 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=233b0f125ed2caa3f8c06de970636c0d92ca79af@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=animesh.manna@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