From patchwork Tue Dec 4 21:53:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Deucher X-Patchwork-Id: 1839691 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id 6E946DF230 for ; Tue, 4 Dec 2012 21:53:36 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5294CE6456 for ; Tue, 4 Dec 2012 13:53:36 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qc0-f177.google.com (mail-qc0-f177.google.com [209.85.216.177]) by gabe.freedesktop.org (Postfix) with ESMTP id ABDA3E6074 for ; Tue, 4 Dec 2012 13:53:23 -0800 (PST) Received: by mail-qc0-f177.google.com with SMTP id u28so2329606qcs.36 for ; Tue, 04 Dec 2012 13:53:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=HNWe/YrIjsU8cYzQ22wAiAaYjXEG6p46a+m5yR6aLyM=; b=kaLLtZ3VJgeOwwJIRwwFwjn5WJdcfmPB6ftSVmK7+JxLgKDdD82LaK2uIoe3NDJwtC 6McDC2uzKQd5mmZ2S0HSdn2sWcTKmmEZKkLF8SZNbYazxweWFY+cxDBmBo4wqW72zARy E/1qqplao8xOzSfq18F2wu+/oDZKZN+NpFsEtUiLH+goAqZrSR3pfwZeseA1vftNL4fK jwq4Z02HJIa/ikWQGL6W7yiFq6bsIrW4CVEcLZs6pjBs+qPIDP7k50HbYEutaK0GwANM br/x9Vrq1VCglJ2hoEoDVF4v8XLalda6Ib0iG7swj2BjVthNOHVaGb3wLLFuNOX6p3jj pZ/Q== Received: by 10.224.176.138 with SMTP id be10mr24945109qab.50.1354658003032; Tue, 04 Dec 2012 13:53:23 -0800 (PST) Received: from localhost.localdomain (static-74-96-105-49.washdc.fios.verizon.net. [74.96.105.49]) by mx.google.com with ESMTPS id jw1sm1270202qeb.13.2012.12.04.13.53.21 (version=SSLv3 cipher=OTHER); Tue, 04 Dec 2012 13:53:22 -0800 (PST) From: alexdeucher@gmail.com To: airlied@gmail.com, dri-devel@lists.freedesktop.org Subject: [PATCH] drm/radeon: fix eDP clk and lane setup for scaled modes Date: Tue, 4 Dec 2012 16:53:15 -0500 Message-Id: <1354657996-4301-1-git-send-email-alexdeucher@gmail.com> X-Mailer: git-send-email 1.7.7.5 Cc: Alex Deucher , stable@vger.kernel.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 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 From: Alex Deucher Need to use the adjusted mode since we are sending native timing and using the scaler for non-native modes. Signed-off-by: Alex Deucher cc: stable@vger.kernel.org Reviewed-by: Jerome Glisse --- drivers/gpu/drm/radeon/atombios_encoders.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_encoders.c b/drivers/gpu/drm/radeon/atombios_encoders.c index 010bae1..4552d4a 100644 --- a/drivers/gpu/drm/radeon/atombios_encoders.c +++ b/drivers/gpu/drm/radeon/atombios_encoders.c @@ -340,7 +340,7 @@ static bool radeon_atom_mode_fixup(struct drm_encoder *encoder, ((radeon_encoder->active_device & (ATOM_DEVICE_DFP_SUPPORT | ATOM_DEVICE_LCD_SUPPORT)) || (radeon_encoder_get_dp_bridge_encoder_id(encoder) != ENCODER_OBJECT_ID_NONE))) { struct drm_connector *connector = radeon_get_connector_for_encoder(encoder); - radeon_dp_set_link_config(connector, mode); + radeon_dp_set_link_config(connector, adjusted_mode); } return true;