From patchwork Mon Feb 25 22:55:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rodrigo Vivi X-Patchwork-Id: 2183111 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 338273FD4E for ; Mon, 25 Feb 2013 23:06:50 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 36820E6058 for ; Mon, 25 Feb 2013 15:06:50 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-gh0-f169.google.com (mail-gh0-f169.google.com [209.85.160.169]) by gabe.freedesktop.org (Postfix) with ESMTP id 517EDE5C89; Mon, 25 Feb 2013 14:55:55 -0800 (PST) Received: by mail-gh0-f169.google.com with SMTP id r18so604030ghr.28 for ; Mon, 25 Feb 2013 14:55:54 -0800 (PST) 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:in-reply-to :references; bh=hglteZwZKLGE8AgSmTltyLRjY5U6bX9FDv8nEG57uho=; b=RVZW1NTQtjgRpFbP5hldSFWOQYtffWn3qnChu0pY2mmfka1iNFS4FwDOBH0l95+ZQ+ ScHr7vBNIBobRKLs/3YC0Lwjf/oUblYdF3g15AfsCQ3uofyoRGWU4NG9RUbE1sk5ahQS XMXAK8Tp3fG15j5tRrJsThu+YgOENfOUO58BftrSSrOlkwjSEzGttEdP6Anx+CZQRolq MQ6bn+9V0roZqIQqfoxOEObCQk3vpuLmr/U6Y3iNum+kQLp1FEOjwXmqH/xx00uVN/H3 aFVUD3LUKjh1juM6m4viML8VqILpGJtgGJJ2xTsEyq/sz7psA0inqkhUXdv3FpEZOaoz q/sQ== X-Received: by 10.236.180.42 with SMTP id i30mr21175147yhm.68.1361832954745; Mon, 25 Feb 2013 14:55:54 -0800 (PST) Received: from localhost.localdomain ([186.204.164.107]) by mx.google.com with ESMTPS id w7sm28350950yhj.0.2013.02.25.14.55.52 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 25 Feb 2013 14:55:54 -0800 (PST) From: Rodrigo Vivi To: intel-gfx@lists.freedesktop.org Subject: [PATCH 8/8] drm/i915: Hook PSR functionality Date: Mon, 25 Feb 2013 19:55:22 -0300 Message-Id: <1361832922-19801-9-git-send-email-rodrigo.vivi@gmail.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1361832922-19801-1-git-send-email-rodrigo.vivi@gmail.com> References: <1361832922-19801-1-git-send-email-rodrigo.vivi@gmail.com> Cc: dri-devel@lists.freedesktop.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 PSR must be enabled after transcoder and port are running. And it is only available for HSW. v2: move enable/disable to intel_ddi Signed-off-by: Rodrigo Vivi --- drivers/gpu/drm/i915/intel_ddi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c index 816c45c..bbfdcfd 100644 --- a/drivers/gpu/drm/i915/intel_ddi.c +++ b/drivers/gpu/drm/i915/intel_ddi.c @@ -1321,6 +1321,7 @@ static void intel_enable_ddi(struct intel_encoder *intel_encoder) struct intel_dp *intel_dp = enc_to_intel_dp(encoder); ironlake_edp_backlight_on(intel_dp); + intel_edp_enable_psr(intel_dp); } if (intel_crtc->eld_vld) { @@ -1345,6 +1346,7 @@ static void intel_disable_ddi(struct intel_encoder *intel_encoder) struct intel_dp *intel_dp = enc_to_intel_dp(encoder); ironlake_edp_backlight_off(intel_dp); + intel_edp_disable_psr(intel_dp); } tmp = I915_READ(HSW_AUD_PIN_ELD_CP_VLD);