Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915/psr: Fix drm_WARN_ON in intel_psr_disable
@ 2025-02-13 11:16 Jouni Högander
  2025-02-13 11:21 ` ✓ CI.Patch_applied: success for " Patchwork
                   ` (8 more replies)
  0 siblings, 9 replies; 14+ messages in thread
From: Jouni Högander @ 2025-02-13 11:16 UTC (permalink / raw)
  To: intel-gfx, intel-xe; +Cc: Jouni Högander

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>
---
 drivers/gpu/drm/i915/display/intel_psr.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c
index 861e50ceef85..c77eb1ba3db3 100644
--- a/drivers/gpu/drm/i915/display/intel_psr.c
+++ b/drivers/gpu/drm/i915/display/intel_psr.c
@@ -2186,7 +2186,8 @@ void intel_psr_disable(struct intel_dp *intel_dp,
 	if (!old_crtc_state->has_psr)
 		return;
 
-	if (drm_WARN_ON(display->drm, !CAN_PSR(intel_dp)))
+	if (drm_WARN_ON(display->drm, !CAN_PSR(intel_dp) &&
+			!CAN_PANEL_REPLAY(intel_dp)))
 		return;
 
 	mutex_lock(&intel_dp->psr.lock);
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2025-02-19 12:09 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-13 11:16 [PATCH] drm/i915/psr: Fix drm_WARN_ON in intel_psr_disable Jouni Högander
2025-02-13 11:21 ` ✓ CI.Patch_applied: success for " Patchwork
2025-02-13 11:21 ` ✓ CI.checkpatch: " Patchwork
2025-02-13 11:23 ` ✓ CI.KUnit: " Patchwork
2025-02-13 11:39 ` ✓ CI.Build: " Patchwork
2025-02-13 11:41 ` ✓ CI.Hooks: " Patchwork
2025-02-13 11:43 ` ✓ CI.checksparse: " Patchwork
2025-02-13 12:03 ` ✓ Xe.CI.BAT: " Patchwork
2025-02-14  3:36 ` ✗ Xe.CI.Full: failure " Patchwork
2025-02-19 11:58   ` Hogander, Jouni
2025-02-14  4:27 ` [PATCH] " Kandpal, Suraj
2025-02-14  7:31   ` Hogander, Jouni
2025-02-14 10:56     ` Kandpal, Suraj
2025-02-19 12:09   ` Hogander, Jouni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox