From patchwork Wed Apr 17 21:15:49 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paulo Zanoni X-Patchwork-Id: 2456591 Return-Path: X-Original-To: patchwork-intel-gfx@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 39ED2DF23A for ; Wed, 17 Apr 2013 21:18:52 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 28B21E5D4A for ; Wed, 17 Apr 2013 14:18:52 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-ye0-f182.google.com (mail-ye0-f182.google.com [209.85.213.182]) by gabe.freedesktop.org (Postfix) with ESMTP id 3871EE5CF3 for ; Wed, 17 Apr 2013 14:18:42 -0700 (PDT) Received: by mail-ye0-f182.google.com with SMTP id r5so332614yen.13 for ; Wed, 17 Apr 2013 14:18:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=tQEiAlndNk/4cZ9FowTUhDUbNoNkWRdDT8I2cUoO9S0=; b=vh5HYT/WnDxQI47NDJ64XvutVGHyNF9G+b6+5+2XWyl/cBAcmbjkWI9S7PCqlPmoVw wUdH+KkVlt2Vi1kylg+PBOd+3RTwkP1qaCG4++9EyZlkfCHkj+dWE+C0XkUBPx4uutF4 3S8Ems9mw4+KD5FrTfch+YQDY54KTwWXNLjI5aenWPhXdkqL7c3iqijub8RegSU2rX8h KIGZGWvBNHf9oizmPsK14p+OeWWQiG9VhHisznfHHWMtiNxFvjCDJhC6c4HlVV0oSabn kkQGgZSmqutcjWoeXWkFSvHb9KGlzt8QOa7j6reJiX3azk+/keTXb5nF4BItDyor1fFV oH2Q== X-Received: by 10.236.63.105 with SMTP id z69mr5099851yhc.168.1366233521701; Wed, 17 Apr 2013 14:18:41 -0700 (PDT) Received: from localhost.localdomain ([177.96.12.89]) by mx.google.com with ESMTPS id u43sm3041985yhi.9.2013.04.17.14.18.39 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 17 Apr 2013 14:18:40 -0700 (PDT) From: Paulo Zanoni To: intel-gfx@lists.freedesktop.org Date: Wed, 17 Apr 2013 18:15:49 -0300 Message-Id: <1366233349-18956-1-git-send-email-przanoni@gmail.com> X-Mailer: git-send-email 1.7.10.4 Cc: Paulo Zanoni Subject: [Intel-gfx] [PATCH] drm/i915: implement WADPOClockGatingDisable for LPT 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 From: Paulo Zanoni This should prevent mode set failures on LPT. Signed-off-by: Paulo Zanoni Reviewed-by: Damien Lespiau --- drivers/gpu/drm/i915/intel_pm.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index 413877d..15ff0ac 100644 --- a/drivers/gpu/drm/i915/intel_pm.c +++ b/drivers/gpu/drm/i915/intel_pm.c @@ -3758,6 +3758,11 @@ static void lpt_init_clock_gating(struct drm_device *dev) I915_WRITE(SOUTH_DSPCLK_GATE_D, I915_READ(SOUTH_DSPCLK_GATE_D) | PCH_LP_PARTITION_LEVEL_DISABLE); + + /* WADPOClockGatingDisable */ + I915_WRITE(_TRANSA_CHICKEN1, + I915_READ(_TRANSA_CHICKEN1) | + TRANS_CHICKEN1_DP0UNIT_GC_DISABLE); } static void haswell_init_clock_gating(struct drm_device *dev)