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

drm/i915/psr: Do not unnecessarily remove underrun on idle PSR WA



We are currently removing underrun on idle PSR WA even if it's not
applied. Fix this by checking pkg_c_latency_used on PSR exit as well.

Fixes: 9b1795e9 ("drm/i915/psr: Underrun on idle PSR wa only when pkgc latency > delayed vblank")
Signed-off-by: default avatarJouni Högander <jouni.hogander@intel.com>
Reviewed-by: default avatarUma Shankar <uma.shankar@intel.com>
Link: https://lore.kernel.org/r/20250822105846.1023631-1-jouni.hogander@intel.com
parent 9cc10041
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2095,8 +2095,9 @@ static void intel_psr_exit(struct intel_dp *intel_dp)

		drm_WARN_ON(display->drm, !(val & EDP_PSR2_ENABLE));
	} else {
		if (DISPLAY_VER(display) == 20 ||
		    IS_DISPLAY_VERx100_STEP(display, 3000, STEP_A0, STEP_B0))
		if ((DISPLAY_VER(display) == 20 ||
		     IS_DISPLAY_VERx100_STEP(display, 3000, STEP_A0, STEP_B0)) &&
			intel_dp->psr.pkg_c_latency_used)
			intel_dmc_start_pkgc_exit_at_start_of_undelayed_vblank(display,
								       intel_dp->psr.pipe,
								       false);