Skip to contentSkip to conversation

3.4-rc* radeon: No DVI-A output after commit e00e8b5e760cb

REGRESSION In review Takashi Iwai 2 participants 6 messages Apr 18, 2012

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

Hi,

I noticed that one machine here gives only the blank output with 3.4-rc's. The bisection lead me to affecting commit:

commit e00e8b5e760cbbe9067daeae5454d67c44c8d035
Author: Alex Deucher <[email protected]>
Date: Fri Mar 16 12:22:09 2012 -0400

drm/radeon/kms: fix analog load detection on DVI-I connectors

Reverting this commit helped, it goes back to normal.

On this system, the VGA monitor is connected to DVI over a VGA-DVI connector (and even VGA-switcher). So, yeah, it's a strange setup. But a regression is a regression.

I'm willing to test any patch.

thanks,

Takashi

#1 lore raw

At Wed, 18 Apr 2012 14:39:54 +0200,

Quoted 10 lines · Takashi Iwai

Hi,

I noticed that one machine here gives only the blank output with 3.4-rc's. The bisection lead me to affecting commit:

commit e00e8b5e760cbbe9067daeae5454d67c44c8d035
Author: Alex Deucher <[email protected]>
Date: Fri Mar 16 12:22:09 2012 -0400

Quoted 7 lines

drm/radeon/kms: fix analog load detection on DVI-I connectors

Reverting this commit helped, it goes back to normal.

On this system, the VGA monitor is connected to DVI over a VGA-DVI connector (and even VGA-switcher). So, yeah, it's a strange setup. But a regression is a regression.

Looking at the commit again, it appears like a simple logic failure. It should be "&&" instead of "||".

Takashi

#2 lore raw

PATCH 1/1 drm/radeon/kms: fix the regression of DVI connector check

The check of the encoder type in the commit [e00e8b5e: drm/radeon/kms:
fix analog load detection on DVI-I connectors] is obviously wrong, and it's the culprit of the regression on my workstation with DVI-analog connection resulting in the blank output.

Fixed the typo now.

---
 drivers/gpu/drm/radeon/radeon_connectors.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/radeon/radeon_connectors.c +1 -1
index bd05156..aa8268d 100644
@@ -970,7 +970,7 @@ radeon_dvi_detect(struct drm_connector *connector, bool force)
 
 			encoder = obj_to_encoder(obj);
 
-			if (encoder->encoder_type != DRM_MODE_ENCODER_DAC ||
+			if (encoder->encoder_type != DRM_MODE_ENCODER_DAC &&
 			    encoder->encoder_type != DRM_MODE_ENCODER_TVDAC)
 				continue;
 
Signature · 1 line
1.7.9.2
#5 lore raw
In reply to Takashi Iwai
Quoted 9 lines · Takashi Iwai

Hi,

I noticed that one machine here gives only the blank output with 3.4-rc's.  The bisection lead me to affecting commit:

   commit e00e8b5e760cbbe9067daeae5454d67c44c8d035
   Author: Alex Deucher <[email protected]>
   Date:   Fri Mar 16 12:22:09 2012 -0400

Quoted 8 lines

   drm/radeon/kms: fix analog load detection on DVI-I connectors

Reverting this commit helped, it goes back to normal.

On this system, the VGA monitor is connected to DVI over a VGA-DVI connector (and even VGA-switcher).  So, yeah, it's a strange setup. But a regression is a regression.

I don't think it's a regression per se. Prior to that patch, the
analog vga was using the wrong load detect function (it's using the
one for DP bridge chips) which returned connector_status_unknown if it
was called on an invalid connector. The patch just sets the behaviour
back to the original behaviour prior to support for DP bridge chips
being added (http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commitdiff;h=d629a3ceb4fc1ab5aab737b964100d114aba1173).
The problem is the driver is not able to detect the monitor on the
other side of the KVM (a common problem with KVMs). The real problem
is that some desktop environments choose to interpret
connector_status_unknown as connected. It's not really viable to
always return connector_status_unknown as then all ports would be
considered connected when in truth they would not be.

Alex

Quoted 10 lines

I'm willing to test any patch.

thanks,

Takashi
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw

PATCH 1/1 drm/radeon: fix logic inversion in load detect fix

In reply to Takashi Iwai

From: Alex Deucher <[email protected]>

---
 drivers/gpu/drm/radeon/radeon_connectors.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/gpu/drm/radeon/radeon_connectors.c +1 -1
index 910ea6d..4bbb6d4 100644
@@ -977,7 +977,7 @@ radeon_dvi_detect(struct drm_connector *connector, bool force)
 
 			encoder = obj_to_encoder(obj);
 
-			if (encoder->encoder_type != DRM_MODE_ENCODER_DAC ||
+			if (encoder->encoder_type != DRM_MODE_ENCODER_DAC &&
 			    encoder->encoder_type != DRM_MODE_ENCODER_TVDAC)
 				continue;
 
Signature · 1 line
1.7.7.5
Reviewed-by on v1 1/1
#3 lore raw

Re: [PATCH] drm/radeon/kms: fix the regression of DVI connector check

In reply to Takashi Iwai
Quoted 9 lines · Takashi Iwai

The check of the encoder type in the commit [e00e8b5e: drm/radeon/kms:
fix analog load detection on DVI-I connectors] is obviously wrong, and it's the culprit of the regression on my workstation with DVI-analog connection resulting in the blank output.

Fixed the typo now.

Quoted 24 lines

---
 drivers/gpu/drm/radeon/radeon_connectors.c |    2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/radeon/radeon_connectors.c +1 -2
index bd05156..aa8268d 100644
@@ -970,7 +970,7 @@ radeon_dvi_detect(struct drm_connector *connector, bool force)
 
                        encoder = obj_to_encoder(obj);
 
-                       if (encoder->encoder_type != DRM_MODE_ENCODER_DAC ||
+                       if (encoder->encoder_type != DRM_MODE_ENCODER_DAC &&
                            encoder->encoder_type != DRM_MODE_ENCODER_TVDAC)
                                continue;
 
--

1.7.9.2

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel