diff options
author | Alex Deucher | 2010-01-11 21:02:31 +0100 |
---|---|---|
committer | Dave Airlie | 2010-01-13 04:25:10 +0100 |
commit | 1b24203e51072b6e76aff8c74bdd67eb3b34a724 (patch) | |
tree | f4700c8190369d3e331edd0f7d89f8e523a7d416 | |
parent | drm/radeon/kms/r6xx+: make irq handler less verbose (diff) | |
download | kernel-qcow2-linux-1b24203e51072b6e76aff8c74bdd67eb3b34a724.tar.gz kernel-qcow2-linux-1b24203e51072b6e76aff8c74bdd67eb3b34a724.tar.xz kernel-qcow2-linux-1b24203e51072b6e76aff8c74bdd67eb3b34a724.zip |
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
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_connectors.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_connectors.c b/drivers/gpu/drm/radeon/radeon_connectors.c index 9da10dd5df80..55266416fa47 100644 --- a/drivers/gpu/drm/radeon/radeon_connectors.c +++ b/drivers/gpu/drm/radeon/radeon_connectors.c @@ -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) || |