Received: by 10.213.65.68 with SMTP id h4csp436970imn; Tue, 13 Mar 2018 09:02:02 -0700 (PDT) X-Google-Smtp-Source: AG47ELvcHJgMrkCgR5FiVRMIGCdoj2dit6kJkYU6aN0PiFqiIC8ZzOIs9ZrxvNKrV8Rj7YzZtIiu X-Received: by 2002:a17:902:3084:: with SMTP id v4-v6mr1063342plb.102.1520956922046; Tue, 13 Mar 2018 09:02:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520956922; cv=none; d=google.com; s=arc-20160816; b=CCpiOc+21k0lgV4B/EovvoJmriLgnkYt0kIP0qOfqJLK2WFZ6FQo9jFsxIwBl2A24a x+pTcQ0GFYLv0s6TsyCdik0uU58LV/BLzVSYU6OeW8CVmmXEPnnotLRK6WS1ky+BkiYu Wj6HTu9aJ9Ly+7bReYReBPNELZXf/oEVs34+WmDOuVweeNkrfbiH3EIOUZU0HVXv1qj3 ritPGIzIB1koNWARQcoWcTei4Qfjmd1zaNKWxmTV/I8n5rk05kx5V3H8ptJVxxZC5mXl yhy9apHzJB8Mvx0Bgf45WYoPZaY0K4FfxvLwM07HT87uz2x1wVyadzeoWd8Kfw8kw/hG IAlw== 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=IQ34v4ZgyN/a1C6x4e/9pjEpJaztLLe/MWweG71sngo=; b=n+MNCspW1RuXjcqMecJHsImNt8N/mjlNtCC/d251ZKR/k87YL0t1PMQSU1NryTJQAi cteKS5gFawwOhsO1olLP9exmIwqpQX/7pyXisaMoBRNRyefKGegka2OdedgsH1E90Wbi xTBP1IzJ3zXBpF+/mCzR0veH19dNy0oQ42IBN6Garw7cX1WPBcfWS5gLFx5oZJd8kb7v U0e0qcZ1j9+E22d2iHgGxA1YyEAz1lDroOVvDQTapXEnzZQ6Ne/0MyDtcVQF8L6mx2zh kAAM4cH6eqPorCHSfBCIH+b7QHBdQXmqnbbEbuCOK/NRcMJMafgloHvmSxnnr7JnI31Z CSPg== 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 p18si265957pgu.147.2018.03.13.09.01.46; Tue, 13 Mar 2018 09:02:02 -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 S934499AbeCMPiC (ORCPT + 99 others); Tue, 13 Mar 2018 11:38:02 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:34166 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934468AbeCMPiA (ORCPT ); Tue, 13 Mar 2018 11:38:00 -0400 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 65E601250; Tue, 13 Mar 2018 15:37:59 +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.14 060/140] drm/i915: Always call to intel_display_set_init_power() in resume_early. Date: Tue, 13 Mar 2018 16:24:23 +0100 Message-Id: <20180313152502.271262402@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180313152458.201155692@linuxfoundation.org> References: <20180313152458.201155692@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.14-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 @@ -1806,6 +1806,8 @@ static int i915_drm_resume_early(struct if (IS_GEN9_LP(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); i915_gem_sanitize(dev_priv);