From patchwork Tue Jul 24 20:29:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Glisse X-Patchwork-Id: 1233251 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id 337203FD4F for ; Tue, 24 Jul 2012 20:29:45 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EAEF99F046 for ; Tue, 24 Jul 2012 13:29:44 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-gh0-f177.google.com (mail-gh0-f177.google.com [209.85.160.177]) by gabe.freedesktop.org (Postfix) with ESMTP id B71269E771 for ; Tue, 24 Jul 2012 13:29:31 -0700 (PDT) Received: by ghbf11 with SMTP id f11so7583700ghb.36 for ; Tue, 24 Jul 2012 13:29:31 -0700 (PDT) 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=EXpe4eK/MT4ULGANWj3xZmHCQscrSbhCEqTAsMZOWPw=; b=0yQziT+48ZhBHLT/BiH0jsy852NT2beGAlhQP7sq1SL1AeENSCWfczm4MEDtQlwV0T /uIPi7hwIXUqEZIO4Bnn/cwibZ4q/W9GnARVT997U/lNXsMdwfrbYunOREzz8jXyGb0+ NvgCjzGJfOehOrV7zNZf27q3ZXlryZ0yxK5GcvbgFqdtOKEeQWFylA6v6QZ83DUMs1xT kMWyHUNfT2tknKR0pkBqxgqFuZ+qG8gVtO9J0p+XILKdOEGK69QnmPKR4LMbr4pLhITa psBY3NjZDlyiWU60TlCutKH9vd1F9Gga+qxAT7dAF6pn6Jq2b5PY/hr9tufJ9yYvdcpB 2bAQ== Received: by 10.43.105.132 with SMTP id dq4mr13468724icc.25.1343161770734; Tue, 24 Jul 2012 13:29:30 -0700 (PDT) Received: from homer.localdomain.com ([66.187.233.206]) by mx.google.com with ESMTPS id nh8sm3090561igc.1.2012.07.24.13.29.29 (version=SSLv3 cipher=OTHER); Tue, 24 Jul 2012 13:29:30 -0700 (PDT) From: j.glisse@gmail.com To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/radeon: fix dpms on/off on trinity/aruba Date: Tue, 24 Jul 2012 16:29:38 -0400 Message-Id: <1343161778-27066-1-git-send-email-j.glisse@gmail.com> X-Mailer: git-send-email 1.7.10.4 Cc: Jerome Glisse , stable@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: Jerome Glisse The external encoder need to be setup again before enabling the transmiter. This seems to be only needed on some trinity/aruba to fix dpms on. Cc: Signed-off-by: Jerome Glisse --- drivers/gpu/drm/radeon/atombios_encoders.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_encoders.c b/drivers/gpu/drm/radeon/atombios_encoders.c index 486ccdf..5302c42 100644 --- a/drivers/gpu/drm/radeon/atombios_encoders.c +++ b/drivers/gpu/drm/radeon/atombios_encoders.c @@ -1392,10 +1392,12 @@ radeon_atom_encoder_dpms_dig(struct drm_encoder *encoder, int mode) case DRM_MODE_DPMS_ON: /* some early dce3.2 boards have a bug in their transmitter control table */ if ((rdev->family == CHIP_RV710) || (rdev->family == CHIP_RV730) || - ASIC_IS_DCE41(rdev) || ASIC_IS_DCE5(rdev)) + ASIC_IS_DCE41(rdev) || ASIC_IS_DCE5(rdev)) { + atombios_dig_encoder_setup(encoder, ATOM_ENCODER_CMD_SETUP, 0); atombios_dig_transmitter_setup(encoder, ATOM_TRANSMITTER_ACTION_ENABLE, 0, 0); - else + } else { atombios_dig_transmitter_setup(encoder, ATOM_TRANSMITTER_ACTION_ENABLE_OUTPUT, 0, 0); + } if (ENCODER_MODE_IS_DP(atombios_get_encoder_mode(encoder)) && connector) { if (connector->connector_type == DRM_MODE_CONNECTOR_eDP) { atombios_set_edp_panel_power(connector,