Skip to content

Commit 39fb2f0

Browse files
hoganderjunxiaoc
authored andcommitted
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 <[email protected]> Reviewed-by: Suraj Kandpal <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 0787103 commit 39fb2f0

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)