From patchwork Fri May 20 16:36:12 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Deucher X-Patchwork-Id: 804192 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 p4KGbTcF032507 for ; Fri, 20 May 2011 16:37:49 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7C9259EB63 for ; Fri, 20 May 2011 09:37:29 -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 4530A9ED2D for ; Fri, 20 May 2011 09:36:21 -0700 (PDT) Received: by qyl38 with SMTP id 38so2505831qyl.15 for ; Fri, 20 May 2011 09:36:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=bOxizWsCADGQEwLIgF/60ZJLVkDw2gtCfE0bCS5n9jc=; b=DgjsFgjvKhd5AcWSrBf5oqGhF0w2SbKw9bxXwWyATzFwSnc31MKTQyGkHOpUgPl5Ti xvR/Cl2NxY/5/WPvz4xmwsb2wXo58kdBZUskLDC5D+L3q9M0tWlfCw60tNUajR7a8uxW H/bo5PYZwjHlDGOkK23Hnxz7H9SbvEtI2jBR4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=tkGDgY07PSIZ0h8h2UWji5tCOckRjKlzhSYbGuRe2uemXKE37KBSgsA1+wLyOJDOVc 1xe/6UFPcVvLjX7uK9qkBZ3UD/fW3ch9ciRXomXWNOsYAnCHqcrcicYTeigqzZp0p3oJ 2PqQXSQvWlWy3ZVh29E8NF0eNXNxY8pWwfkxo= Received: by 10.229.74.206 with SMTP id v14mr3454475qcj.69.1305909381206; Fri, 20 May 2011 09:36:21 -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 m13sm2340880qcu.4.2011.05.20.09.36.20 (version=SSLv3 cipher=OTHER); Fri, 20 May 2011 09:36:20 -0700 (PDT) From: Alex Deucher To: airlied@gmail.com, dri-devel@lists.freedesktop.org Subject: [PATCH] drm/radeon/kms: properly set the CLK_REF bit for DCE3 devices Date: Fri, 20 May 2011 12:36:12 -0400 Message-Id: <1305909372-22095-2-git-send-email-alexdeucher@gmail.com> X-Mailer: git-send-email 1.7.1.1 In-Reply-To: <1305909372-22095-1-git-send-email-alexdeucher@gmail.com> References: <1305909372-22095-1-git-send-email-alexdeucher@gmail.com> 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.6 (demeter1.kernel.org [140.211.167.41]); Fri, 20 May 2011 16:37:49 +0000 (UTC) If the ss clock is external, the CLK_REF bit needs to be set in the SetPixelClock parameters. This should fix DP failures in the channel equalization loop. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_crtc.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b/drivers/gpu/drm/radeon/atombios_crtc.c index bbd6c59..48f5ff0 100644 --- a/drivers/gpu/drm/radeon/atombios_crtc.c +++ b/drivers/gpu/drm/radeon/atombios_crtc.c @@ -815,6 +815,8 @@ static void atombios_crtc_program_pll(struct drm_crtc *crtc, args.v3.ucPostDiv = post_div; args.v3.ucPpll = pll_id; args.v3.ucMiscInfo = (pll_id << 2); + if (ss_enabled && (ss->type & ATOM_EXTERNAL_SS_MASK)) + args.v3.ucMiscInfo |= PIXEL_CLOCK_MISC_REF_DIV_SRC; args.v3.ucTransmitterId = encoder_id; args.v3.ucEncoderMode = encoder_mode; break;