Skip to contentSkip to conversation

drm/radeon/kms/rv100: reject modes >135 Mhz on DVI

PATCH In review Alex Deucher 2 participants 4 messages Jan 11, 2010

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

PATCH 1/1 drm/radeon/kms/rv100: reject modes >135 Mhz on DVI

Quoted 1 line

From 6d980869ef031752dac505c1aacbbe221fb2c6e7 Mon Sep 17 00:00:00 2001

From: Alex Deucher <[email protected]>
Date: Mon, 11 Jan 2010 12:39:35 -0500
Subject: [PATCH] drm/radeon/kms/rv100: reject modes >135 Mhz on DVI

Due to heat issues. Fixes fdo bug 25992

---
 drivers/gpu/drm/radeon/radeon_connectors.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
(quoted diff) +0 -0

b/drivers/gpu/drm/radeon/radeon_connectors.c
index 9da10dd..7ee6515 100644

drivers/gpu/drm/radeon/radeon_connectors.c +0 -0
@@ -900,11 +900,16 @@ static void radeon_dvi_force(struct

drm_connector *connector)
static int radeon_dvi_mode_valid(struct drm_connector *connector,
struct drm_display_mode *mode)
{
+ struct drm_device *dev = connector->dev;
+ struct radeon_device *rdev = dev->dev_private;
struct radeon_connector *radeon_connector = to_radeon_connector(connector);

/* XXX check mode bandwidth */

if (radeon_connector->use_digital && (mode->clock > 165000)) {
+ /* clocks over 135 MHz have heat issues with DVI on RV100 */
+ if ((rdev->family == CHIP_RV100) && (mode->clock > 135000))
+ return MODE_CLOCK_HIGH;
if ((radeon_connector->connector_object_id ==
CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_I) ||
(radeon_connector->connector_object_id ==
CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_D) ||
(radeon_connector->connector_object_id ==
CONNECTOR_OBJECT_ID_HDMI_TYPE_B))

Signature · 1 line
1.5.6.3

From 6d980869ef031752dac505c1aacbbe221fb2c6e7 Mon Sep 17 00:00:00 2001
From: Alex Deucher <[email protected]>
Date: Mon, 11 Jan 2010 12:39:35 -0500
Subject: [PATCH] drm/radeon/kms/rv100: reject modes >135 Mhz on DVI

Due to heat issues. Fixes fdo bug 25992

---
 drivers/gpu/drm/radeon/radeon_connectors.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
drivers/gpu/drm/radeon/radeon_connectors.c +5 -0
index 9da10dd..7ee6515 100644
@@ -900,11 +900,16 @@ static void radeon_dvi_force(struct drm_connector *connector)
 static int radeon_dvi_mode_valid(struct drm_connector *connector,
 				  struct drm_display_mode *mode)
 {
+	struct drm_device *dev = connector->dev;
+	struct radeon_device *rdev = dev->dev_private;
 	struct radeon_connector *radeon_connector = to_radeon_connector(connector);
 
 	/* XXX check mode bandwidth */
 
 	if (radeon_connector->use_digital && (mode->clock > 165000)) {
+		/* clocks over 135 MHz have heat issues with DVI on RV100 */
+		if ((rdev->family == CHIP_RV100) && (mode->clock > 135000))
+			return MODE_CLOCK_HIGH;
 		if ((radeon_connector->connector_object_id == CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_I) ||
 		    (radeon_connector->connector_object_id == CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_D) ||
 		    (radeon_connector->connector_object_id == CONNECTOR_OBJECT_ID_HDMI_TYPE_B))
Signature · 1 line
1.5.6.3

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev

--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel

#1 lore raw
Quoted 19 lines · Alex Deucher
Quoted 1 line

From 6d980869ef031752dac505c1aacbbe221fb2c6e7 Mon Sep 17 00:00:00 2001

From: Alex Deucher <[email protected]>
Date: Mon, 11 Jan 2010 12:39:35 -0500
Subject: [PATCH] drm/radeon/kms/rv100: reject modes >135 Mhz on DVI

Due to heat issues.  Fixes fdo bug 25992

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

 1 files changed, 5 insertions(+), 0 deletions(-)
drivers/gpu/drm/radeon/radeon_connectors.c +0 -0
index 9da10dd..7ee6515 100644
@@ -900,11 +900,16 @@ static void radeon_dvi_force(struct
 drm_connector *connector)

drivers/gpu/drm/radeon/radeon_connectors.c static void radeon_dvi_force(struct · line 910

Quoted 10 lines
drivers/gpu/drm/radeon/radeon_connectors.c +2 -0
  static int radeon_dvi_mode_valid(struct drm_connector *connector,
                                  struct drm_display_mode *mode)
  {
+       struct drm_device *dev = connector->dev;
+       struct radeon_device *rdev = dev->dev_private;
        struct radeon_connector *radeon_connector = to_radeon_connector(connector);
 
        /* XXX check mode bandwidth */
 
        if (radeon_connector->use_digital && (mode->clock > 165000)) {

Is it just me or is this a check for dual link dvi (which would mean the next check is useless)?

Quoted 12 lines
drivers/gpu/drm/radeon/radeon_connectors.c +3 -0
+               /* clocks over 135 MHz have heat issues with DVI on RV100 */
+               if ((rdev->family == CHIP_RV100) && (mode->clock > 135000))
+                       return MODE_CLOCK_HIGH;

               if ((radeon_connector->connector_object_id == CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_I) || (radeon_connector->connector_object_id == CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_D) || (radeon_connector->connector_object_id == CONNECTOR_OBJECT_ID_HDMI_TYPE_B))
--
1.5.6.3

Quoted 13 lines

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
--

#2 lore raw
Quoted 27 lines · Maarten Maathuis
Quoted 26 lines · Alex Deucher
Quoted 1 line

From 6d980869ef031752dac505c1aacbbe221fb2c6e7 Mon Sep 17 00:00:00 2001

From: Alex Deucher <[email protected]>
Date: Mon, 11 Jan 2010 12:39:35 -0500
Subject: [PATCH] drm/radeon/kms/rv100: reject modes >135 Mhz on DVI

Due to heat issues.  Fixes fdo bug 25992

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

 1 files changed, 5 insertions(+), 0 deletions(-)
drivers/gpu/drm/radeon/radeon_connectors.c +2 -0
index 9da10dd..7ee6515 100644
@@ -900,11 +900,16 @@ static void radeon_dvi_force(struct
 drm_connector *connector)
  static int radeon_dvi_mode_valid(struct drm_connector *connector,
                                  struct drm_display_mode *mode)
  {
+       struct drm_device *dev = connector->dev;
+       struct radeon_device *rdev = dev->dev_private;
        struct radeon_connector *radeon_connector = to_radeon_connector(connector);
 
Quoted 6 lines

drivers/gpu/drm/radeon/radeon_connectors.c static void radeon_dvi_force(struct drm_connector *connector) · line 909

Quoted 3 lines
drivers/gpu/drm/radeon/radeon_connectors.c +0 -0
        /* XXX check mode bandwidth */
 
        if (radeon_connector->use_digital && (mode->clock > 165000)) {

Is it just me or is this a check for dual link dvi (which would mean the next check is useless)?

Argh. you're right. new patch on the way.

Quoted 13 lines
Quoted 13 lines
drivers/gpu/drm/radeon/radeon_connectors.c +3 -0
+               /* clocks over 135 MHz have heat issues with DVI on RV100 */
+               if ((rdev->family == CHIP_RV100) && (mode->clock > 135000))
+                       return MODE_CLOCK_HIGH;

               if ((radeon_connector->connector_object_id == CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_I) || (radeon_connector->connector_object_id == CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_D) || (radeon_connector->connector_object_id == CONNECTOR_OBJECT_ID_HDMI_TYPE_B))
--
1.5.6.3

Quoted 14 lines
Quoted 13 lines

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
--

#3 lore raw
Quoted 28 lines · Alex Deucher
Quoted 27 lines · Maarten Maathuis
Quoted 26 lines · Alex Deucher
Quoted 1 line

From 6d980869ef031752dac505c1aacbbe221fb2c6e7 Mon Sep 17 00:00:00 2001

From: Alex Deucher <[email protected]>
Date: Mon, 11 Jan 2010 12:39:35 -0500
Subject: [PATCH] drm/radeon/kms/rv100: reject modes >135 Mhz on DVI

Due to heat issues.  Fixes fdo bug 25992

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

 1 files changed, 5 insertions(+), 0 deletions(-)
drivers/gpu/drm/radeon/radeon_connectors.c +2 -0
index 9da10dd..7ee6515 100644
@@ -900,11 +900,16 @@ static void radeon_dvi_force(struct
 drm_connector *connector)
  static int radeon_dvi_mode_valid(struct drm_connector *connector,
                                  struct drm_display_mode *mode)
  {
+       struct drm_device *dev = connector->dev;
+       struct radeon_device *rdev = dev->dev_private;
        struct radeon_connector *radeon_connector = to_radeon_connector(connector);
 
Quoted 8 lines
Quoted 6 lines

drivers/gpu/drm/radeon/radeon_connectors.c static void radeon_dvi_force(struct · line 910

Quoted 3 lines
drivers/gpu/drm/radeon/radeon_connectors.c +0 -0
        /* XXX check mode bandwidth */
 
        if (radeon_connector->use_digital && (mode->clock > 165000)) {

Is it just me or is this a check for dual link dvi (which would mean the next check is useless)?

Argh.  you're right.  new patch on the way.

New patch attached.

Alex

Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
drivers/gpu/drm/radeon/radeon_connectors.c +3 -0
+               /* clocks over 135 MHz have heat issues with DVI on RV100 */
+               if ((rdev->family == CHIP_RV100) && (mode->clock > 135000))
+                       return MODE_CLOCK_HIGH;

               if ((radeon_connector->connector_object_id == CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_I) || (radeon_connector->connector_object_id == CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_D) || (radeon_connector->connector_object_id == CONNECTOR_OBJECT_ID_HDMI_TYPE_B))
--
1.5.6.3

Quoted 15 lines
Quoted 5 lines
Quoted 5 lines

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers

Quoted 9 lines
Quoted 8 lines

http://p.sf.net/sfu/verizon-dev2dev
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel

From d29f2398d4eeb5c15cb515edcff7b7aa41373edb Mon Sep 17 00:00:00 2001
From: Alex Deucher <[email protected]>
Date: Mon, 11 Jan 2010 15:02:31 -0500
Subject: [PATCH] drm/radeon/kms/rv100: reject modes > 135 Mhz on DVI (v2)

Due to heat issues. Fixes fdo bug 25992

v2: fix typo noticed by Maarten Maathuis

---
 drivers/gpu/drm/radeon/radeon_connectors.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
drivers/gpu/drm/radeon/radeon_connectors.c +8 -0
index 9da10dd..5526641 100644
@@ -900,10 +900,18 @@ static void radeon_dvi_force(struct drm_connector *connector)
 static int radeon_dvi_mode_valid(struct drm_connector *connector,
 				  struct drm_display_mode *mode)
 {
+	struct drm_device *dev = connector->dev;
+	struct radeon_device *rdev = dev->dev_private;
 	struct radeon_connector *radeon_connector = to_radeon_connector(connector);
 
 	/* XXX check mode bandwidth */
 
+	/* clocks over 135 MHz have heat issues with DVI on RV100 */
+	if (radeon_connector->use_digital &&
+	    (rdev->family == CHIP_RV100) &&
+	    (mode->clock > 135000))
+		return MODE_CLOCK_HIGH;
+
 	if (radeon_connector->use_digital && (mode->clock > 165000)) {
 		if ((radeon_connector->connector_object_id == CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_I) ||
 		    (radeon_connector->connector_object_id == CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_D) ||
Signature · 1 line
1.5.6.3

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev

--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel