drm/i915/psr: Use continuous full frame update instead of single
Subsystems (3)
PATCH 1/1 drm/i915/psr: Use continuous full frame update instead of single
Currently we are observing occasionally display flickering or complete freeze. This is narrowed down to be caused by single full frame update (SFF).
SFF bit after it's written gets cleared by HW in subsequent vblank i.e. when the update is sent to the panel. SFF bit is required to be written together with partial frame update (PFU) bit. After the bit gets cleared by the HW psr2 man trk ctl register still contains PFU bit. If there is subsequent update for any reason we will end up having selective update/fetch configuration where start line is 0 and end line is 0. Also selective fetch configuration for the planes is not properly performed. This seems to be causing problems with some panels.
Fix this by using continuous full frame update instead and switch to partial frame update only when selective update area is properly calculated and configured.
This is also workaround for HSD 14014971508
--- drivers/gpu/drm/i915/display/intel_psr.c | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-)
drivers/gpu/drm/i915/display/intel_psr.c +2 -19
@@ -1480,13 +1480,6 @@ static u32 man_trk_ctl_enable_bit_get(struct drm_i915_private *dev_priv)PSR2_MAN_TRK_CTL_ENABLE ; } -static u32 man_trk_ctl_single_full_frame_bit_get (struct drm_i915_private *dev_priv) -{ -return IS_ALDERLAKE_P (dev_priv) ||DISPLAY_VER (dev_priv) >=14 ? -ADLP_PSR2_MAN_TRK_CTL_SF_SINGLE_FULL_FRAME : -PSR2_MAN_TRK_CTL_SF_SINGLE_FULL_FRAME ; -} -static u32 man_trk_ctl_partial_frame_bit_get (struct drm_i915_private *dev_priv) { return IS_ALDERLAKE_P(dev_priv) || DISPLAY_VER(dev_priv) >= 14 ?
@@ -1510,7 +1503,7 @@ static void psr_force_hw_tracking_exit(struct intel_dp *intel_dp)PSR2_MAN_TRK_CTL (intel_dp->psr.transcoder),man_trk_ctl_enable_bit_get (dev_priv) |man_trk_ctl_partial_frame_bit_get (dev_priv) | - man_trk_ctl_single_full_frame_bit_get(dev_priv)); + man_trk_ctl_continuos_full_frame(dev_priv));/* * Display WA #0884: skl+
@@ -1624,11 +1617,7 @@ static void psr2_man_trk_ctl_calc(struct intel_crtc_state *crtc_state, val |=man_trk_ctl_partial_frame_bit_get (dev_priv);if (full_update) { -/* -* Not applying Wa_14014971508:adlp as we do not support the -* feature that requires this workaround. -*/ - val |=man_trk_ctl_single_full_frame_bit_get (dev_priv); + val |=man_trk_ctl_continuos_full_frame (dev_priv); goto exit; }
@@ -2306,16 +2295,10 @@ static void _psr_flush_handle(struct intel_dp *intel_dp)if (intel_dp->psr.psr2_sel_fetch_cff_enabled) {/* can we turn CFF off? */ if (intel_dp->psr.busy_frontbuffer_bits ==0 ) { -u32 val =man_trk_ctl_enable_bit_get (dev_priv) | -man_trk_ctl_partial_frame_bit_get (dev_priv) | -man_trk_ctl_single_full_frame_bit_get (dev_priv); -/* * turn continuous full frame off and do a single * full frame */ -intel_de_write (dev_priv,PSR2_MAN_TRK_CTL (intel_dp->psr.transcoder), - val);intel_de_write (dev_priv,CURSURFLIVE (intel_dp->psr.pipe),0 ); intel_dp->psr.psr2_sel_fetch_cff_enabled = false; }
Signature · 1 line
2.34.1
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/psr: Use continuous full frame update instead of single
== Series Details ==
== Series Details ==
Series: drm/i915/psr: Use continuous full frame update instead of single
URL : https://patchwork.freedesktop.org/series/111350/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_12434 -> Patchwork_111350v1
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_111350v1/index.html
Participating hosts (36 -> 37)
------------------------------
Additional (3): fi-bdw-gvtdvm fi-cfl-guc bat-dg1-6
Missing (2): fi-ctg-p8600 bat-adlp-4
Known issues
------------
Here are the changes found in Patchwork_111350v1 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_lmem_swapping@verify-random:
- fi-cfl-guc: NOTRUN -> [SKIP][1] ([fdo#109271] / [i915#4613]) +3 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_111350v1/fi-cfl-guc/igt@[email protected]
* igt@gem_mmap@basic:
- bat-dg1-6: NOTRUN -> [SKIP][2] ([i915#4083])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_111350v1/bat-dg1-6/igt@[email protected]
* igt@gem_render_tiled_blits@basic:
- bat-dg1-6: NOTRUN -> [SKIP][3] ([i915#4079]) +1 similar issue
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_111350v1/bat-dg1-6/igt@[email protected]
* igt@gem_tiled_fence_blits@basic:
- bat-dg1-6: NOTRUN -> [SKIP][4] ([i915#4077]) +2 similar issues
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_111350v1/bat-dg1-6/igt@[email protected]
* igt@i915_pm_backlight@basic-brightness:
- bat-dg1-6: NOTRUN -> [SKIP][5] ([i915#7561])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_111350v1/bat-dg1-6/igt@[email protected]
* igt@i915_pm_rps@basic-api:
- bat-dg1-6: NOTRUN -> [SKIP][6] ([i915#6621])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_111350v1/bat-dg1-6/igt@[email protected]
* igt@i915_suspend@basic-s2idle-without-i915:
- fi-bdw-gvtdvm: NOTRUN -> [INCOMPLETE][7] ([i915#146])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_111350v1/fi-bdw-gvtdvm/igt@[email protected]
* igt@i915_suspend@basic-s3-without-i915:
- fi-rkl-11600: [PASS][8] -> [INCOMPLETE][9] ([i915#4817])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12434/fi-rkl-11600/igt@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_111350v1/fi-rkl-11600/igt@[email protected]
* igt@kms_addfb_basic@basic-y-tiled-legacy:
- bat-dg1-6: NOTRUN -> [SKIP][10] ([i915#4215])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_111350v1/bat-dg1-6/igt@[email protected]
* igt@kms_addfb_basic@tile-pitch-mismatch:
- bat-dg1-6: NOTRUN -> [SKIP][11] ([i915#4212]) +7 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_111350v1/bat-dg1-6/igt@[email protected]
* igt@kms_chamelium@dp-crc-fast:
- fi-cfl-guc: NOTRUN -> [SKIP][12] ([fdo#109271] / [fdo#111827]) +8 similar issues
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_111350v1/fi-cfl-guc/igt@[email protected]
* igt@kms_chamelium@hdmi-crc-fast:
- bat-dg1-6: NOTRUN -> [SKIP][13] ([fdo#111827]) +8 similar issues
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_111350v1/bat-dg1-6/igt@[email protected]
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-bdw-gvtdvm: NOTRUN -> [SKIP][14] ([fdo#109271] / [fdo#111827]) +7 similar issues
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_111350v1/fi-bdw-gvtdvm/igt@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor:
- bat-dg1-6: NOTRUN -> [SKIP][15] ([i915#4103] / [i915#4213])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_111350v1/bat-dg1-6/igt@[email protected]
* igt@kms_flip@basic-plain-flip:
- fi-bdw-gvtdvm: NOTRUN -> [SKIP][16] ([fdo#109271]) +38 similar issues
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_111350v1/fi-bdw-gvtdvm/igt@[email protected]
* igt@kms_force_connector_basic@force-load-detect:
- bat-dg1-6: NOTRUN -> [SKIP][17] ([fdo#109285])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_111350v1/bat-dg1-6/igt@[email protected]
* igt@kms_psr@sprite_plane_onoff:
- bat-dg1-6: NOTRUN -> [SKIP][18] ([i915#1072] / [i915#4078]) +3 similar issues
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_111350v1/bat-dg1-6/igt@kms_psr@sprite_plane_onoff.html
* igt@kms_setmode@basic-clone-single-crtc:
- bat-dg1-6: NOTRUN -> [SKIP][19] ([i915#3555])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_111350v1/bat-dg1-6/igt@[email protected]
* igt@prime_vgem@basic-gtt:
- bat-dg1-6: NOTRUN -> [SKIP][20] ([i915#3708] / [i915#4077]) +1 similar issue
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_111350v1/bat-dg1-6/igt@[email protected]
* igt@prime_vgem@basic-read:
- bat-dg1-6: NOTRUN -> [SKIP][21] ([i915#3708]) +3 similar issues
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_111350v1/bat-dg1-6/igt@[email protected]
* igt@prime_vgem@basic-userptr:
- fi-cfl-guc: NOTRUN -> [SKIP][22] ([fdo#109271]) +9 similar issues
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_111350v1/fi-cfl-guc/igt@[email protected]
- bat-dg1-6: NOTRUN -> [SKIP][23] ([i915#3708] / [i915#4873])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_111350v1/bat-dg1-6/igt@[email protected]
#### Possible fixes ####
* igt@gem_exec_gttfill@basic:
- fi-pnv-d510: [FAIL][24] ([i915#7229]) -> [PASS][25]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12434/fi-pnv-d510/igt@[email protected]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_111350v1/fi-pnv-d510/igt@[email protected]
* igt@gem_exec_suspend@basic-s0@smem:
- {bat-rplp-1}: [DMESG-WARN][26] ([i915#2867]) -> [PASS][27]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12434/bat-rplp-1/igt@gem_exec_suspend@[email protected]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_111350v1/bat-rplp-1/igt@gem_exec_suspend@[email protected]
- {fi-ehl-2}: [DMESG-WARN][28] ([i915#5122]) -> [PASS][29]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12434/fi-ehl-2/igt@gem_exec_suspend@[email protected]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_111350v1/fi-ehl-2/igt@gem_exec_suspend@[email protected]
* igt@i915_selftest@live@gt_pm:
- {bat-adln-1}: [DMESG-FAIL][30] ([i915#4258]) -> [PASS][31]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12434/bat-adln-1/igt@i915_selftest@live@gt_pm.html
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_111350v1/bat-adln-1/igt@i915_selftest@live@gt_pm.html
* igt@i915_selftest@live@requests:
- {bat-rpls-1}: [INCOMPLETE][32] ([i915#4983] / [i915#6257]) -> [PASS][33]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12434/bat-rpls-1/igt@i915_selftest@[email protected]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_111350v1/bat-rpls-1/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@slpc:
- {bat-adln-1}: [DMESG-FAIL][34] ([i915#6997]) -> [PASS][35]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12434/bat-adln-1/igt@i915_selftest@[email protected]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_111350v1/bat-adln-1/igt@i915_selftest@[email protected]
{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
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#146]: https://gitlab.freedesktop.org/drm/intel/issues/146
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#2867]: https://gitlab.freedesktop.org/drm/intel/issues/2867
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077
[i915#4078]: https://gitlab.freedesktop.org/drm/intel/issues/4078
[i915#4079]: https://gitlab.freedesktop.org/drm/intel/issues/4079
[i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4212]: https://gitlab.freedesktop.org/drm/intel/issues/4212
[i915#4213]: https://gitlab.freedesktop.org/drm/intel/issues/4213
[i915#4215]: https://gitlab.freedesktop.org/drm/intel/issues/4215
[i915#4258]: https://gitlab.freedesktop.org/drm/intel/issues/4258
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4817]: https://gitlab.freedesktop.org/drm/intel/issues/4817
[i915#4873]: https://gitlab.freedesktop.org/drm/intel/issues/4873
[i915#4983]: https://gitlab.freedesktop.org/drm/intel/issues/4983
[i915#5122]: https://gitlab.freedesktop.org/drm/intel/issues/5122
[i915#6257]: https://gitlab.freedesktop.org/drm/intel/issues/6257
[i915#6434]: https://gitlab.freedesktop.org/drm/intel/issues/6434
[i915#6621]: https://gitlab.freedesktop.org/drm/intel/issues/6621
[i915#6997]: https://gitlab.freedesktop.org/drm/intel/issues/6997
[i915#7229]: https://gitlab.freedesktop.org/drm/intel/issues/7229
[i915#7346]: https://gitlab.freedesktop.org/drm/intel/issues/7346
[i915#7561]: https://gitlab.freedesktop.org/drm/intel/issues/7561
Build changes
-------------
* Linux: CI_DRM_12434 -> Patchwork_111350v1
CI-20190529: 20190529
CI_DRM_12434: 985931f189852e505af573997ddbf63bfbe2570b @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7072: 69ba7163475925cdc69aebbdfa0e87453ae165c7 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_111350v1: 985931f189852e505af573997ddbf63bfbe2570b @ git://anongit.freedesktop.org/gfx-ci/linux
### Linux commits
4fb4f2801298 drm/i915/psr: Use continuous full frame update instead of single
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_111350v1/index.html
I found issue with this patch:
There is a time window between psr_invalidate/flush and next vblank where atomic commit with selective update will cause full frame update being lost due to overwriting the configuration.
I will send a new version.
Quoted 112 lines · Jouni Högander
Currently we are observing occasionally display flickering or complete
freeze. This is narrowed down to be caused by single full frame update
(SFF).SFF bit after it's written gets cleared by HW in subsequent vblank i.e. when the update is sent to the panel. SFF bit is required to be written together with partial frame update (PFU) bit. After the bit gets cleared by the HW psr2 man trk ctl register still contains PFU bit. If there is subsequent update for any reason we will end up having selective update/fetch configuration where start line is 0 and end line is 0. Also selective fetch configuration for the planes is not properly performed. This seems to be causing problems with some panels.
Fix this by using continuous full frame update instead and switch to partial frame update only when selective update area is properly calculated and configured.
This is also workaround for HSD 14014971508
Cc Ville Syrjälä <[email protected]>Cc José Roberto de Souza <[email protected]>Cc Mika Kahola <[email protected]>Reported-by Lee Shawn C <[email protected]>Signed-off-by Jouni Högander <[email protected]>---
drivers/gpu/drm/i915/display/intel_psr.c | 21 ++-------------------1 file changed, 2 insertions(+), 19 deletions(-)drivers/gpu/drm/i915/display/intel_psr.c +0
-0@@ -1480,13 +1480,6 @@ static u32 man_trk_ctl_enable_bit_get(struct drm_i915_private *dev_priv) PSR2_MAN_TRK_CTL_ENABLE; }
-static u32man_trk_ctl_single_full_frame_bit_get(struct drm_i915_private *dev_priv)
-{
- returnIS_ALDERLAKE_P(dev_priv)||DISPLAY_VER(dev_priv)>= 14 ?
-ADLP_PSR2_MAN_TRK_CTL_SF_SINGLE_FULL_FRAME:
-PSR2_MAN_TRK_CTL_SF_SINGLE_FULL_FRAME;drivers/gpu/drm/i915/display/intel_psr.c +0
-2-} -static u32
man_trk_ctl_partial_frame_bit_get(struct drm_i915_private *dev_priv)
{
returnIS_ALDERLAKE_P(dev_priv)||DISPLAY_VER(dev_priv)>= 14 ?drivers/gpu/drm/i915/display/intel_psr.c +0
-0@@ -1510,7 +1503,7 @@ static void psr_force_hw_tracking_exit(struct intel_dp *intel_dp)PSR2_MAN_TRK_CTL(intel_dp-
Quoted 1 line
psr.transcoder),
man_trk_ctl_enable_bit_get(dev_priv)|man_trk_ctl_partial_frame_bit_get(dev_priv)|
-man_trk_ctl_single_full_frame_bit_get(dev_priv));
+man_trk_ctl_continuos_full_frame(dev_priv));
/*
* Display WA #0884: skl+drivers/gpu/drm/i915/display/intel_psr.c +0
-0@@ -1624,11 +1617,7 @@ static void psr2_man_trk_ctl_calc(structintel_crtc_state *crtc_state, val |= man_trk_ctl_partial_frame_bit_get(dev_priv);
if (full_update) {
- /*
- * Not applying Wa_14014971508:adlp as we do not support the
- * feature that requires this workaround. - */
- val |=man_trk_ctl_single_full_frame_bit_get(dev_priv);
+ val |=man_trk_ctl_continuos_full_frame(dev_priv); goto exit;
}drivers/gpu/drm/i915/display/intel_psr.c +0
-1@@ -2306,16 +2295,10 @@ static void _psr_flush_handle(struct intel_dp *intel_dp) if (intel_dp->psr.psr2_sel_fetch_cff_enabled) { /* can we turn CFF off? */ if (intel_dp->psr.busy_frontbuffer_bits == 0) { - u32 val =
man_trk_ctl_enable_bit_get(dev_priv)|
-man_trk_ctl_partial_frame_bit_get(dev_priv)|
-man_trk_ctl_single_full_frame_bit_get(dev_priv);
-
/*
* turn continuous full frame off and do a single
* full frame
*/
- intel_de_write(dev_priv,PSR2_MAN_TRK_CTL(intel_dp->psr.transcoder),
- val);intel_de_write(dev_priv, CURSURFLIVE(intel_dp->psr.pipe), 0);
intel_dp-Quoted 1 line
psr.psr2_sel_fetch_cff_enabled = false;
}