summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2014-05-21 15:25:41 +0200
committerChristian König <christian.koenig@amd.com>2014-05-30 14:13:30 +0200
commit4b21ce1b4b5d262e7d4656b8ececc891fc3cb806 (patch)
treeb2093d2293c268dcbd88f5be39c429bb38f1b495
parentefb27e73e12633a24dfdc67b8a6a58c4b427f3e4 (diff)
downloadblackbird-op-linux-4b21ce1b4b5d262e7d4656b8ececc891fc3cb806.tar.gz
blackbird-op-linux-4b21ce1b4b5d262e7d4656b8ececc891fc3cb806.zip
drm/radeon: lower the ref * post PLL maximum once more
Let's be conservative and use 100 here until we find something better. Bugs: https://bugzilla.kernel.org/show_bug.cgi?id=75241 Signed-off-by: Christian König <christian.koenig@amd.com>
-rw-r--r--drivers/gpu/drm/radeon/radeon_display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c
index f00dbbf4d806..356b733caafe 100644
--- a/drivers/gpu/drm/radeon/radeon_display.c
+++ b/drivers/gpu/drm/radeon/radeon_display.c
@@ -862,7 +862,7 @@ static void avivo_get_fb_ref_div(unsigned nom, unsigned den, unsigned post_div,
unsigned *fb_div, unsigned *ref_div)
{
/* limit reference * post divider to a maximum */
- ref_div_max = min(128 / post_div, ref_div_max);
+ ref_div_max = max(min(100 / post_div, ref_div_max), 1u);
/* get matching reference and feedback divider */
*ref_div = min(max(DIV_ROUND_CLOSEST(den, post_div), 1u), ref_div_max);
OpenPOWER on IntegriCloud