Skip to content
/ linux Public

Commit 4ab7c9f

Browse files
hogandergregkh
authored andcommitted
drm/i915/psr: Write DSC parameters on Selective Update in ET mode
commit 5923a6e upstream. There are slice row per frame and pic height parameters in DSC that needs to be configured on every Selective Update in Early Transport mode. Use helper provided by DSC code to configure these on Selective Update when in Early Transport mode. Also fill crtc_state->psr2_su_area with full frame area on full frame update for DSC calculation. v2: move psr2_su_area under skip_sel_fetch_set_loop label Bspec: 68927, 71709 Fixes: 467e4e0 ("drm/i915/psr: Enable psr2 early transport as possible") Cc: <stable@vger.kernel.org> # v6.9+ Signed-off-by: Jouni Högander <jouni.hogander@intel.com> Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com> Link: https://patch.msgid.link/20260304113011.626542-5-jouni.hogander@intel.com (cherry picked from commit 3140af2fab505a4cd47d516284529bf1585628be) Signed-off-by: Tvrtko Ursulin <tursulin@ursulin.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent a5cdbbc commit 4ab7c9f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

drivers/gpu/drm/i915/display/intel_psr.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
#include "intel_snps_phy.h"
5151
#include "intel_step.h"
5252
#include "intel_vblank.h"
53+
#include "intel_vdsc.h"
5354
#include "intel_vrr.h"
5455
#include "skl_universal_plane.h"
5556

@@ -2489,6 +2490,12 @@ void intel_psr2_program_trans_man_trk_ctl(struct intel_dsb *dsb,
24892490

24902491
intel_de_write_dsb(display, dsb, PIPE_SRCSZ_ERLY_TPT(crtc->pipe),
24912492
crtc_state->pipe_srcsz_early_tpt);
2493+
2494+
if (!crtc_state->dsc.compression_enable)
2495+
return;
2496+
2497+
intel_dsc_su_et_parameters_configure(dsb, encoder, crtc_state,
2498+
drm_rect_height(&crtc_state->psr2_su_area));
24922499
}
24932500

24942501
static void psr2_man_trk_ctl_calc(struct intel_crtc_state *crtc_state,
@@ -2909,6 +2916,10 @@ int intel_psr2_sel_fetch_update(struct intel_atomic_state *state,
29092916
}
29102917

29112918
skip_sel_fetch_set_loop:
2919+
if (full_update)
2920+
clip_area_update(&crtc_state->psr2_su_area, &crtc_state->pipe_src,
2921+
&crtc_state->pipe_src);
2922+
29122923
psr2_man_trk_ctl_calc(crtc_state, full_update);
29132924
crtc_state->pipe_srcsz_early_tpt =
29142925
psr2_pipe_srcsz_early_tpt_calc(crtc_state, full_update);

0 commit comments

Comments
 (0)