Skip to content

Commit 89eb319

Browse files
committed
drm/i915/psr: Fix drm_WARN_ON in intel_psr_disable
Currently intel_psr_disable is dumping out warning if PSR is not supported. On monitor supporting only Panel Replay we are seeing this warning. Fix this by checking Panel Replay support as well. Signed-off-by: Jouni Högander <jouni.hogander@intel.com> Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250213111628.2183753-1-jouni.hogander@intel.com
1 parent bf85319 commit 89eb319

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2187,7 +2187,8 @@ void intel_psr_disable(struct intel_dp *intel_dp,
21872187
if (!old_crtc_state->has_psr)
21882188
return;
21892189

2190-
if (drm_WARN_ON(display->drm, !CAN_PSR(intel_dp)))
2190+
if (drm_WARN_ON(display->drm, !CAN_PSR(intel_dp) &&
2191+
!CAN_PANEL_REPLAY(intel_dp)))
21912192
return;
21922193

21932194
mutex_lock(&intel_dp->psr.lock);

0 commit comments

Comments
 (0)