Skip to contentSkip to conversation

drm/i915: Restore resume irq ordering comment

PATCH In review Daniel Vetter 2 participants 2 messages Sep 8, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915: Restore resume irq ordering comment

This was lost in

commit e11aa362308f5de467ce355a2a2471321b15a35c

Author: Jesse Barnes <[email protected]>
Date:   Wed Jun 18 09:52:55 2014 -0700

drm/i915: use runtime irq suspend/resume in freeze/thaw

which makes the second part of this commen a bit nonsense. Both were originally added in

commit 15239099d7a7a9ecdc1ccb5b187ae4cda5488ff9

Author: Daniel Vetter <[email protected]>
Date:   Tue Mar 5 09:50:58 2013 +0100

drm/i915: enable irqs earlier when resuming

Cc Jesse Barnes <[email protected]>
Cc Imre Deak <[email protected]>
Cc Chris Wilson <[email protected]>
Cc Mika Kuoppala <[email protected]>
---
 drivers/gpu/drm/i915/i915_drv.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/i915/i915_drv.c +1 -0
index 70cc38924040..8aaa6e46b989 100644
@@ -680,6 +680,7 @@ static int __i915_drm_thaw(struct drm_device *dev, bool restore_gtt_mappings)
 		}
 		mutex_unlock(&dev->struct_mutex);
 
+		/* We need working interrupts for modeset enabling ... */
 		intel_runtime_pm_restore_interrupts(dev);
 
 		intel_modeset_init_hw(dev);
Signature · 1 line
2.0.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 31 lines · On Mon, 8 Sep 2014 18:28:20 +0200 Daniel Vetter <[email protected]> wrote:

This was lost in

commit e11aa362308f5de467ce355a2a2471321b15a35c

Author: Jesse Barnes <[email protected]>
Date:   Wed Jun 18 09:52:55 2014 -0700

drm/i915: use runtime irq suspend/resume in freeze/thaw

which makes the second part of this commen a bit nonsense. Both were originally added in

commit 15239099d7a7a9ecdc1ccb5b187ae4cda5488ff9

Author: Daniel Vetter <[email protected]>
Date:   Tue Mar 5 09:50:58 2013 +0100

drm/i915: enable irqs earlier when resuming

Cc Jesse Barnes <[email protected]>
Cc Imre Deak <[email protected]>
Cc Chris Wilson <[email protected]>
Cc Mika Kuoppala <[email protected]>
---
 drivers/gpu/drm/i915/i915_drv.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/i915/i915_drv.c +0 -0
index 70cc38924040..8aaa6e46b989 100644

drivers/gpu/drm/i915/i915_drv.c static int __i915_drm_thaw(struct drm_device *dev, bool restore_gtt_mappings) · line 686

Quoted 7 lines
drivers/gpu/drm/i915/i915_drv.c +1 -0
@@ -680,6 +680,7 @@ static int __i915_drm_thaw(struct drm_device *dev, bool restore_gtt_mappings)
 		}
 		mutex_unlock(&dev->struct_mutex);
 
+		/* We need working interrupts for modeset enabling ... */
 		intel_runtime_pm_restore_interrupts(dev);
 
 		intel_modeset_init_hw(dev);
Signature · 1 line
Jesse Barnes, Intel Open Source Technology Center