From: Dave Airlie Date: Tue, 30 Aug 2011 19:22:04 +0000 (+0100) Subject: drm/radeon/kms: set a default max_pixel_clock X-Git-Tag: Ubuntu-5.2.0-15.16~19718^2~1 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=9adceaa5b3d2480e2252c4a7f9c4bd7d66b8c4a2;p=mirror_ubuntu-eoan-kernel.git drm/radeon/kms: set a default max_pixel_clock On some Power rv100 cards, we have no ATY OF table, but we have no combios table either, and hence we refuse all modes on VGA-0 since we end up with a 0 max pixel clock. Signed-off-by: Dave Airlie Cc: stable@kernel.org Reviewed-by: Alex Deucher Reviewed-by: Jerome Glisse --- diff --git a/drivers/gpu/drm/radeon/radeon_clocks.c b/drivers/gpu/drm/radeon/radeon_clocks.c index dcd0863e31ae..b6e18c8db9f5 100644 --- a/drivers/gpu/drm/radeon/radeon_clocks.c +++ b/drivers/gpu/drm/radeon/radeon_clocks.c @@ -219,6 +219,9 @@ void radeon_get_clock_info(struct drm_device *dev) } else { DRM_INFO("Using generic clock info\n"); + /* may need to be per card */ + rdev->clock.max_pixel_clock = 35000; + if (rdev->flags & RADEON_IS_IGP) { p1pll->reference_freq = 1432; p2pll->reference_freq = 1432;