Skip to contentSkip to conversation

drm/radeon/kms: need to set up ss on DP bridges as well

PATCH In review [email protected] 2 participants 2 messages Apr 27, 2012 – Apr 29, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/radeon/kms: need to set up ss on DP bridges as well

From: Alex Deucher <[email protected]>

Makes Nutmeg DP to VGA bridges work for me.

Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=42490

Noticed by Jerome Glisse

---
 drivers/gpu/drm/radeon/atombios_crtc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/radeon/atombios_crtc.c +2 -2
index c5c31e0..af1054f 100644
@@ -958,8 +958,8 @@ static void atombios_crtc_set_pll(struct drm_crtc *crtc, struct drm_display_mode
 		break;
 	}
 
-	if (radeon_encoder->active_device &
-	    (ATOM_DEVICE_LCD_SUPPORT | ATOM_DEVICE_DFP_SUPPORT)) {
+	if ((radeon_encoder->active_device & (ATOM_DEVICE_LCD_SUPPORT | ATOM_DEVICE_DFP_SUPPORT)) ||
+	    (radeon_encoder_get_dp_bridge_encoder_id(encoder) != ENCODER_OBJECT_ID_NONE)) {
 		struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv;
 		struct drm_connector *connector =
 			radeon_get_connector_for_encoder(encoder);
Signature · 1 line
1.7.7.5
Tested-by on v1 1/1
#1 lore raw
Quoted 20 lines · On 27.04.2012 23:18, [email protected] wrote:

From: Alex Deucher<[email protected]>

Makes Nutmeg DP to VGA bridges work for me.

Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=42490

Noticed by Jerome Glisse

---
  drivers/gpu/drm/radeon/atombios_crtc.c |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/radeon/atombios_crtc.c +0 -0
index c5c31e0..af1054f 100644

drivers/gpu/drm/radeon/atombios_crtc.c static void atombios_crtc_set_pll(struct drm_crtc *crtc, struct drm_display_mode · line 965

Quoted 10 lines
drivers/gpu/drm/radeon/atombios_crtc.c +2 -2
@@ -958,8 +958,8 @@ static void atombios_crtc_set_pll(struct drm_crtc *crtc, struct drm_display_mode
  		break;
  	}
 
-	if (radeon_encoder->active_device&
-	    (ATOM_DEVICE_LCD_SUPPORT | ATOM_DEVICE_DFP_SUPPORT)) {
+	if ((radeon_encoder->active_device&  (ATOM_DEVICE_LCD_SUPPORT | ATOM_DEVICE_DFP_SUPPORT)) ||
+	    (radeon_encoder_get_dp_bridge_encoder_id(encoder) != ENCODER_OBJECT_ID_NONE)) {
  		struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv;
  		struct drm_connector *connector =
  			radeon_get_connector_for_encoder(encoder);

Also gets the NUTMEG bridge on my llano board working, but DP on trinity is still problematic. Anyway: