Commit 3a49c54e authored by Jouni Högander's avatar Jouni Högander
Browse files

drm/i915/psr: Do PSR exit on frontbuffer flush on LunarLake and onwards



We need to use intel_psr_exit in frontbuffer flush on LunarLake and
onwards if we want to move using trans push mechanism to trigger Frame
Change event.

Keep PSR1 and PSR2 HW tracking as it is for older platforms as this was
seen causing problems there.

v2: typo fixed

Signed-off-by: default avatarJouni Högander <jouni.hogander@intel.com>
Reviewed-by: default avatarAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Link: https://patch.msgid.link/20260127124120.1069026-10-jouni.hogander@intel.com
parent 74222f79
Loading
Loading
Loading
Loading
+10 −8
Original line number Diff line number Diff line
@@ -3559,7 +3559,14 @@ static void _psr_flush_handle(struct intel_dp *intel_dp)
{
	struct intel_display *display = to_intel_display(intel_dp);

	if (DISPLAY_VER(display) < 20 && intel_dp->psr.psr2_sel_fetch_enabled) {
	if (DISPLAY_VER(display) >= 20) {
		/*
		 * We can use PSR exit on LunarLake onwards. Also
		 * using trans push mechanism to trigger Frame Change
		 * event requires using PSR exit.
		 */
		intel_psr_exit(intel_dp);
	} else if (intel_dp->psr.psr2_sel_fetch_enabled) {
		/* Selective fetch prior LNL */
		if (intel_dp->psr.psr2_sel_fetch_cff_enabled) {
			/* can we turn CFF off? */
@@ -3579,16 +3586,11 @@ static void _psr_flush_handle(struct intel_dp *intel_dp)
		intel_psr_configure_full_frame_update(intel_dp);

		intel_psr_force_update(intel_dp);
	} else if (!intel_dp->psr.psr2_sel_fetch_enabled) {
	} else {
		/*
		 * PSR1 on all platforms
		 * PSR2 HW tracking
		 * Panel Replay Full frame update
		 * On older platforms using PSR exit was seen causing problems
		 */
		intel_psr_force_update(intel_dp);
	} else {
		/* Selective update LNL onwards */
		intel_psr_exit(intel_dp);
	}

	if (!intel_dp->psr.active && !intel_dp->psr.busy_frontbuffer_bits)