* [PATCH] drm/i915/panelreplay: Panel replay workaround with VRR
@ 2024-02-07 14:35 Animesh Manna
2024-02-07 15:34 ` Hogander, Jouni
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Animesh Manna @ 2024-02-07 14:35 UTC (permalink / raw)
To: intel-gfx; +Cc: jouni.hogander, arun.r.murthy, Animesh Manna
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.
Signed-off-by: Animesh Manna <animesh.manna@intel.com>
---
drivers/gpu/drm/i915/display/intel_display.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
index 1b844cac4c58..c1ec78b5b6c5 100644
--- a/drivers/gpu/drm/i915/display/intel_display.c
+++ b/drivers/gpu/drm/i915/display/intel_display.c
@@ -2618,8 +2618,16 @@ static void intel_set_transcoder_timings(const struct intel_crtc_state *crtc_sta
* TRANS_SET_CONTEXT_LATENCY to configure the pipe vblank start.
*/
if (DISPLAY_VER(dev_priv) >= 13) {
- intel_de_write(dev_priv, TRANS_SET_CONTEXT_LATENCY(cpu_transcoder),
- crtc_vblank_start - crtc_vdisplay);
+ /*
+ * WA: Program Set Context Latency in TRANS_SET_CONTEXT_LATENCY register
+ * to at least a value of 1 when Panel Replay is enabled with VRR.
+ */
+ if (crtc_state->vrr.enable && crtc_state->has_panel_replay &&
+ (crtc_vblank_start == crtc_vdisplay))
+ intel_de_write(dev_priv, TRANS_SET_CONTEXT_LATENCY(cpu_transcoder), 1);
+ else
+ intel_de_write(dev_priv, TRANS_SET_CONTEXT_LATENCY(cpu_transcoder),
+ crtc_vblank_start - crtc_vdisplay);
/*
* VBLANK_START not used by hw, just clear it
--
2.29.0
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH] drm/i915/panelreplay: Panel replay workaround with VRR
2024-02-07 14:35 [PATCH] drm/i915/panelreplay: Panel replay workaround with VRR Animesh Manna
@ 2024-02-07 15:34 ` Hogander, Jouni
2024-02-07 15:37 ` Ville Syrjälä
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Hogander, Jouni @ 2024-02-07 15:34 UTC (permalink / raw)
To: Manna, Animesh, intel-gfx@lists.freedesktop.org; +Cc: Murthy, Arun R
On Wed, 2024-02-07 at 20:05 +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.
Do you have Bspec number. You could add it here.
>
> Signed-off-by: Animesh Manna <animesh.manna@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_display.c | 12 ++++++++++--
> 1 file changed, 10 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_display.c
> b/drivers/gpu/drm/i915/display/intel_display.c
> index 1b844cac4c58..c1ec78b5b6c5 100644
> --- a/drivers/gpu/drm/i915/display/intel_display.c
> +++ b/drivers/gpu/drm/i915/display/intel_display.c
> @@ -2618,8 +2618,16 @@ static void intel_set_transcoder_timings(const
> struct intel_crtc_state *crtc_sta
> * TRANS_SET_CONTEXT_LATENCY to configure the pipe vblank
> start.
> */
> if (DISPLAY_VER(dev_priv) >= 13) {
> - intel_de_write(dev_priv,
> TRANS_SET_CONTEXT_LATENCY(cpu_transcoder),
> - crtc_vblank_start - crtc_vdisplay);
> + /*
> + * WA: Program Set Context Latency in
> TRANS_SET_CONTEXT_LATENCY register
Do you have HSD number to add here?
BR,
Jouni Högander
> + * to at least a value of 1 when Panel Replay is
> enabled with VRR.
> + */
> + if (crtc_state->vrr.enable && crtc_state-
> >has_panel_replay &&
> + (crtc_vblank_start == crtc_vdisplay))
> + intel_de_write(dev_priv,
> TRANS_SET_CONTEXT_LATENCY(cpu_transcoder), 1);
> + else
> + intel_de_write(dev_priv,
> TRANS_SET_CONTEXT_LATENCY(cpu_transcoder),
> + crtc_vblank_start -
> crtc_vdisplay);
>
> /*
> * VBLANK_START not used by hw, just clear it
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] drm/i915/panelreplay: Panel replay workaround with VRR
2024-02-07 14:35 [PATCH] drm/i915/panelreplay: Panel replay workaround with VRR Animesh Manna
2024-02-07 15:34 ` Hogander, Jouni
@ 2024-02-07 15:37 ` Ville Syrjälä
2024-02-07 16:56 ` ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
2024-02-07 17:14 ` ✗ Fi.CI.BAT: failure " Patchwork
3 siblings, 0 replies; 5+ messages in thread
From: Ville Syrjälä @ 2024-02-07 15:37 UTC (permalink / raw)
To: Animesh Manna; +Cc: intel-gfx, jouni.hogander, arun.r.murthy
On Wed, Feb 07, 2024 at 08:05:09PM +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.
>
> Signed-off-by: Animesh Manna <animesh.manna@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_display.c | 12 ++++++++++--
> 1 file changed, 10 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
> index 1b844cac4c58..c1ec78b5b6c5 100644
> --- a/drivers/gpu/drm/i915/display/intel_display.c
> +++ b/drivers/gpu/drm/i915/display/intel_display.c
> @@ -2618,8 +2618,16 @@ static void intel_set_transcoder_timings(const struct intel_crtc_state *crtc_sta
> * TRANS_SET_CONTEXT_LATENCY to configure the pipe vblank start.
> */
> if (DISPLAY_VER(dev_priv) >= 13) {
> - intel_de_write(dev_priv, TRANS_SET_CONTEXT_LATENCY(cpu_transcoder),
> - crtc_vblank_start - crtc_vdisplay);
> + /*
> + * WA: Program Set Context Latency in TRANS_SET_CONTEXT_LATENCY register
> + * to at least a value of 1 when Panel Replay is enabled with VRR.
> + */
> + if (crtc_state->vrr.enable && crtc_state->has_panel_replay &&
> + (crtc_vblank_start == crtc_vdisplay))
> + intel_de_write(dev_priv, TRANS_SET_CONTEXT_LATENCY(cpu_transcoder), 1);
Nak. This needs to match the actual timings we have stored in the mode.
> + else
> + intel_de_write(dev_priv, TRANS_SET_CONTEXT_LATENCY(cpu_transcoder),
> + crtc_vblank_start - crtc_vdisplay);
>
> /*
> * VBLANK_START not used by hw, just clear it
> --
> 2.29.0
--
Ville Syrjälä
Intel
^ permalink raw reply [flat|nested] 5+ messages in thread* ✗ Fi.CI.CHECKPATCH: warning for drm/i915/panelreplay: Panel replay workaround with VRR
2024-02-07 14:35 [PATCH] drm/i915/panelreplay: Panel replay workaround with VRR Animesh Manna
2024-02-07 15:34 ` Hogander, Jouni
2024-02-07 15:37 ` Ville Syrjälä
@ 2024-02-07 16:56 ` Patchwork
2024-02-07 17:14 ` ✗ Fi.CI.BAT: failure " Patchwork
3 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2024-02-07 16:56 UTC (permalink / raw)
To: Animesh Manna; +Cc: intel-gfx
== Series Details ==
Series: drm/i915/panelreplay: Panel replay workaround with VRR
URL : https://patchwork.freedesktop.org/series/129632/
State : warning
== Summary ==
Error: dim checkpatch failed
2d9bc540b38f drm/i915/panelreplay: Panel replay workaround with VRR
-:26: CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'crtc_vblank_start == crtc_vdisplay'
#26: FILE: drivers/gpu/drm/i915/display/intel_display.c:2625:
+ if (crtc_state->vrr.enable && crtc_state->has_panel_replay &&
+ (crtc_vblank_start == crtc_vdisplay))
total: 0 errors, 0 warnings, 1 checks, 18 lines checked
^ permalink raw reply [flat|nested] 5+ messages in thread
* ✗ Fi.CI.BAT: failure for drm/i915/panelreplay: Panel replay workaround with VRR
2024-02-07 14:35 [PATCH] drm/i915/panelreplay: Panel replay workaround with VRR Animesh Manna
` (2 preceding siblings ...)
2024-02-07 16:56 ` ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
@ 2024-02-07 17:14 ` Patchwork
3 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2024-02-07 17:14 UTC (permalink / raw)
To: Animesh Manna; +Cc: intel-gfx
[-- Attachment #1: Type: text/plain, Size: 5434 bytes --]
== Series Details ==
Series: drm/i915/panelreplay: Panel replay workaround with VRR
URL : https://patchwork.freedesktop.org/series/129632/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_14239 -> Patchwork_129632v1
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_129632v1 absolutely need to be
verified manually.
If you think the reported changes have nothing to do with the changes
introduced in Patchwork_129632v1, please notify your bug team (I915-ci-infra@lists.freedesktop.org) to allow them
to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_129632v1/index.html
Participating hosts (37 -> 39)
------------------------------
Additional (3): bat-arls-3 fi-bsw-n3050 fi-pnv-d510
Missing (1): fi-snb-2520m
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_129632v1:
### IGT changes ###
#### Possible regressions ####
* igt@i915_selftest@live@client:
- bat-adlm-1: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14239/bat-adlm-1/igt@i915_selftest@live@client.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_129632v1/bat-adlm-1/igt@i915_selftest@live@client.html
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses.
They do not affect the overall result.
* igt@kms_addfb_basic@basic-x-tiled-legacy:
- {bat-arls-3}: NOTRUN -> [ABORT][3]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_129632v1/bat-arls-3/igt@kms_addfb_basic@basic-x-tiled-legacy.html
Known issues
------------
Here are the changes found in Patchwork_129632v1 that come from known issues:
### CI changes ###
#### Possible fixes ####
* boot:
- fi-apl-guc: [FAIL][4] ([i915#8293]) -> [PASS][5]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14239/fi-apl-guc/boot.html
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_129632v1/fi-apl-guc/boot.html
### IGT changes ###
#### Issues hit ####
* igt@gem_lmem_swapping@basic:
- fi-apl-guc: NOTRUN -> [SKIP][6] ([fdo#109271] / [i915#4613]) +3 other tests skip
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_129632v1/fi-apl-guc/igt@gem_lmem_swapping@basic.html
- fi-pnv-d510: NOTRUN -> [SKIP][7] ([fdo#109271]) +28 other tests skip
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_129632v1/fi-pnv-d510/igt@gem_lmem_swapping@basic.html
* igt@gem_lmem_swapping@random-engines:
- fi-bsw-n3050: NOTRUN -> [SKIP][8] ([fdo#109271]) +15 other tests skip
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_129632v1/fi-bsw-n3050/igt@gem_lmem_swapping@random-engines.html
* igt@kms_hdmi_inject@inject-audio:
- fi-apl-guc: NOTRUN -> [SKIP][9] ([fdo#109271]) +13 other tests skip
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_129632v1/fi-apl-guc/igt@kms_hdmi_inject@inject-audio.html
#### Warnings ####
* igt@i915_module_load@reload:
- fi-kbl-7567u: [DMESG-WARN][10] ([i915#180] / [i915#8585]) -> [DMESG-WARN][11] ([i915#180] / [i915#1982] / [i915#8585])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14239/fi-kbl-7567u/igt@i915_module_load@reload.html
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_129632v1/fi-kbl-7567u/igt@i915_module_load@reload.html
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[i915#10194]: https://gitlab.freedesktop.org/drm/intel/issues/10194
[i915#10196]: https://gitlab.freedesktop.org/drm/intel/issues/10196
[i915#10197]: https://gitlab.freedesktop.org/drm/intel/issues/10197
[i915#10200]: https://gitlab.freedesktop.org/drm/intel/issues/10200
[i915#10206]: https://gitlab.freedesktop.org/drm/intel/issues/10206
[i915#10211]: https://gitlab.freedesktop.org/drm/intel/issues/10211
[i915#10215]: https://gitlab.freedesktop.org/drm/intel/issues/10215
[i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077
[i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#8293]: https://gitlab.freedesktop.org/drm/intel/issues/8293
[i915#8585]: https://gitlab.freedesktop.org/drm/intel/issues/8585
[i915#9318]: https://gitlab.freedesktop.org/drm/intel/issues/9318
Build changes
-------------
* Linux: CI_DRM_14239 -> Patchwork_129632v1
CI-20190529: 20190529
CI_DRM_14239: 473fff9e18e4e77aa4c1f1ae5484a6fb809a89e6 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7705: 45aef708b65772e54ee9a68b1f3885fa25140fdf @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_129632v1: 473fff9e18e4e77aa4c1f1ae5484a6fb809a89e6 @ git://anongit.freedesktop.org/gfx-ci/linux
### Linux commits
5480f4aa7d7f drm/i915/panelreplay: Panel replay workaround with VRR
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_129632v1/index.html
[-- Attachment #2: Type: text/html, Size: 5866 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-02-07 17:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-07 14:35 [PATCH] drm/i915/panelreplay: Panel replay workaround with VRR Animesh Manna
2024-02-07 15:34 ` Hogander, Jouni
2024-02-07 15:37 ` Ville Syrjälä
2024-02-07 16:56 ` ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
2024-02-07 17:14 ` ✗ Fi.CI.BAT: failure " Patchwork
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.