Skip to content

Commit b36f7d2

Browse files
airliedalexdeucher
authored andcommitted
drm/radeon/mst: fix regression in lane/link handling.
The function this used changed in 092c96a drm/radeon: fix dp link rate selection (v2) However for MST we should just always train to the max link/rate. Though we probably need to limit this for future hw, in theory radeon won't support it. This fixes my 30" monitor with MST enabled. Cc: stable@vger.kernel.org # v4.4 Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent ae20f12 commit b36f7d2

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

drivers/gpu/drm/radeon/radeon_dp_mst.c

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -525,17 +525,9 @@ static bool radeon_mst_mode_fixup(struct drm_encoder *encoder,
525525
drm_mode_set_crtcinfo(adjusted_mode, 0);
526526
{
527527
struct radeon_connector_atom_dig *dig_connector;
528-
int ret;
529-
530528
dig_connector = mst_enc->connector->con_priv;
531-
ret = radeon_dp_get_dp_link_config(&mst_enc->connector->base,
532-
dig_connector->dpcd, adjusted_mode->clock,
533-
&dig_connector->dp_lane_count,
534-
&dig_connector->dp_clock);
535-
if (ret) {
536-
dig_connector->dp_lane_count = 0;
537-
dig_connector->dp_clock = 0;
538-
}
529+
dig_connector->dp_lane_count = drm_dp_max_lane_count(dig_connector->dpcd);
530+
dig_connector->dp_clock = drm_dp_max_link_rate(dig_connector->dpcd);
539531
DRM_DEBUG_KMS("dig clock %p %d %d\n", dig_connector,
540532
dig_connector->dp_lane_count, dig_connector->dp_clock);
541533
}

0 commit comments

Comments
 (0)