Skip to contentSkip to conversation

FAILED: patch "[PATCH] drm/i915: Always call to intel_display_set_init_power() in" failed to apply to 4.16-stable tree

PATCH [email protected] 1 participant 1 message Apr 22, 2018

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

The patch below does not apply to the 4.16-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.

thanks,

greg k-h

------------------ original commit in Linus's tree ------------------

Quoted 1 line

From ac25dfed15d470d7f23dd817e965b54aa3f94a1e Mon Sep 17 00:00:00 2001

From: Maarten Lankhorst <[email protected]>
Date: Tue, 16 Jan 2018 16:53:24 +0100
Subject: [PATCH] drm/i915: Always call to intel_display_set_init_power() in
resume_early.

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.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104172

Fixes bc87229f323e ("drm/i915/skl: enable PC9/10 power states during suspend-to-idle")
Cc Nivedita Swaminathan <[email protected]>
Cc Imre Deak <[email protected]>
Cc Patrik Jakobsson <[email protected]>
Cc Jani Nikula <[email protected]>
Cc Joonas Lahtinen <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc <[email protected]> # v4.5+
drivers/gpu/drm/i915/i915_drv.c +2 -0
index 6c8da9d20c33..173d0095e3b2 100644
@@ -1842,6 +1842,8 @@ static int i915_drm_resume_early(struct drm_device *dev)
 	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);