drm/i915/psr: Disable psr1 if setup_time > vblank
Subsystems (3)
PATCH v2 1/1 drm/i915/psr: Disable psr1 if setup_time > vblank
Issue is seen when PSR enabled with setup frames and when try to disable PSR at SRDONACK State (0x1). PSR FSM is stuck at SRDONACK(0x1) for more than 5 seconds. Issue not seen with Setup frames disabled. Currently disable psr1 if setuptime > vblank to workaround the above issue.
HSD: 16024594674
WA: 18037818876
v1: Initial version
v2: Add debug log and some cosmetic changes. [Jouni, Jani, Nemesa]
--- drivers/gpu/drm/i915/display/intel_psr.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
drivers/gpu/drm/i915/display/intel_psr.c +16 -0
@@ -1640,6 +1640,15 @@ _panel_replay_compute_config(struct intel_dp *intel_dp,return true; } +static bool intel_psr_needs_wa_18037818876 (struct intel_dp *intel_dp, +struct intel_crtc_state *crtc_state) +{ +struct intel_display *display =to_intel_display (intel_dp); + +return (DISPLAY_VER (display) ==20 && intel_dp->psr.entry_setup_frames >0 && + !crtc_state->has_sel_update); +} +void intel_psr_compute_config (struct intel_dp *intel_dp,struct intel_crtc_state *crtc_state,struct drm_connector_state *conn_state)
@@ -1686,6 +1695,13 @@ void intel_psr_compute_config(struct intel_dp *intel_dp,return ; crtc_state->has_sel_update =intel_sel_update_config_valid (intel_dp, crtc_state); + +/* Wa_18037818876 */ +if (intel_psr_needs_wa_18037818876 (intel_dp, crtc_state)) { + crtc_state->has_psr = false; +drm_dbg_kms (display->drm, +"PSR disabled to workaround PSR FSM hang issue\n" ); + } } void intel_psr_get_config(struct intel_encoder *encoder,
Signature · 1 line
2.29.0
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915/psr: Disable psr1 if setup_time > vblank (rev2)
== Series Details ==
== Series Details ==
Series: drm/i915/psr: Disable psr1 if setup_time > vblank (rev2)
URL : https://patchwork.freedesktop.org/series/140623/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_15634 -> Patchwork_140623v2
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140623v2/index.html
Participating hosts (44 -> 45)
------------------------------
Additional (2): fi-skl-6600u fi-kbl-8809g
Missing (1): fi-snb-2520m
Known issues
------------
Here are the changes found in Patchwork_140623v2 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_huc_copy@huc-copy:
- fi-kbl-8809g: NOTRUN -> [SKIP][1] ([i915#2190])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140623v2/fi-kbl-8809g/igt@[email protected]
- fi-skl-6600u: NOTRUN -> [SKIP][2] ([i915#2190])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140623v2/fi-skl-6600u/igt@[email protected]
* igt@gem_lmem_swapping@parallel-random-engines:
- fi-kbl-8809g: NOTRUN -> [SKIP][3] ([i915#4613]) +3 other tests skip
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140623v2/fi-kbl-8809g/igt@[email protected]
* igt@gem_lmem_swapping@random-engines:
- fi-skl-6600u: NOTRUN -> [SKIP][4] ([i915#4613]) +3 other tests skip
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140623v2/fi-skl-6600u/igt@[email protected]
* igt@i915_selftest@live:
- bat-mtlp-8: [PASS][5] -> [ABORT][6] ([i915#12061] / [i915#12133])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15634/bat-mtlp-8/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140623v2/bat-mtlp-8/igt@[email protected]
- bat-mtlp-6: [PASS][7] -> [ABORT][8] ([i915#12061] / [i915#12133])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15634/bat-mtlp-6/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140623v2/bat-mtlp-6/igt@[email protected]
* igt@i915_selftest@live@workarounds:
- bat-mtlp-6: [PASS][9] -> [ABORT][10] ([i915#12061])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15634/bat-mtlp-6/igt@i915_selftest@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140623v2/bat-mtlp-6/igt@i915_selftest@[email protected]
- bat-mtlp-8: [PASS][11] -> [ABORT][12] ([i915#12061])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15634/bat-mtlp-8/igt@i915_selftest@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140623v2/bat-mtlp-8/igt@i915_selftest@[email protected]
* igt@kms_dsc@dsc-basic:
- fi-kbl-8809g: NOTRUN -> [SKIP][13] +30 other tests skip
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140623v2/fi-kbl-8809g/igt@[email protected]
- fi-skl-6600u: NOTRUN -> [SKIP][14] +9 other tests skip
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140623v2/fi-skl-6600u/igt@[email protected]
#### Possible fixes ####
* igt@i915_selftest@live:
- bat-arlh-3: [ABORT][15] ([i915#12133]) -> [PASS][16]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15634/bat-arlh-3/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140623v2/bat-arlh-3/igt@[email protected]
* igt@i915_selftest@live@workarounds:
- bat-arlh-3: [ABORT][17] ([i915#12061]) -> [PASS][18]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15634/bat-arlh-3/igt@i915_selftest@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140623v2/bat-arlh-3/igt@i915_selftest@[email protected]
[i915#12061]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12061
[i915#12133]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12133
[i915#2190]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2190
[i915#4613]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4613
Build changes
-------------
* Linux: CI_DRM_15634 -> Patchwork_140623v2
CI-20190529: 20190529
CI_DRM_15634: 913062707a924df0837c0d9eb9745ba52fd92958 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_8097: 2e7c8e4b88a50e33e10d6c13286818aa833bef9b @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_140623v2: 913062707a924df0837c0d9eb9745ba52fd92958 @ git://anongit.freedesktop.org/gfx-ci/linux
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140623v2/index.html
Quoted 7 lines · Animesh Manna
Issue is seen when PSR enabled with setup frames and when try to disable
PSR at SRDONACK State (0x1). PSR FSM is stuck at SRDONACK(0x1) for more
than 5 seconds. Issue not seen with Setup frames disabled. Currently disable psr1 if setuptime > vblank to workaround the above issue.
Quoted 7 lines
HSD: 16024594674
WA: 18037818876v1: Initial version
v2: Add debug log and some cosmetic changes. [Jouni, Jani, Nemesa]Signed-off-by Animesh Manna <[email protected]>
Quoted 46 lines
---
drivers/gpu/drm/i915/display/intel_psr.c | 16 ++++++++++++++++1 file changed, 16 insertions(+)drivers/gpu/drm/i915/display/intel_psr.c +0
-0@@ -1640,6 +1640,15 @@ _panel_replay_compute_config(struct intel_dp *intel_dp, return true; }
+static bool intel_psr_needs_wa_18037818876(structintel_dp*intel_dp,
+ structintel_crtc_state*crtc_state)drivers/gpu/drm/i915/display/intel_psr.c +4
-0+{ + struct intel_display *display = to_intel_display(intel_dp); + + return (DISPLAY_VER(display) == 20 && intel_dp-Quoted 1 line
psr.entry_setup_frames > 0 &&
+ !crtc_state->has_sel_update);
drivers/gpu/drm/i915/display/intel_psr.c +2
-0+} +void intel_psr_compute_config(struct
intel_dp*intel_dp, structintel_crtc_state*crtc_state, structdrm_connector_state*conn_state)drivers/gpu/drm/i915/display/intel_psr.c +0
-0@@ -1686,6 +1695,13 @@ void intel_psr_compute_config(struct intel_dp *intel_dp, return;
crtc_state->has_sel_update =intel_sel_update_config_valid(intel_dp, crtc_state);
+
+ /*Wa_18037818876*/
+ if (intel_psr_needs_wa_18037818876(intel_dp, crtc_state)) { + crtc_state->has_psr = false;
+ drm_dbg_kms(display->drm,
+ "PSR disabled to workaround PSR FSM hang issue\n");
+ }
}
void intel_psr_get_config(structintel_encoder*encoder,
Quoted 21 lines
-----Original Message-----
From: Hogander, Jouni <[email protected]>
Sent: Thursday, November 14, 2024 3:11 PM
To: Manna, Animesh <[email protected]>; intel- [email protected]
Cc: Nikula, Jani <[email protected]>; Garg, Nemesa <[email protected]>
Subject: Re: [PATCH v2] drm/i915/psr: Disable psr1 ifsetup_time> vblankQuoted 9 lines · Animesh Manna
Issue is seen when PSR enabled with setup frames and when try to disable PSR at SRDONACK State (
0x1). PSR FSM is stuck at SRDONACK(0x1) for more than 5 seconds. Issue not seen with Setup frames disabled. Currently disable psr1 if setuptime > vblank to workaround the above issue.HSD: 16024594674
WA: 18037818876
Quoted 6 lines
Quoted 4 lines
v1: Initial version
v2: Add debug log and some cosmetic changes. [Jouni, Jani, Nemesa]Signed-off-by Animesh Manna <[email protected]>Reviewed-by Jouni Högander <[email protected]>
Thank you Jouni for review, the change is pushed to din.
Regards,
Animesh
Quoted 46 lines
Quoted 46 lines
---
drivers/gpu/drm/i915/display/intel_psr.c | 16 ++++++++++++++++1 file changed, 16 insertions(+)drivers/gpu/drm/i915/display/intel_psr.c +6
-0@@ -1640,6 +1640,15 @@ _panel_replay_compute_config(struct intel_dp *intel_dp, return true; } +static bool intel_psr_needs_wa_18037818876(struct intel_dp *intel_dp, + struct intel_crtc_state *crtc_state) +{ + struct intel_display *display = to_intel_display(intel_dp); + + return (DISPLAY_VER(display) == 20 && intel_dp-Quoted 1 line
psr.entry_setup_frames > 0 &&
+ !crtc_state->has_sel_update); }
+
void intel_psr_compute_config(structintel_dp*intel_dp, structintel_crtc_state*crtc_state, structdrm_connector_state*conn_state)drivers/gpu/drm/i915/display/intel_psr.c +0
-0@@ -1686,6 +1695,13 @@ void intel_psr_compute_config(struct intel_dp *intel_dp, return;crtc_state->has_sel_update =
intel_sel_update_config_valid(intel_dp, crtc_state);
+
+ /*Wa_18037818876*/
+ if (intel_psr_needs_wa_18037818876(intel_dp, crtc_state)) { + crtc_state->has_psr = false;
+ drm_dbg_kms(display->drm,
+ "PSR disabled to workaround PSR FSM hang issue\n");
+ }
}void intel_psr_get_config(struct
intel_encoder*encoder,