Skip to content

Commit ab60f99

Browse files
alexdeuchergregkh
authored andcommitted
drm/radeon/kms: fix DP setup on TRAVIS bridges
commit cf2aff6 upstream. Supposedly both NUTMEG and TRAVIS should use the same panel mode, but switching the panel mode for TRAVIS gets things working. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=41569 Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent bdcb5df commit ab60f99

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎drivers/gpu/drm/radeon/atombios_dp.c‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,9 +560,12 @@ static void radeon_dp_set_panel_mode(struct drm_encoder *encoder,
560560
if (!ASIC_IS_DCE4(rdev))
561561
return;
562562

563-
if (radeon_connector_encoder_get_dp_bridge_encoder_id(connector) !=
564-
ENCODER_OBJECT_ID_NONE)
563+
if (radeon_connector_encoder_get_dp_bridge_encoder_id(connector) ==
564+
ENCODER_OBJECT_ID_NUTMEG)
565565
panel_mode = DP_PANEL_MODE_INTERNAL_DP1_MODE;
566+
else if (radeon_connector_encoder_get_dp_bridge_encoder_id(connector) ==
567+
ENCODER_OBJECT_ID_TRAVIS)
568+
panel_mode = DP_PANEL_MODE_INTERNAL_DP2_MODE;
566569
else if (connector->connector_type == DRM_MODE_CONNECTOR_eDP) {
567570
u8 tmp = radeon_read_dpcd_reg(radeon_connector, DP_EDP_CONFIGURATION_CAP);
568571
if (tmp & 1)

0 commit comments

Comments
 (0)