diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2011-01-31 16:48:53 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-02-01 21:49:43 -0500 |
commit | 619efb105924d8cafa0c1dd9389e9ab506f5425d (patch) | |
tree | d610de4c3488bbd539b7e449745c646299b48b19 /drivers/gpu/drm/radeon/radeon_display.c | |
parent | f523f74eac1897b13c05c88ce6e5de0a7c34578b (diff) |
drm/radeon/kms: Enable new pll calculation for avivo+ asics
New algo is used for r5xx+ and legacy is used for
r1xx-r4xx, rv515.
I've tested on all relevant GPUs and monitors that I
have access to and have found no problems.
Fixes:
https://bugzilla.kernel.org/show_bug.cgi?id=26562
https://bugzilla.kernel.org/show_bug.cgi?id=26552
May fix:
https://bugs.freedesktop.org/show_bug.cgi?id=32556
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Cc: stable@kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_display.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_display.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c index 5fda820959ed..2eff98cfd728 100644 --- a/drivers/gpu/drm/radeon/radeon_display.c +++ b/drivers/gpu/drm/radeon/radeon_display.c | |||
@@ -935,6 +935,9 @@ void radeon_compute_pll_legacy(struct radeon_pll *pll, | |||
935 | pll_out_max = pll->pll_out_max; | 935 | pll_out_max = pll->pll_out_max; |
936 | } | 936 | } |
937 | 937 | ||
938 | if (pll_out_min > 64800) | ||
939 | pll_out_min = 64800; | ||
940 | |||
938 | if (pll->flags & RADEON_PLL_USE_REF_DIV) | 941 | if (pll->flags & RADEON_PLL_USE_REF_DIV) |
939 | min_ref_div = max_ref_div = pll->reference_div; | 942 | min_ref_div = max_ref_div = pll->reference_div; |
940 | else { | 943 | else { |