drm/i915: Allow for Vsync_start and Vsync_end to change in LRR
Subsystems (3)
PATCH 1/1 drm/i915: Allow for Vsync_start and Vsync_end to change in LRR
Since LRR mode requires panel to support VRR, any of the LRR mode is achieved by stretching vertical front porch which also pushes out Vsync_start and Vsync_end timings of the mode.
This allows for VSS and VSE timings to be different in case of LRR to ensure semaless modeset/fastset to LRR mode.
In case of VRR capable panel, it technically ignores the VSYNC because we set Ignore_MSA bit for sink but reprogram the TRANS_VSYNC to keep the state checker happy in case of LRR.
--- drivers/gpu/drm/i915/display/intel_display.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/display/intel_display.c +9 -2
@@ -2685,6 +2685,13 @@ static void intel_set_transcoder_timings_lrr(const struct intel_crtc_state *crtcintel_de_write (dev_priv,TRANS_VBLANK (cpu_transcoder),VBLANK_START (crtc_vblank_start -1 ) |VBLANK_END (crtc_vblank_end -1 )); +/* +* HW ignores TRANS_VSYNC in VRR on DP because we set Ignore MSA bit. +* But let's write this to keepthe state checker happy. +*/ +intel_de_write (dev_priv,TRANS_VSYNC (cpu_transcoder), +VSYNC_START (adjusted_mode->crtc_vsync_start -1 ) | +VSYNC_END (adjusted_mode->crtc_vsync_end -1 ));/* * The double buffer latch point for TRANS_VTOTAL * is the transcoder's undelayed vblank.
@@ -5043,11 +5050,11 @@ intel_pipe_config_compare(const struct intel_crtc_state *current_config,PIPE_CONF_CHECK_I (name.crtc_hsync_end); \PIPE_CONF_CHECK_I (name.crtc_vdisplay); \PIPE_CONF_CHECK_I (name.crtc_vblank_start); \ -PIPE_CONF_CHECK_I (name.crtc_vsync_start); \ -PIPE_CONF_CHECK_I (name.crtc_vsync_end); \if (!fastset || !pipe_config->update_lrr) { \PIPE_CONF_CHECK_I (name.crtc_vtotal); \PIPE_CONF_CHECK_I (name.crtc_vblank_end); \ +PIPE_CONF_CHECK_I (name.crtc_vsync_start); \ +PIPE_CONF_CHECK_I (name.crtc_vsync_end); \ } \ }while (0 )
Signature · 1 line
2.44.0.rc1.240.g4c46232300-goog
Patchwork
CI✗ Fi.CI.BAT: failure for drm/i915: Allow for Vsync_start and Vsync_end to change in LRR
== Series Details ==
== Series Details ==
Series: drm/i915: Allow for Vsync_start and Vsync_end to change in LRR
URL : https://patchwork.freedesktop.org/series/130415/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_14345 -> Patchwork_130415v1
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_130415v1 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes
introduced in Patchwork_130415v1, please notify your bug team ([email protected]) 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_130415v1/index.html
Participating hosts (39 -> 39)
------------------------------
Additional (1): bat-kbl-2
Missing (1): fi-snb-2520m
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_130415v1:
### IGT changes ###
#### Possible regressions ####
* igt@i915_selftest@live@hugepages:
- fi-pnv-d510: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14345/fi-pnv-d510/igt@i915_selftest@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130415v1/fi-pnv-d510/igt@i915_selftest@[email protected]
Known issues
------------
Here are the changes found in Patchwork_130415v1 that come from known issues:
### CI changes ###
#### Issues hit ####
* boot:
- fi-bsw-n3050: [PASS][3] -> [FAIL][4] ([i915#8293])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14345/fi-bsw-n3050/boot.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130415v1/fi-bsw-n3050/boot.html
### IGT changes ###
#### Issues hit ####
* igt@fbdev@info:
- bat-kbl-2: NOTRUN -> [SKIP][5] ([fdo#109271] / [i915#1849])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130415v1/bat-kbl-2/igt@[email protected]
* igt@gem_exec_fence@basic-busy@ccs0:
- bat-arls-1: [PASS][6] -> [DMESG-WARN][7] ([i915#10194])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14345/bat-arls-1/igt@gem_exec_fence@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130415v1/bat-arls-1/igt@gem_exec_fence@[email protected]
* igt@gem_lmem_swapping@parallel-random-engines:
- bat-kbl-2: NOTRUN -> [SKIP][8] ([fdo#109271]) +39 other tests skip
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130415v1/bat-kbl-2/igt@[email protected]
#### Possible fixes ####
* igt@gem_exec_create@basic@smem:
- bat-arls-1: [DMESG-WARN][9] ([i915#10194]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14345/bat-arls-1/igt@gem_exec_create@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130415v1/bat-arls-1/igt@gem_exec_create@[email protected]
* igt@i915_selftest@live@gem_contexts:
- bat-atsm-1: [INCOMPLETE][11] ([i915#10094] / [i915#10137]) -> [PASS][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14345/bat-atsm-1/igt@i915_selftest@live@gem_contexts.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130415v1/bat-atsm-1/igt@i915_selftest@live@gem_contexts.html
#### Warnings ####
* igt@i915_selftest@live@memory_region:
- bat-arls-2: [DMESG-WARN][13] ([i915#10194]) -> [INCOMPLETE][14] ([i915#10268])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14345/bat-arls-2/igt@i915_selftest@live@memory_region.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130415v1/bat-arls-2/igt@i915_selftest@live@memory_region.html
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[i915#10094]: https://gitlab.freedesktop.org/drm/intel/issues/10094
[i915#10137]: https://gitlab.freedesktop.org/drm/intel/issues/10137
[i915#10194]: https://gitlab.freedesktop.org/drm/intel/issues/10194
[i915#10268]: https://gitlab.freedesktop.org/drm/intel/issues/10268
[i915#1849]: https://gitlab.freedesktop.org/drm/intel/issues/1849
[i915#8293]: https://gitlab.freedesktop.org/drm/intel/issues/8293
Build changes
-------------
* Linux: CI_DRM_14345 -> Patchwork_130415v1
CI-20190529: 20190529
CI_DRM_14345: b3552bf1e79de200a6ca49c518ead46a1256618c @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7731: 17f897a81868fb35c6a7033a8b07256659742248 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_130415v1: b3552bf1e79de200a6ca49c518ead46a1256618c @ git://anongit.freedesktop.org/gfx-ci/linux
### Linux commits
c4e5b80919b8 drm/i915: Allow for Vsync_start and Vsync_end to change in LRR
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_130415v1/index.html
Hi Ville,
Could you take a peek at this patch, as per our offline discussions, Even if VRR does not look at the Vsync start and Vsync end, we need to write to those registers to keep the state checker happy.
Regards
Manasi
Quoted 53 lines · Manasi Navare
Since LRR mode requires panel to support VRR, any of the LRR mode is achieved by stretching vertical front porch which also pushes out
Vsync_startandVsync_endtimings of the mode.
This allows for VSS and VSE timings to be different in case of LRR to ensure semaless modeset/fastset to LRR mode.In case of VRR capable panel, it technically ignores the VSYNC because we set
Ignore_MSAbit for sink but reprogram theTRANS_VSYNCto keep the state checker happy in case of LRR.Cc Ville Syrjälä <[email protected]>Cc Sean Paul <[email protected]>Signed-off-by Manasi Navare <[email protected]>--- drivers/gpu/drm/i915/display/intel_display.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/display/intel_display.c +9
-3@@ -2685,6 +2685,13 @@ static void intel_set_transcoder_timings_lrr(const struct intel_crtc_state *crtcintel_de_write (dev_priv,TRANS_VBLANK (cpu_transcoder),VBLANK_START (crtc_vblank_start -1 ) |VBLANK_END (crtc_vblank_end -1 )); +/* +* HW ignores TRANS_VSYNC in VRR on DP because we set Ignore MSA bit. +* But let's write this to keepthe state checker happy. +*/ +intel_de_write (dev_priv,TRANS_VSYNC (cpu_transcoder), +VSYNC_START (adjusted_mode->crtc_vsync_start -1 ) | +VSYNC_END (adjusted_mode->crtc_vsync_end -1 ));/* * The double buffer latch point for TRANS_VTOTAL * is the transcoder's undelayed vblank. @@ -5043,11 +5050,11 @@ intel_pipe_config_compare(const struct intel_crtc_state *current_config,PIPE_CONF_CHECK_I (name.crtc_hsync_end); \PIPE_CONF_CHECK_I (name.crtc_vdisplay); \PIPE_CONF_CHECK_I (name.crtc_vblank_start); \ -PIPE_CONF_CHECK_I (name.crtc_vsync_start); \ -PIPE_CONF_CHECK_I (name.crtc_vsync_end); \if (!fastset || !pipe_config->update_lrr) { \PIPE_CONF_CHECK_I (name.crtc_vtotal); \PIPE_CONF_CHECK_I (name.crtc_vblank_end); \ +PIPE_CONF_CHECK_I (name.crtc_vsync_start); \ +PIPE_CONF_CHECK_I (name.crtc_vsync_end); \ } \ }while (0 ) --2.44.0.rc1.240.g4c46232300-goog