Received: by 10.213.65.68 with SMTP id h4csp469969imn; Tue, 13 Mar 2018 10:03:20 -0700 (PDT) X-Google-Smtp-Source: AG47ELsXPG6Ewval1Wx/x7AqQlDwaPKkhaq7ltvp6naRvYlu/qRR2oZ7883s6YfxkLrlgLXpjoWJ X-Received: by 10.99.136.194 with SMTP id l185mr1048142pgd.419.1520960600650; Tue, 13 Mar 2018 10:03:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520960600; cv=none; d=google.com; s=arc-20160816; b=IiOhiSDm0/l3mo0BAz2MzdiMUim1ky/+JcEEt9adWqZI+zS99k6cPM5XzWhW69Q2fT dNL2RKEoXUMTwkLD+DLCbwWFoa4LdBw60qyYAk9MlrpOjSfi1KppubD3tJdPxcsHa2FW ZG66fUiJdKZ1jeJwIcDiF9nM0M1Sw2JU3XW2ZG9q0eVi/CzZz7exfFtc+rywyco94elm K/KqWLhOhhcMU5FG8hnPAd5Ct0PcowrD4FfCHV6pGXO2dmp8iIqyNE2EGBtjRRSQvNo7 7VXTu9BJUEHCOrfGpKSATzgQXCUpUeSUpxo/wNppoGwWBaAG3+Si4NGnIiJQXMrrABJK OvGg== 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=SgZc8wKp2ehetBmanGmwB9rAQmU74q1GgStc+qQ89Zo=; b=aIQs7iCo0FUywcNU1U7YMAVGgC4gZH2j3SkO5Mm31/xpY1ObRADo8Y9JprGI03H1Gk I0s+wKpPCgyXD7h0aYy2Kcj9AMuxpIdGc3IXvihBZdB9r34qniBNaWZMOBWIRQmmmqpB 6FFYBYkO5o7i1cEmQ+Gg8TGzae5vsTb5UKUovlOLTUAIhhW38l6jMF/NlonNMvh45FQV /otBXh6O7s9cP0FQ1OmNbQXU4l94u6UMo+PGnB0HXm/7hNN4oI4bXjhlASeJ6ThmJjmi mRfKpzcQnHy9Nfuq0sqVfPchu8de6y9mnDZ3NT7yQSmVbAjaPz5JSXt1KuLRjp/x+Rq+ 4mWg== 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 e127si276855pgc.170.2018.03.13.10.03.06; Tue, 13 Mar 2018 10:03:20 -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 S1752602AbeCMRA5 (ORCPT + 99 others); Tue, 13 Mar 2018 13:00:57 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:58448 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752360AbeCMP3g (ORCPT ); Tue, 13 Mar 2018 11:29:36 -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 69CF4504; Tue, 13 Mar 2018 15:29:35 +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.15 019/146] drm/i915: Always call to intel_display_set_init_power() in resume_early. Date: Tue, 13 Mar 2018 16:23:06 +0100 Message-Id: <20180313152321.970491646@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180313152320.439085687@linuxfoundation.org> References: <20180313152320.439085687@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.15-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 @@ -1827,6 +1827,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);