All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Fix init_clock_gating for resume
@ 2017-11-13 14:50 Ville Syrjala
  2017-11-13 15:20 ` ✓ Fi.CI.BAT: success for " Patchwork
                   ` (6 more replies)
  0 siblings, 7 replies; 17+ messages in thread
From: Ville Syrjala @ 2017-11-13 14:50 UTC (permalink / raw)
  To: intel-gfx; +Cc: stable, Chris Wilson

From: Ville Syrjälä <ville.syrjala@linux.intel.com>

Moving the init_clock_gating() call from intel_modeset_init_hw() to
intel_modeset_gem_init() had an unintended effect of not applying
some workarounds on resume. This, for example, cause some kind of
corruption to appear at the top of my IVB Thinkpad X1 Carbon LVDS
screen after hibernation. Fix the problem by explicitly calling
init_clock_gating() from the resume path.

I really hope this doesn't break something else again...

Cc: stable@vger.kernel.org
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Fixes: 6ac43272768c ("drm/i915: Move init_clock_gating() back to where it was")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 drivers/gpu/drm/i915/i915_drv.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index 9df7b5d59a94..0023fb17899f 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -1707,6 +1707,7 @@ static int i915_drm_resume(struct drm_device *dev)
 
 	intel_guc_resume(dev_priv);
 
+	intel_init_clock_gating(dev_priv);
 	intel_modeset_init_hw(dev);
 
 	spin_lock_irq(&dev_priv->irq_lock);
-- 
2.13.6

^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2017-11-20 13:02 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-13 14:50 [PATCH] drm/i915: Fix init_clock_gating for resume Ville Syrjala
2017-11-13 15:20 ` ✓ Fi.CI.BAT: success for " Patchwork
2017-11-13 16:15 ` ✓ Fi.CI.IGT: " Patchwork
2017-11-13 19:01 ` [Intel-gfx] [PATCH] " Rodrigo Vivi
2017-11-13 19:01   ` Rodrigo Vivi
2017-11-13 20:46   ` [Intel-gfx] " Ville Syrjälä
2017-11-13 20:46     ` Ville Syrjälä
2017-11-13 21:01     ` Rodrigo Vivi
2017-11-13 21:01       ` Rodrigo Vivi
2017-11-16 16:02 ` [PATCH v2] " Ville Syrjala
2017-11-16 16:02   ` Ville Syrjala
2017-11-16 16:14   ` Chris Wilson
2017-11-20 13:02     ` Ville Syrjälä
2017-11-20 13:02       ` Ville Syrjälä
2017-11-16 16:22 ` ✓ Fi.CI.BAT: success for drm/i915: Fix init_clock_gating for resume (rev2) Patchwork
2017-11-16 17:08 ` ✗ Fi.CI.IGT: warning " Patchwork
2017-11-17 19:11 ` ✓ Fi.CI.BAT: success " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.