From: Alex Deucher Subject: Re: [PATCH] drm/radeon/kms/rv100: reject modes >135 Mhz on DVI Date: Mon, 11 Jan 2010 15:08:01 -0500 Message-ID: References: <6d4bc9fc1001111042m50cb2e27u6f5e72329a6b9fa6@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <6d4bc9fc1001111042m50cb2e27u6f5e72329a6b9fa6@mail.gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.sourceforge.net To: Maarten Maathuis Cc: DRI Development Mailing List List-Id: dri-devel@lists.freedesktop.org On Mon, Jan 11, 2010 at 1:42 PM, Maarten Maathuis wr= ote: > On Mon, Jan 11, 2010 at 6:57 PM, Alex Deucher wro= te: >> >From 6d980869ef031752dac505c1aacbbe221fb2c6e7 Mon Sep 17 00:00:00 2001 >> From: Alex Deucher >> 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. =A0Fixes fdo bug 25992 >> >> Signed-off-by: Alex Deucher >> --- >> =A0drivers/gpu/drm/radeon/radeon_connectors.c | =A0 =A05 +++++ >> =A01 files changed, 5 insertions(+), 0 deletions(-) >> >> diff --git a/drivers/gpu/drm/radeon/radeon_connectors.c >> b/drivers/gpu/drm/radeon/radeon_connectors.c >> index 9da10dd..7ee6515 100644 >> --- a/drivers/gpu/drm/radeon/radeon_connectors.c >> +++ b/drivers/gpu/drm/radeon/radeon_connectors.c >> @@ -900,11 +900,16 @@ static void radeon_dvi_force(struct >> drm_connector *connector) >> =A0static int radeon_dvi_mode_valid(struct drm_connector *connector, >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0struc= t drm_display_mode *mode) >> =A0{ >> + =A0 =A0 =A0 struct drm_device *dev =3D connector->dev; >> + =A0 =A0 =A0 struct radeon_device *rdev =3D dev->dev_private; >> =A0 =A0 =A0 =A0struct radeon_connector *radeon_connector =3D to_radeon_c= onnector(connector); >> >> =A0 =A0 =A0 =A0/* XXX check mode bandwidth */ >> >> =A0 =A0 =A0 =A0if (radeon_connector->use_digital && (mode->clock > 16500= 0)) { > > 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. > >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 /* clocks over 135 MHz have heat issues wi= th DVI on RV100 */ >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 if ((rdev->family =3D=3D CHIP_RV100) && (m= ode->clock > 135000)) >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 return MODE_CLOCK_HIGH; >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0if ((radeon_connector->connector_object_i= d =3D=3D >> CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_I) || >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(radeon_connector->connector_obje= ct_id =3D=3D >> CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_D) || >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(radeon_connector->connector_obje= ct_id =3D=3D >> CONNECTOR_OBJECT_ID_HDMI_TYPE_B)) >> -- >> 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 >> Dri-devel@lists.sourceforge.net >> 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 = --