Received: by 10.213.65.68 with SMTP id h4csp524134imn; Fri, 16 Mar 2018 10:21:03 -0700 (PDT) X-Google-Smtp-Source: AG47ELudnH1y9N98FDFlQ42PT8y4FhHaVpKSWdYwUiwPVWgnlqBkJR0npQxlCP9HbDpj7bu4dH9t X-Received: by 10.101.89.74 with SMTP id g10mr2035842pgu.415.1521220863043; Fri, 16 Mar 2018 10:21:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521220863; cv=none; d=google.com; s=arc-20160816; b=dF8vhSufvucljVnL4VrWDC/MPzKpWKngfTiTQSwb4eS/d6PJqfsfxaPj+YFbvNcz96 1+f/ygC39k5kRnRKfDk04nmMJ6smb7xtSrzPAWO7lb5MAJzkyx79vDjzm515BZFzmYah GfwUfCGr2vTekGzOdjNs9hbMoKRz6D4R9vjD5xa9N2X54vT/EE21vND0U1HU9Zdr3vaE tDrOLCtTpJz9G/XK4xhF94btjp8TGMec2LWAWKDE9GC1TtMC9E8QUgq/yyHWtmbYxg5B vsJxenEuxziaWJtVxdUlj6M+6k2z6b9qxayVbBlvjxhiwgM4nEO/AekQaqLmg4K/VgO7 5IWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=3wD2VK13w1Dk3FGCgfryJDRKho80YmZho7M04m3OJNA=; b=YjM0ZlSnE1E9DfiZalUgP9IoiCycrYpyYxRGJ1S3KB08y87Wkqosl7LsHZT+EGwtlE FP/RbyZ/fTPgG63cP/EK9CeBlzA55xW1EEdAXZnbTw1APmqo2l9Ext9fEDUgfpsIh2DU mD1Fzq32mvucMYAzhdC88Q5TE7Xj5/ueiK6M4Wzd6OwcfApgNEndQKnUt/XCG+6Xaft+ S7nEF4xqhWcNK9IffkFuyvX0m4CU+6ytb47lhlNFLVut/NKW3VbUQ6OUps2nY7Hpv3tD EYMUMkBjjELlq8/XowoRpAGBbNsM4WwFxvp7omMyz2K2PIHUXW3cTGUBObDmzW48BZY3 NvMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l1-v6si6695579pld.312.2018.03.16.10.20.49; Fri, 16 Mar 2018 10:21:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754163AbeCPPaL (ORCPT + 99 others); Fri, 16 Mar 2018 11:30:11 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:36356 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932924AbeCPPaI (ORCPT ); Fri, 16 Mar 2018 11:30:08 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 6146610BE; Fri, 16 Mar 2018 15:30:07 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Maarten Lankhorst , Nivedita Swaminathan , Imre Deak , Patrik Jakobsson , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi Subject: [PATCH 4.9 06/86] drm/i915: Always call to intel_display_set_init_power() in resume_early. Date: Fri, 16 Mar 2018 16:22:29 +0100 Message-Id: <20180316152317.652617970@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180316152317.167709497@linuxfoundation.org> References: <20180316152317.167709497@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Maarten Lankhorst commit d13a8479f3584613b6aacbb793eae64578b8f69a upstream. intel_power_domains_init_hw() calls set_init_power, but when using runtime power management this call is skipped. This prevents hw readout from taking place. Signed-off-by: Maarten Lankhorst Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104172 Link: https://patchwork.freedesktop.org/patch/msgid/20180116155324.75120-1-maarten.lankhorst@linux.intel.com Fixes: bc87229f323e ("drm/i915/skl: enable PC9/10 power states during suspend-to-idle") Cc: Nivedita Swaminathan Cc: Imre Deak Cc: Patrik Jakobsson Cc: Jani Nikula Cc: Joonas Lahtinen Cc: Rodrigo Vivi Cc: # v4.5+ Reviewed-by: Imre Deak (cherry picked from commit ac25dfed15d470d7f23dd817e965b54aa3f94a1e) Signed-off-by: Rodrigo Vivi Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/i915/i915_drv.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/gpu/drm/i915/i915_drv.c +++ b/drivers/gpu/drm/i915/i915_drv.c @@ -1703,6 +1703,8 @@ static int i915_drm_resume_early(struct if (IS_BROXTON(dev_priv) || !(dev_priv->suspended_to_idle && dev_priv->csr.dmc_payload)) intel_power_domains_init_hw(dev_priv, true); + else + intel_display_set_init_power(dev_priv, true); enable_rpm_wakeref_asserts(dev_priv);