Skip to contentSkip to conversation

drm/i915: make sure GPU freq drops to minimum after entering RC6 v2

PATCH Jesse Barnes 1 participant 1 message Apr 22, 2013

lore
Share & tools
lore
#0 lore raw

Ouch good catch. I'll put the cancelation outside the scope of the lock.

--
Jesse Barnes, Intel Open Source Technology Center

-------- Original message --------
From: Daniel Vetter <[email protected]>
Date: 04/22/2013 11:52 AM (GMT-08:00)
To: Jesse Barnes <[email protected]>
Cc: intel-gfx <[email protected]>
Subject: Re: [Intel-gfx] [PATCH] drm/i915: make sure GPU freq drops to minimum after entering RC6 v2

drivers/gpu/drm/i915/intel_pm.c static void gen6_disable_rps(struct drm_device *dev) · line 2550

Quoted 11 lines · Jesse Barnes
drivers/gpu/drm/i915/intel_pm.c +3 -0
index 2557926..4669d8c 100644
@@ -2545,6 +2545,9 @@ static void gen6_disable_rps(struct drm_device *dev)
          spin_unlock_irq(&dev_priv->rps.lock);
 
          I915_WRITE(GEN6_PMIIR, I915_READ(GEN6_PMIIR));
+
+       if (IS_VALLEYVIEW(dev))
+               cancel_delayed_work_sync(&dev_priv->rps.vlv_work);

We hold the rps mutex here, so this can deadlock.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx