From patchwork Thu Jan 23 19:20:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramalingam C X-Patchwork-Id: 3530901 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 C62649F391 for ; Thu, 23 Jan 2014 19:21:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5C329200F4 for ; Thu, 23 Jan 2014 19:21:04 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id CF940201BA for ; Thu, 23 Jan 2014 19:20:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A5064FA618; Thu, 23 Jan 2014 11:20:58 -0800 (PST) X-Original-To: Intel-gfx@lists.freedesktop.org Delivered-To: Intel-gfx@lists.freedesktop.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTP id C70B3FA618 for ; Thu, 23 Jan 2014 11:20:56 -0800 (PST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 23 Jan 2014 11:20:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.95,707,1384329600"; d="scan'208";a="463684379" Received: from ramaling-desktop.iind.intel.com ([10.223.25.129]) by fmsmga001.fm.intel.com with ESMTP; 23 Jan 2014 11:20:41 -0800 From: Ramalingam C To: Intel-gfx@lists.freedesktop.org Date: Fri, 24 Jan 2014 00:50:17 +0530 Message-Id: <1390504821-15243-1-git-send-email-ramalingam.c@intel.com> X-Mailer: git-send-email 1.7.9.5 Subject: [Intel-gfx] [PATCH] drm/i915: Redoing the PSR setup on resume 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.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, 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 Due to switch between console and graphics modes multiple psr_enable call will be made. On such occasions, to avoid repeated psr_setup, a flag called psr_setup_done is used. On suspend-resume, panel goes for a power cycle. Hence PSR setup should be redone to enable the PSR after suspend-resume. So this patch resets the corresponding flag, if it is set during the panel powerup process. Signed-off-by: Ramalingam C --- drivers/gpu/drm/i915/intel_ddi.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c index 74749c6..686f8f6 100644 --- a/drivers/gpu/drm/i915/intel_ddi.c +++ b/drivers/gpu/drm/i915/intel_ddi.c @@ -1201,6 +1201,11 @@ static void intel_ddi_pre_enable(struct intel_encoder *intel_encoder) if (type == INTEL_OUTPUT_EDP) { struct intel_dp *intel_dp = enc_to_intel_dp(encoder); ironlake_edp_panel_on(intel_dp); + + /* Resetting the flag, to redo the PSR setup after + * panel powercycle */ + if (intel_dp->psr_setup_done) + intel_dp->psr_setup_done = false; } WARN_ON(intel_crtc->ddi_pll_sel == PORT_CLK_SEL_NONE);