Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915/psr: Check transcoder Selective Update support for PR as well
@ 2025-03-07 12:00 Jouni Högander
  2025-03-07 12:54 ` ✓ CI.Patch_applied: success for " Patchwork
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Jouni Högander @ 2025-03-07 12:00 UTC (permalink / raw)
  To: intel-gfx, intel-xe; +Cc: Jouni Högander

We need to ensure transcoder is supporting Selective Update in case of
Panel Replay as well.

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
---
 drivers/gpu/drm/i915/display/intel_psr.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c
index 74aa7ba34fda..84e4d6f1f3a8 100644
--- a/drivers/gpu/drm/i915/display/intel_psr.c
+++ b/drivers/gpu/drm/i915/display/intel_psr.c
@@ -1491,13 +1491,6 @@ static bool intel_psr2_config_valid(struct intel_dp *intel_dp,
 		return false;
 	}
 
-	if (!transcoder_has_psr2(display, crtc_state->cpu_transcoder)) {
-		drm_dbg_kms(display->drm,
-			    "PSR2 not supported in transcoder %s\n",
-			    transcoder_name(crtc_state->cpu_transcoder));
-		return false;
-	}
-
 	/*
 	 * DSC and PSR2 cannot be enabled simultaneously. If a requested
 	 * resolution requires DSC to be enabled, priority is given to DSC
@@ -1579,6 +1572,13 @@ static bool intel_sel_update_config_valid(struct intel_dp *intel_dp,
 		goto unsupported;
 	}
 
+	if (!transcoder_has_psr2(display, crtc_state->cpu_transcoder)) {
+		drm_dbg_kms(display->drm,
+			    "Selective update not supported in transcoder %s\n",
+			    transcoder_name(crtc_state->cpu_transcoder));
+		goto unsupported;
+	}
+
 	if (!crtc_state->has_panel_replay && !intel_psr2_config_valid(intel_dp, crtc_state))
 		goto unsupported;
 
-- 
2.43.0


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

end of thread, other threads:[~2025-03-21  9:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-07 12:00 [PATCH] drm/i915/psr: Check transcoder Selective Update support for PR as well Jouni Högander
2025-03-07 12:54 ` ✓ CI.Patch_applied: success for " Patchwork
2025-03-07 12:55 ` ✓ CI.checkpatch: " Patchwork
2025-03-07 12:56 ` ✓ CI.KUnit: " Patchwork
2025-03-07 13:13 ` ✓ CI.Build: " Patchwork
2025-03-07 13:15 ` ✓ CI.Hooks: " Patchwork
2025-03-07 13:17 ` ✓ CI.checksparse: " Patchwork
2025-03-07 13:36 ` ✓ Xe.CI.BAT: " Patchwork
2025-03-08  8:43 ` ✗ Xe.CI.Full: failure " Patchwork
2025-03-21  9:19 ` [PATCH] " Manna, Animesh

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