* [PATCH] drm/i915/display: Leave the PSR frame change to the joiner primary
@ 2026-11-27 16:02 Mika Kahola
2026-11-27 16:21 ` sashiko-bot
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Mika Kahola @ 2026-11-27 16:02 UTC (permalink / raw)
To: intel-gfx, intel-xe; +Cc: jouni.hogander, Mika Kahola
With PSR2 on joined pipes the secondary's DSB also sends the trans push
and polls the PSR2 status of the primary's transcoder. The poll gets no
response and the DSB times out:
[CRTC:354:pipe B] DSB 0 response timeout
[CRTC:354:pipe B] DSB 0 timed out waiting for idle (current head=0x140, head=0x0, tail=0x180)
Both are per transcoder and the primary already does them. Skip them
on the secondary when the primary is in the same commit.
Signed-off-by: Mika Kahola <mika.kahola@intel.com>
---
drivers/gpu/drm/i915/display/intel_display.c | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
index 19caae633d29..f9d0a5972feb 100644
--- a/drivers/gpu/drm/i915/display/intel_display.c
+++ b/drivers/gpu/drm/i915/display/intel_display.c
@@ -7649,6 +7649,11 @@ static void intel_atomic_dsb_finish(struct intel_atomic_state *state,
if (new_crtc_state->commit_type == INTEL_COMMIT_DSB &&
!intel_color_uses_chained_dsb(new_crtc_state)) {
+ struct intel_crtc *primary_crtc = intel_primary_crtc(new_crtc_state);
+ /* One transcoder: the joiner primary pushes and waits for PSR */
+ bool via_primary = primary_crtc != crtc &&
+ intel_atomic_get_new_crtc_state(state, primary_crtc);
+
/*
* Dsb wait vblank may or may not skip. Let's remove it for PSR
* trans push case to ensure we are not waiting two vblanks
@@ -7656,7 +7661,8 @@ static void intel_atomic_dsb_finish(struct intel_atomic_state *state,
if (!intel_psr_use_trans_push(new_crtc_state))
intel_dsb_wait_vblanks(new_crtc_state->dsb_commit, 1);
- intel_vrr_send_push(new_crtc_state->dsb_commit, new_crtc_state);
+ if (!via_primary)
+ intel_vrr_send_push(new_crtc_state->dsb_commit, new_crtc_state);
/*
* Wait for idle is needed for corner case where PSR HW
@@ -7665,8 +7671,9 @@ static void intel_atomic_dsb_finish(struct intel_atomic_state *state,
* here for both Frame Change mechanism (trans push
* and register write).
*/
- intel_psr_wait_for_idle_dsb(new_crtc_state->dsb_commit,
- new_crtc_state);
+ if (!via_primary)
+ intel_psr_wait_for_idle_dsb(new_crtc_state->dsb_commit,
+ new_crtc_state);
/*
* In case PSR uses trans push as a "frame change" event and
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] drm/i915/display: Leave the PSR frame change to the joiner primary
2026-11-27 16:02 [PATCH] drm/i915/display: Leave the PSR frame change to the joiner primary Mika Kahola
@ 2026-11-27 16:21 ` sashiko-bot
2026-11-27 17:18 ` Ville Syrjälä
2026-11-27 18:25 ` ✓ i915.CI.BAT: success for " Patchwork
2 siblings, 0 replies; 4+ messages in thread
From: sashiko-bot @ 2026-11-27 16:21 UTC (permalink / raw)
To: Mika Kahola, intel-gfx, intel-xe
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] drm/i915/display: unguarded intel_vrr_send_push() on joiner
secondary
--
commit 05528a5f86f8437e1527e9f06b9d3d7e6f314404
Author: Mika Kahola <mika.kahola@intel.com>
drm/i915/display: Leave the PSR frame change to the joiner primary
This commit skips intel_vrr_send_push() and intel_psr_wait_for_idle_dsb()
on a joiner secondary CRTC in intel_atomic_dsb_finish() when the joiner
primary CRTC is part of the same atomic commit.
> diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
> index 19caae633d29f..f9d0a5972feb4 100644
> --- a/drivers/gpu/drm/i915/display/intel_display.c
> +++ b/drivers/gpu/drm/i915/display/intel_display.c
> @@ -7649,6 +7649,11 @@ static void intel_atomic_dsb_finish(struct intel_atomic_state *state,
>
> if (new_crtc_state->commit_type == INTEL_COMMIT_DSB &&
> !intel_color_uses_chained_dsb(new_crtc_state)) {
> + struct intel_crtc *primary_crtc = intel_primary_crtc(new_crtc_state);
> + /* One transcoder: the joiner primary pushes and waits for PSR */
> + bool via_primary = primary_crtc != crtc &&
> + intel_atomic_get_new_crtc_state(state, primary_crtc);
> +
> /*
> * Dsb wait vblank may or may not skip. Let's remove it for PSR
> * trans push case to ensure we are not waiting two vblanks
> @@ -7656,7 +7661,8 @@ static void intel_atomic_dsb_finish(struct intel_atomic_state *state,
> if (!intel_psr_use_trans_push(new_crtc_state))
> intel_dsb_wait_vblanks(new_crtc_state->dsb_commit, 1);
>
> - intel_vrr_send_push(new_crtc_state->dsb_commit, new_crtc_state);
> + if (!via_primary)
> + intel_vrr_send_push(new_crtc_state->dsb_commit, new_crtc_state);
>
> /*
> * Wait for idle is needed for corner case where PSR HW
> @@ -7665,8 +7671,9 @@ static void intel_atomic_dsb_finish(struct intel_atomic_state *state,
> * here for both Frame Change mechanism (trans push
> * and register write).
> */
> - intel_psr_wait_for_idle_dsb(new_crtc_state->dsb_commit,
> - new_crtc_state);
> + if (!via_primary)
> + intel_psr_wait_for_idle_dsb(new_crtc_state->dsb_commit,
> + new_crtc_state);
[Severity: Medium]
Should intel_crtc_is_joiner_secondary() be checked directly inside
intel_vrr_send_push() and intel_psr_wait_for_idle_dsb() (similar to
intel_psr2_program_trans_man_trk_ctl())?
Guarding the calls only in this branch leaves two other commit paths
calling intel_vrr_send_push() on the joiner secondary:
1. When intel_color_uses_chained_dsb() is true (such as LUT updates on
DISPLAY_VER == 20), intel_color_prepare_commit() still calls
intel_vrr_send_push(crtc_state->dsb_color, crtc_state) on the
secondary's color DSB.
2. On INTEL_COMMIT_MMIO commits, skl_commit_modeset_enables() commits
pipes in reverse order, so intel_pipe_update_end() on the joiner
secondary calls intel_vrr_send_push(NULL, new_crtc_state) and
triggers the PSR frame change on the shared primary transcoder before
the primary CRTC has programmed PSR2_MAN_TRK_CTL or armed its planes.
Since intel_joiner_add_affected_crtcs() always adds all joined pipes to
the atomic state, bailing out on intel_crtc_is_joiner_secondary() inside
intel_vrr_send_push() and intel_psr_wait_for_idle_dsb() would cover all
commit paths.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261127160235.3208777-1-mika.kahola@intel.com?part=1
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] drm/i915/display: Leave the PSR frame change to the joiner primary
2026-11-27 16:02 [PATCH] drm/i915/display: Leave the PSR frame change to the joiner primary Mika Kahola
2026-11-27 16:21 ` sashiko-bot
@ 2026-11-27 17:18 ` Ville Syrjälä
2026-11-27 18:25 ` ✓ i915.CI.BAT: success for " Patchwork
2 siblings, 0 replies; 4+ messages in thread
From: Ville Syrjälä @ 2026-11-27 17:18 UTC (permalink / raw)
To: Mika Kahola; +Cc: intel-gfx, intel-xe, jouni.hogander
On Fri, Nov 27, 2026 at 04:02:35PM +0000, Mika Kahola wrote:
> With PSR2 on joined pipes the secondary's DSB also sends the trans push
> and polls the PSR2 status of the primary's transcoder. The poll gets no
> response and the DSB times out:
>
> [CRTC:354:pipe B] DSB 0 response timeout
> [CRTC:354:pipe B] DSB 0 timed out waiting for idle (current head=0x140, head=0x0, tail=0x180)
>
> Both are per transcoder and the primary already does them. Skip them
> on the secondary when the primary is in the same commit.
>
> Signed-off-by: Mika Kahola <mika.kahola@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_display.c | 13 ++++++++++---
> 1 file changed, 10 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
> index 19caae633d29..f9d0a5972feb 100644
> --- a/drivers/gpu/drm/i915/display/intel_display.c
> +++ b/drivers/gpu/drm/i915/display/intel_display.c
> @@ -7649,6 +7649,11 @@ static void intel_atomic_dsb_finish(struct intel_atomic_state *state,
>
> if (new_crtc_state->commit_type == INTEL_COMMIT_DSB &&
> !intel_color_uses_chained_dsb(new_crtc_state)) {
> + struct intel_crtc *primary_crtc = intel_primary_crtc(new_crtc_state);
> + /* One transcoder: the joiner primary pushes and waits for PSR */
> + bool via_primary = primary_crtc != crtc &&
> + intel_atomic_get_new_crtc_state(state, primary_crtc);
We have a real function somewhere to check if the crtc is the
primary or not. That should be all you need.
But we really need to rewrite all this joiner+psr stuff to do things
in a proper way. Right now all of this is just a hack that provides
no guarantees that things get committed in the right order or that
the push is the last thing we do.
> +
> /*
> * Dsb wait vblank may or may not skip. Let's remove it for PSR
> * trans push case to ensure we are not waiting two vblanks
> @@ -7656,7 +7661,8 @@ static void intel_atomic_dsb_finish(struct intel_atomic_state *state,
> if (!intel_psr_use_trans_push(new_crtc_state))
> intel_dsb_wait_vblanks(new_crtc_state->dsb_commit, 1);
>
> - intel_vrr_send_push(new_crtc_state->dsb_commit, new_crtc_state);
> + if (!via_primary)
> + intel_vrr_send_push(new_crtc_state->dsb_commit, new_crtc_state);
>
> /*
> * Wait for idle is needed for corner case where PSR HW
> @@ -7665,8 +7671,9 @@ static void intel_atomic_dsb_finish(struct intel_atomic_state *state,
> * here for both Frame Change mechanism (trans push
> * and register write).
> */
> - intel_psr_wait_for_idle_dsb(new_crtc_state->dsb_commit,
> - new_crtc_state);
> + if (!via_primary)
> + intel_psr_wait_for_idle_dsb(new_crtc_state->dsb_commit,
> + new_crtc_state);
>
> /*
> * In case PSR uses trans push as a "frame change" event and
> --
> 2.43.0
--
Ville Syrjälä
Intel
^ permalink raw reply [flat|nested] 4+ messages in thread* ✓ i915.CI.BAT: success for drm/i915/display: Leave the PSR frame change to the joiner primary
2026-11-27 16:02 [PATCH] drm/i915/display: Leave the PSR frame change to the joiner primary Mika Kahola
2026-11-27 16:21 ` sashiko-bot
2026-11-27 17:18 ` Ville Syrjälä
@ 2026-11-27 18:25 ` Patchwork
2 siblings, 0 replies; 4+ messages in thread
From: Patchwork @ 2026-11-27 18:25 UTC (permalink / raw)
To: Mika Kahola; +Cc: intel-gfx
[-- Attachment #1: Type: text/plain, Size: 5835 bytes --]
== Series Details ==
Series: drm/i915/display: Leave the PSR frame change to the joiner primary
URL : https://patchwork.freedesktop.org/series/179886/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_19625 -> Patchwork_179886v1
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_179886v1/index.html
Participating hosts (39 -> 39)
------------------------------
Additional (1): bat-adls-6
Missing (1): bat-dg2-13
Known issues
------------
Here are the changes found in Patchwork_179886v1 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_lmem_swapping@parallel-random-engines:
- bat-adls-6: NOTRUN -> [SKIP][1] ([i915#4613]) +3 other tests skip
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_179886v1/bat-adls-6/igt@gem_lmem_swapping@parallel-random-engines.html
* igt@gem_tiled_pread_basic@basic:
- bat-adls-6: NOTRUN -> [SKIP][2] ([i915#15656])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_179886v1/bat-adls-6/igt@gem_tiled_pread_basic@basic.html
* igt@intel_hwmon@hwmon-read:
- bat-adls-6: NOTRUN -> [SKIP][3] ([i915#7707]) +1 other test skip
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_179886v1/bat-adls-6/igt@intel_hwmon@hwmon-read.html
* igt@kms_addfb_basic@too-high:
- bat-apl-1: [PASS][4] -> [DMESG-WARN][5] ([i915#13735]) +38 other tests dmesg-warn
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_19625/bat-apl-1/igt@kms_addfb_basic@too-high.html
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_179886v1/bat-apl-1/igt@kms_addfb_basic@too-high.html
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy:
- bat-adls-6: NOTRUN -> [SKIP][6] ([i915#4103]) +1 other test skip
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_179886v1/bat-adls-6/igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy.html
* igt@kms_dsc@dsc-basic:
- bat-adls-6: NOTRUN -> [SKIP][7] ([i915#16361])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_179886v1/bat-adls-6/igt@kms_dsc@dsc-basic.html
* igt@kms_force_connector_basic@force-load-detect:
- bat-adls-6: NOTRUN -> [SKIP][8] ([i915#17452])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_179886v1/bat-adls-6/igt@kms_force_connector_basic@force-load-detect.html
* igt@kms_pipe_crc_basic@nonblocking-crc-frame-sequence@pipe-b-dp-1:
- bat-apl-1: [PASS][9] -> [DMESG-WARN][10] ([i915#13735] / [i915#180]) +44 other tests dmesg-warn
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_19625/bat-apl-1/igt@kms_pipe_crc_basic@nonblocking-crc-frame-sequence@pipe-b-dp-1.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_179886v1/bat-apl-1/igt@kms_pipe_crc_basic@nonblocking-crc-frame-sequence@pipe-b-dp-1.html
* igt@kms_pm_backlight@basic-brightness:
- bat-adls-6: NOTRUN -> [SKIP][11] ([i915#5354])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_179886v1/bat-adls-6/igt@kms_pm_backlight@basic-brightness.html
* igt@kms_psr@psr-primary-mmap-gtt:
- bat-adls-6: NOTRUN -> [SKIP][12] ([i915#1072] / [i915#9732]) +3 other tests skip
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_179886v1/bat-adls-6/igt@kms_psr@psr-primary-mmap-gtt.html
* igt@kms_setmode@basic-clone-single-crtc:
- bat-adls-6: NOTRUN -> [SKIP][13] ([i915#3555])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_179886v1/bat-adls-6/igt@kms_setmode@basic-clone-single-crtc.html
* igt@prime_vgem@basic-fence-read:
- bat-adls-6: NOTRUN -> [SKIP][14] ([i915#17448] / [i915#3291]) +2 other tests skip
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_179886v1/bat-adls-6/igt@prime_vgem@basic-fence-read.html
* igt@vgem_basic@unload:
- bat-rpls-4: [PASS][15] -> [DMESG-WARN][16] ([i915#13400])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_19625/bat-rpls-4/igt@vgem_basic@unload.html
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_179886v1/bat-rpls-4/igt@vgem_basic@unload.html
[i915#1072]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/1072
[i915#13400]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13400
[i915#13735]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13735
[i915#15656]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/15656
[i915#16361]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/16361
[i915#17448]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/17448
[i915#17452]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/17452
[i915#180]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/180
[i915#3291]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3291
[i915#3555]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3555
[i915#4103]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4103
[i915#4613]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4613
[i915#5354]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5354
[i915#7707]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/7707
[i915#9732]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9732
Build changes
-------------
* Linux: CI_DRM_19625 -> Patchwork_179886v1
CI-20190529: 20190529
CI_DRM_19625: 49d98d4e9c54dfb3650d39a80c2cd95e0a9f1b61 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_9208: 9208
Patchwork_179886v1: 49d98d4e9c54dfb3650d39a80c2cd95e0a9f1b61 @ git://anongit.freedesktop.org/gfx-ci/linux
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_179886v1/index.html
[-- Attachment #2: Type: text/html, Size: 6823 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-11-27 18:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-27 16:02 [PATCH] drm/i915/display: Leave the PSR frame change to the joiner primary Mika Kahola
2026-11-27 16:21 ` sashiko-bot
2026-11-27 17:18 ` Ville Syrjälä
2026-11-27 18:25 ` ✓ i915.CI.BAT: success for " Patchwork
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox