Skip to content

Commit 984318a

Browse files
animesh-mannajlahtine-intel
authored andcommitted
drm/i915/panelreplay: Move out psr_init_dpcd() from init_connector()
Move psr_init_dpcd() from init-connector to connector-detect function. The dpcd probe for checking panel replay capability for external dp connector is causing delay during boot which can be optimized by moving dpcd probe to connector specific detect(). v1: Initial version. v2: Add details in commit description. [Jani] Suggested-by: Ville Syrjälä <[email protected]> Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/10284 Signed-off-by: Animesh Manna <[email protected]> Fixes: cceeaa3 ("drm/i915/panelreplay: Enable panel replay dpcd initialization for DP") Reviewed-by: Jani Nikula <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit 1cca19b) Signed-off-by: Joonas Lahtinen <[email protected]>
1 parent 0848814 commit 984318a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5699,6 +5699,9 @@ intel_dp_detect(struct drm_connector *connector,
56995699
goto out;
57005700
}
57015701

5702+
if (!intel_dp_is_edp(intel_dp))
5703+
intel_psr_init_dpcd(intel_dp);
5704+
57025705
intel_dp_detect_dsc_caps(intel_dp, intel_connector);
57035706

57045707
intel_dp_configure_mst(intel_dp);

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2776,9 +2776,6 @@ void intel_psr_init(struct intel_dp *intel_dp)
27762776
if (!(HAS_PSR(dev_priv) || HAS_DP20(dev_priv)))
27772777
return;
27782778

2779-
if (!intel_dp_is_edp(intel_dp))
2780-
intel_psr_init_dpcd(intel_dp);
2781-
27822779
/*
27832780
* HSW spec explicitly says PSR is tied to port A.
27842781
* BDW+ platforms have a instance of PSR registers per transcoder but

0 commit comments

Comments
 (0)