]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/i915/psr: Add interface to check if AUXLess ALPM is needed by PSR
authorJouni Högander <jouni.hogander@intel.com>
Mon, 26 May 2025 12:05:06 +0000 (15:05 +0300)
committerJouni Högander <jouni.hogander@intel.com>
Thu, 29 May 2025 05:13:41 +0000 (08:13 +0300)
Currently we spread ugly PSR details into ALPM code to check if AUXLess
ALPM is needed. Prepare to hide these details to PSR code by adding new
interface for checking if AUXLess ALPM is needed.

v2: remove kerneldoc comment

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Link: https://lore.kernel.org/r/20250526120512.1702815-7-jouni.hogander@intel.com
drivers/gpu/drm/i915/display/intel_psr.c
drivers/gpu/drm/i915/display/intel_psr.h

index 1072549649cddd3530bcc0bad06031c4c2d83aa3..38535e0d2496543db6a914bc33f719a24aabd6bb 100644 (file)
@@ -4246,3 +4246,9 @@ bool intel_psr_needs_alpm(struct intel_dp *intel_dp, const struct intel_crtc_sta
        return intel_dp_is_edp(intel_dp) && (crtc_state->has_sel_update ||
                                             crtc_state->has_panel_replay);
 }
+
+bool intel_psr_needs_alpm_aux_less(struct intel_dp *intel_dp,
+                                  const struct intel_crtc_state *crtc_state)
+{
+       return intel_dp_is_edp(intel_dp) && crtc_state->has_panel_replay;
+}
index 73c3fa40844bc6193b598968fde8af9a4f2b8fcd..0cf53184f13f9c84107915f2ab792bdb665d0311 100644 (file)
@@ -77,5 +77,7 @@ int intel_psr_min_vblank_delay(const struct intel_crtc_state *crtc_state);
 void intel_psr_connector_debugfs_add(struct intel_connector *connector);
 void intel_psr_debugfs_register(struct intel_display *display);
 bool intel_psr_needs_alpm(struct intel_dp *intel_dp, const struct intel_crtc_state *crtc_state);
+bool intel_psr_needs_alpm_aux_less(struct intel_dp *intel_dp,
+                                  const struct intel_crtc_state *crtc_state);
 
 #endif /* __INTEL_PSR_H__ */