From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Animesh Manna <animesh.manna@intel.com>
Cc: <intel-gfx@lists.freedesktop.org>,
<ville.syrjala@linux.intel.com>, <jouni.hogander@intel.com>,
<arun.r.murthy@intel.com>
Subject: Re: [PATCH v3] drm/i915/panelreplay: Panel replay workaround with VRR
Date: Tue, 20 Feb 2024 12:41:36 -0500 [thread overview]
Message-ID: <ZdTkUFmBcxcpqTV3@intel.com> (raw)
In-Reply-To: <20240220141919.3502674-1-animesh.manna@intel.com>
On Tue, Feb 20, 2024 at 07:49:19PM +0530, Animesh Manna wrote:
> Panel Replay VSC SDP not getting sent when VRR is enabled
> and W1 and W2 are 0. So Program Set Context Latency in
> TRANS_SET_CONTEXT_LATENCY register to at least a value of 1.
>
> HSD: 14015406119
Unnecessary mark since the wa_name already is a pointer to the HSD.
>
> v1: Initial version.
> v2: Update timings stored in adjusted_mode struct. [Ville]
> v3: Add WA in compute_config(). [Ville]
>
> Signed-off-by: Animesh Manna <animesh.manna@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_dp.c | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> index 217196196e50..eb0fa513cd0f 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> @@ -2948,6 +2948,18 @@ 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);
>
> + /*
> + * WA: HSD-14015406119
this is not the right one. You should use the lineage one and then mark the platforms.
/* wa_14015401596: xe_lpd, xe_hpd */
or perhaps
/* wa_14015401596: display versions: 13, 14 */
and also add a check for the display version with it.
> + * Program Set Context Latency in TRANS_SET_CONTEXT_LATENCY register
> + * to at least a value of 1 when Panel Replay is enabled with VRR.
> + * Value for TRANS_SET_CONTEXT_LATENCY is calculated by substracting
> + * crtc_vdisplay from crtc_vblank_start, so incrementing crtc_vblank_start
> + * by 1 if both are equal.
> + */
> + if (pipe_config->vrr.enable && pipe_config->has_panel_replay &&
> + adjusted_mode->crtc_vblank_start == adjusted_mode->crtc_vdisplay)
> + adjusted_mode->crtc_vblank_start += 1;
why to mess with the vblank start instead of going to intel_set_transcoder_timings()
and change directly what is getting written to the register when the register
gets written?
In case the answer is becasue by then we don't have the vrr.enable or something like
that, then we should consider move around when we set that register?
or perhaps create a specific flag? one extra variable, 3 less comment lines...
> +
> return 0;
> }
>
> --
> 2.29.0
>
next prev parent reply other threads:[~2024-02-20 17:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-20 14:19 [PATCH v3] drm/i915/panelreplay: Panel replay workaround with VRR Animesh Manna
2024-02-20 15:29 ` ✓ Fi.CI.BAT: success for drm/i915/panelreplay: Panel replay workaround with VRR (rev3) Patchwork
2024-02-20 16:36 ` ✓ Fi.CI.IGT: " Patchwork
2024-02-20 17:41 ` Rodrigo Vivi [this message]
2024-02-21 20:19 ` [PATCH v3] drm/i915/panelreplay: Panel replay workaround with VRR Manna, Animesh
2024-02-21 20:58 ` Rodrigo Vivi
2024-02-21 21:08 ` Ville Syrjälä
2024-02-21 21:24 ` Ville Syrjälä
2024-03-28 5:46 ` Manna, Animesh
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=ZdTkUFmBcxcpqTV3@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=animesh.manna@intel.com \
--cc=arun.r.murthy@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jouni.hogander@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