From patchwork Fri Sep 20 10:56:40 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rodrigo Vivi X-Patchwork-Id: 2916031 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 91D7A9F1BF for ; Fri, 20 Sep 2013 10:57:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CA57B20333 for ; Fri, 20 Sep 2013 10:57:08 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id EB2A120303 for ; Fri, 20 Sep 2013 10:57:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C2C01E69E9 for ; Fri, 20 Sep 2013 03:57:07 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-yh0-f52.google.com (mail-yh0-f52.google.com [209.85.213.52]) by gabe.freedesktop.org (Postfix) with ESMTP id 7D927E5FEB for ; Fri, 20 Sep 2013 03:56:57 -0700 (PDT) Received: by mail-yh0-f52.google.com with SMTP id v1so56084yhn.11 for ; Fri, 20 Sep 2013 03:56:57 -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; bh=0/TYQ4uC4rqRpQ6QnBujgqGCeFEcL3QGpHaFib/GIuc=; b=rg40MNceGjBwKwyVNBh6IA5cck42f5fgbrwhi/kkBtQ1UcZ5IN2aElGJmiCsQCbq3A d6qH+PlZIx2PzC+VsLLei0ALMGg7OGLrcrj0hgt1e1nWppnCtHVYUl1ynmJG4zNSFNbW xDjtZpi2H2zPlFH/FZO5vKM6yldn0zwDbY3+AwC7uw4EIlL2VbbqV5GfYX+nWBtvUWvD tKxh9m0SkZNrboRYwLfSxMZVMZocbOECr2z/YF0o/9MbkU6LNwZtI/xLh7vea7jGM876 bkhtaFtjKCwCZpgEx+uMenDGTYW4Eu9b9e9vSOrgffvbLB+/qslQeqkp+/Wod3cR0LuG VvBw== X-Received: by 10.236.61.194 with SMTP id w42mr4820171yhc.2.1379674616945; Fri, 20 Sep 2013 03:56:56 -0700 (PDT) Received: from localhost.localdomain (200.188.217.18.dedicated.neoviatelecom.com.br. [200.188.217.18]) by mx.google.com with ESMTPSA id t31sm17310096yhp.13.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 20 Sep 2013 03:56:56 -0700 (PDT) From: Rodrigo Vivi To: intel-gfx@lists.freedesktop.org Date: Fri, 20 Sep 2013 07:56:40 -0300 Message-Id: <1379674600-23138-1-git-send-email-rodrigo.vivi@gmail.com> X-Mailer: git-send-email 1.8.1.4 Subject: [Intel-gfx] [PATCH] uxa: Do not change DPMS mode on unconnected outputs X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP "The operation is in theory redundant, and in the case of Haswell where we have multiple outputs aliasing to the same encoder, actually harmful." Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=68030 Credits-to: Chris Wilson Tested-by: Rodrigo Vivi Signed-off-by: Rodrigo Vivi --- src/uxa/intel_display.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/uxa/intel_display.c b/src/uxa/intel_display.c index 7dc0f68..0cb63b3 100644 --- a/src/uxa/intel_display.c +++ b/src/uxa/intel_display.c @@ -1123,10 +1123,11 @@ intel_output_dpms(xf86OutputPtr output, int dpms) intel_output_dpms_backlight(output, intel_output->dpms_mode, dpms); - drmModeConnectorSetProperty(mode->fd, - intel_output->output_id, - props->prop_id, - dpms); + if (output->crtc) + drmModeConnectorSetProperty(mode->fd, + intel_output->output_id, + props->prop_id, + dpms); if (dpms != DPMSModeOff) intel_output_dpms_backlight(output, intel_output->dpms_mode,