]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/i915/psr: Write PSR2_MAN_TRK_CTL on DSB commit as well
authorJouni Högander <jouni.hogander@intel.com>
Thu, 13 Feb 2025 06:47:58 +0000 (08:47 +0200)
committerJouni Högander <jouni.hogander@intel.com>
Thu, 13 Feb 2025 14:48:02 +0000 (16:48 +0200)
Add PSR2_MAN_TRK_CTL writing into DSB commit in intel_atomic_dsb_finish.

Taking PSR lock over DSB commit is not needed because PSR2_MAN_TRK_CTL is
now written only by DSB.

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Animesh Manna <animesh.manna@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250213064804.2077127-8-jouni.hogander@intel.com
drivers/gpu/drm/i915/display/intel_display.c

index a5a0b4e60a7c0cad105104b5df0b050e8e078c3c..aea18c7ef63fcd56f0035a54c345ba45574342a1 100644 (file)
@@ -7743,6 +7743,8 @@ static void intel_atomic_dsb_finish(struct intel_atomic_state *state,
                                               new_crtc_state);
                bdw_set_pipe_misc(new_crtc_state->dsb_commit,
                                  new_crtc_state);
+               intel_psr2_program_trans_man_trk_ctl(new_crtc_state->dsb_commit,
+                                                    new_crtc_state);
                intel_crtc_planes_update_arm(new_crtc_state->dsb_commit,
                                             state, crtc);