From patchwork Fri May 20 08:34:20 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Deucher X-Patchwork-Id: 802812 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p4K8h5J0030283 for ; Fri, 20 May 2011 08:43:25 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 263949E9B8 for ; Fri, 20 May 2011 01:43:05 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qw0-f49.google.com (mail-qw0-f49.google.com [209.85.216.49]) by gabe.freedesktop.org (Postfix) with ESMTP id 277FE9E7A6 for ; Fri, 20 May 2011 01:34:48 -0700 (PDT) Received: by mail-qw0-f49.google.com with SMTP id 2so2100906qwi.36 for ; Fri, 20 May 2011 01:34:48 -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=u0f9fryCBjJUthmFjqhDfMO5H9ESVEh/P3rCQ3w4GxE=; b=rmk6izvxbFUPTrxYZyDL/OHN1ykKZVup27DKt1m3o7XzDgI4MUWaLRLYHVtfoC/hfR jjrc6MiMAOXubki/e061Gt40B+4DDlNjvantMN2AJ32Lm+tW1mZ0VmvHM1+G0nSB+u0A 4YvLF6RoGM7UI7KQc+xaUJ6UYwhQMJVXaMBLo= 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=qmXnkBKYrGakV0nGFrYZaXbSTQFxq9gAXA6SaUfN4BpWqN795denJMM4eMNTl9d71h ZwZXGShV63LG3FIUw9PmizmXdYAYOZQY6RpEkkIUQiH4+uohF+rk7Z1rD3UA9+kx2aiy ZoFUztjs0+GCmCV1TAxN/4181AS9vVn2ch8xs= Received: by 10.224.176.205 with SMTP id bf13mr3273243qab.190.1305880487912; Fri, 20 May 2011 01:34:47 -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 s9sm2112372qco.36.2011.05.20.01.34.47 (version=SSLv3 cipher=OTHER); Fri, 20 May 2011 01:34:47 -0700 (PDT) From: Alex Deucher To: airlied@gmail.com, dri-devel@lists.freedesktop.org Subject: [PATCH 07/18] drm/radeon/kms: make sure eDP panel is on for modesetting Date: Fri, 20 May 2011 04:34:20 -0400 Message-Id: <1305880471-1472-7-git-send-email-alexdeucher@gmail.com> X-Mailer: git-send-email 1.7.1.1 In-Reply-To: <1305880471-1472-1-git-send-email-alexdeucher@gmail.com> References: <1305880471-1472-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 (demeter2.kernel.org [140.211.167.43]); Fri, 20 May 2011 08:43:25 +0000 (UTC) Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_encoders.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_encoders.c b/drivers/gpu/drm/radeon/radeon_encoders.c index cdac739..fd0087f 100644 --- a/drivers/gpu/drm/radeon/radeon_encoders.c +++ b/drivers/gpu/drm/radeon/radeon_encoders.c @@ -1936,11 +1936,17 @@ static void radeon_atom_encoder_prepare(struct drm_encoder *encoder) radeon_atom_output_lock(encoder, true); radeon_atom_encoder_dpms(encoder, DRM_MODE_DPMS_OFF); - /* select the clock/data port if it uses a router */ if (connector) { struct radeon_connector *radeon_connector = to_radeon_connector(connector); + + /* select the clock/data port if it uses a router */ if (radeon_connector->router.cd_valid) radeon_router_select_cd_port(radeon_connector); + + /* turn eDP panel on for mode set */ + if (connector->connector_type == DRM_MODE_CONNECTOR_eDP) + atombios_set_edp_panel_power(connector, + ATOM_TRANSMITTER_ACTION_POWER_ON); } /* this is needed for the pll/ss setup to work correctly in some cases */