Skip to content

Commit 199c7d7

Browse files
committed
drm/i915/dp: Sync instead of try-sync commits when getting active pipes
Sync instead of only try-sync non-blocking commits when getting the active pipes through a given DP port. Atm intel_dp_get_active_pipes() will only try to sync a given pipe and if that would block ignore the pipe. This was supposed to avoid link retraining in case a pending modeset would do that anyway, however that could incorrectly ignore fastset pipes as well for instance (which don't retraing the link). The TC port reset path needs to handle all pipes, even if a waiting for a pending commit would block. To account for the above cases sync all the pipes unconditionally. This also prepares for a follow-up change enabling the DP tunnel BW allocation mode which needs to ensure that all active pipes are synced and returned from intel_dp_get_active_pipes(). v2: - Add a separate function to try-sync the pipes. (Ville) v3: - Just sync the pipes unconditionally in intel_dp_get_active_pipes(). (Ville) Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Uma Shankar <uma.shankar@intel.com> (v2) Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Imre Deak <imre.deak@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240226185246.1276018-3-imre.deak@intel.com
1 parent a4ea61b commit 199c7d7

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5048,9 +5048,10 @@ int intel_dp_get_active_pipes(struct intel_dp *intel_dp,
50485048
if (!crtc_state->hw.active)
50495049
continue;
50505050

5051-
if (conn_state->commit &&
5052-
!try_wait_for_completion(&conn_state->commit->hw_done))
5053-
continue;
5051+
if (conn_state->commit)
5052+
drm_WARN_ON(&i915->drm,
5053+
!wait_for_completion_timeout(&conn_state->commit->hw_done,
5054+
msecs_to_jiffies(5000)));
50545055

50555056
*pipe_mask |= BIT(crtc->pipe);
50565057
}

0 commit comments

Comments
 (0)