From patchwork Thu Feb 6 18:22:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rodrigo Vivi X-Patchwork-Id: 3597671 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 9BF109F2F5 for ; Thu, 6 Feb 2014 18:23:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E74D820107 for ; Thu, 6 Feb 2014 18:23:36 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 37437200E7 for ; Thu, 6 Feb 2014 18:23:36 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A8AA3FABA7; Thu, 6 Feb 2014 10:23:33 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-qc0-f179.google.com (mail-qc0-f179.google.com [209.85.216.179]) by gabe.freedesktop.org (Postfix) with ESMTP id 60462FA9B2 for ; Thu, 6 Feb 2014 10:23:19 -0800 (PST) Received: by mail-qc0-f179.google.com with SMTP id e16so3899209qcx.10 for ; Thu, 06 Feb 2014 10:23:18 -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:in-reply-to:references; bh=so4lm0aYPesNdwesuIJZJ01hnNCSxrEAfdgSj+04Z1I=; b=k1i1/JRDf8CYNWu+0X/8NfF198whT429MmrADWh/hs7Bn1mPW5s7WfnV3wVcrZnrTn wePPxAO7O30pugAMTc3yHedzH13v1UkUqXDteLbGxUYVeqT88oUdh1unYCLE1gLUOOmb FhOuTvTaVV350gQSmFNvVKBizmNFmHkx822EdkkyO49Bo0OqK2AmWeUIgusXfj8i3RFQ zEDFlSqLPCEewG3Bwc9jzQUeotqSRNKItvy3PDge0f3sk8O7Hp/xKpVsMG3fjmHXWRNb 9N4v8TIjsikTAIEFGHc0amF0aIW7Zc4g21ihZ7Ntp4IXbUf1LMzyD+b0dkfao8zynhfh rasQ== X-Received: by 10.224.99.3 with SMTP id s3mr14659780qan.84.1391710996292; Thu, 06 Feb 2014 10:23:16 -0800 (PST) Received: from localhost.localdomain ([189.67.56.89]) by mx.google.com with ESMTPSA id p8sm2932466qga.9.2014.02.06.10.23.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Feb 2014 10:23:15 -0800 (PST) From: Rodrigo Vivi To: intel-gfx@lists.freedesktop.org Date: Thu, 6 Feb 2014 16:22:31 -0200 Message-Id: <1391710952-27974-3-git-send-email-rodrigo.vivi@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1391710952-27974-1-git-send-email-rodrigo.vivi@gmail.com> References: <1391710952-27974-1-git-send-email-rodrigo.vivi@gmail.com> Subject: [Intel-gfx] [PATCH 2/3] drm/i915: BDW PSR: Remove limitations that aren't valid for BDW. 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@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org X-Spam-Status: No, score=-4.6 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 Signed-off-by: Rodrigo Vivi --- drivers/gpu/drm/i915/intel_dp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 39fffb0..13019b4 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c @@ -1750,6 +1750,10 @@ static bool intel_edp_psr_match_conditions(struct intel_dp *intel_dp) return false; } + /* Below limitations aren't valid for Broadwell */ + if (IS_BROADWELL(dev)) + goto out; + if (I915_READ(SPRCTL(intel_crtc->pipe)) & SPRITE_ENABLE) { DRM_DEBUG_KMS("PSR condition failed: Sprite is Enabled\n"); return false; @@ -1766,6 +1770,7 @@ static bool intel_edp_psr_match_conditions(struct intel_dp *intel_dp) return false; } + out: dev_priv->psr.source_ok = true; return true; }