On Wed, Aug 03, 2016 at 02:44:37PM -0700, Rodrigo Vivi wrote: > +void intel_psr_rpm_block(struct drm_i915_private *dev_priv) > +{ if (WARN_ON(dev_priv->psr.rpm_block)) return; dev_priv->psr.rpm_block = true; if (READ_ONCE(!dev_priv->psr.enabled)) return; mutex_lock(&dev_priv->psr.lock); intel_psr_exit(dev_priv); mutex_unlock(&dev_priv->psr.lock); > +} > +void intel_psr_rpm_unblock(struct drm_i915_private *dev_priv) > +{ if (WARN_ON(!dev_priv->psr.rpm_block)) return; dev_priv->psr.rpm_block = false; if (READ_ONCE(!dev_priv->psr.enabled)) return; mutex_lock(&dev_priv->psr.lock); /* intel_psr_enter() ? */ if (dev_priv->psr.enabled) schedule_delayed_work(&dev_priv->psr.work, msecs_to_jiffies(100)); mutex_unlock(&dev_priv->psr.lock); > +} -- Chris Wilson, Intel Open Source Technology Centre _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx