From patchwork Wed Sep 29 15:37:39 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Deucher X-Patchwork-Id: 217592 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o8TFc4Vo016017 for ; Wed, 29 Sep 2010 15:38:27 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 555B49F06C for ; Wed, 29 Sep 2010 08:38:04 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qy0-f177.google.com (mail-qy0-f177.google.com [209.85.216.177]) by gabe.freedesktop.org (Postfix) with ESMTP id E64519E821 for ; Wed, 29 Sep 2010 08:37:53 -0700 (PDT) Received: by qyk34 with SMTP id 34so1497773qyk.15 for ; Wed, 29 Sep 2010 08:37:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=tksq5pBYkVqm2LbMitCRk9RxaY3MeLga6rwXrSjMs6w=; b=GWqRrXOT0HkypnJzujfeGePyzDdzCkFpMtuq68rUwBwOaogz6mukygljMsHBKf7UKN XK2O7kTANKhmnrUi8px7QVA+Mr3XwgoXSvWy10oCzpegIb/3WZZAQ2JWm2mzl/uQ9ay9 1l4YOn72diih8hD2i5zUrdhq1nJYu4BAqzSfM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=QId3tDXvj6SbS93YcJv+pm88jqAV4kQKUyLPlzpyR/TtnFTrDAzHBH4Z1bYsz5r2S3 ky0mJ7UEE8rN2Azl9lF5ympJ235e/XAqLSNlSPDjsgkX/Et01OAziJqywDg2g0xiY8FJ 10XtN3lSLtH5UTkyGvffgVmQCcoycG5eLtxFA= Received: by 10.224.65.228 with SMTP id k36mr1330803qai.35.1285774672645; Wed, 29 Sep 2010 08:37:52 -0700 (PDT) Received: from localhost.localdomain (static-74-96-105-7.washdc.fios.verizon.net [74.96.105.7]) by mx.google.com with ESMTPS id r36sm9586353qcs.3.2010.09.29.08.37.51 (version=SSLv3 cipher=RC4-MD5); Wed, 29 Sep 2010 08:37:51 -0700 (PDT) From: Alex Deucher To: airlied@gmail.com, dri-devel@lists.freedesktop.org Subject: [PATCH 1/3] drm/radeon/kms: prefer high post dividers in legacy pll algo Date: Wed, 29 Sep 2010 11:37:39 -0400 Message-Id: <1285774661-1560-1-git-send-email-alexdeucher@gmail.com> X-Mailer: git-send-email 1.7.1.1 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Wed, 29 Sep 2010 15:38:27 +0000 (UTC) diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c index 7422f27..1de2248 100644 --- a/drivers/gpu/drm/radeon/radeon_display.c +++ b/drivers/gpu/drm/radeon/radeon_display.c @@ -513,7 +513,7 @@ static void radeon_compute_pll_legacy(struct radeon_pll *pll, max_fractional_feed_div = pll->max_frac_feedback_div; } - for (post_div = min_post_div; post_div <= max_post_div; ++post_div) { + for (post_div = max_post_div; post_div >= min_post_div; --post_div) { uint32_t ref_div; if ((pll->flags & RADEON_PLL_NO_ODD_POST_DIV) && (post_div & 1))