From patchwork Wed Jan 30 18:24:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rodrigo Vivi X-Patchwork-Id: 2069461 Return-Path: X-Original-To: patchwork-dri-devel@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 A695FDF2E5 for ; Wed, 30 Jan 2013 18:42:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 86AE8E6591 for ; Wed, 30 Jan 2013 10:42:16 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ye0-f172.google.com (mail-ye0-f172.google.com [209.85.213.172]) by gabe.freedesktop.org (Postfix) with ESMTP id 8FD14E5D20; Wed, 30 Jan 2013 10:30:39 -0800 (PST) Received: by mail-ye0-f172.google.com with SMTP id m10so315668yen.3 for ; Wed, 30 Jan 2013 10:30:39 -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=mE7V4LsNxQfc+/EHXmjjjfqngNTjaQHX7JX8xGJLtfo=; b=K4BXV/xUw71xn2Pv8C0c9iAdGdA0c332rjfR7NwLI8CvddAuoRLuRSe58hrQVe45cM SZpgItg0gy/RfxS739ooJLfUUFhyM/CmWQywLel2dKSWNl//mxJGlWSgAlvPtYZO+TrW u9skhkm0d+iNAOtEQOw8oMFuOutJpYJQnegtShsxdhn1cfidU9/ls01ho6yR5E3lEVQK GPfMGYCoLLl1f6xZMqaVCI77yB8kMRA2eGc9kyoacLtcR9LleOPxH9ThRqa9EotPSAnr /GqO12/JSLha0k1UEwEy9Dfh2zDJ2rKaQJiwEAVJAzJPpsySxnh6SYxoanSKfTvwcmp7 C5jw== X-Received: by 10.101.2.9 with SMTP id e9mr1916152ani.87.1359570639200; Wed, 30 Jan 2013 10:30:39 -0800 (PST) Received: from localhost.localdomain (200.188.217.18.dedicated.neoviatelecom.com.br. [200.188.217.18]) by mx.google.com with ESMTPS id c16sm1873528ann.15.2013.01.30.10.30.37 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 30 Jan 2013 10:30:38 -0800 (PST) From: Rodrigo Vivi To: intel-gfx@lists.freedesktop.org Subject: [PATCH 9/9] drm/i915: Hook PSR functionality Date: Wed, 30 Jan 2013 16:24:51 -0200 Message-Id: <1359570291-2170-10-git-send-email-rodrigo.vivi@gmail.com> X-Mailer: git-send-email 1.7.11.7 In-Reply-To: <1359570291-2170-1-git-send-email-rodrigo.vivi@gmail.com> References: <1359570291-2170-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 Reviewed-by: Jani Nikula --- 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 feb7a4a..1dba035d 100644 --- a/drivers/gpu/drm/i915/intel_ddi.c +++ b/drivers/gpu/drm/i915/intel_ddi.c @@ -1306,6 +1306,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); } } @@ -1318,6 +1319,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); } }