diff options
author | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2014-02-21 13:52:26 -0300 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-03-05 21:30:19 +0100 |
commit | e998c40fed02c258404d11dcf66409c390e3ef9a (patch) | |
tree | 98781ab64eee5acc7ddc25f8af3453f6655848fc /drivers/gpu/drm/i915/intel_uncore.c | |
parent | b2ec142cb0101f298f8e091c7d75b1ec5b809b65 (diff) | |
download | op-kernel-dev-e998c40fed02c258404d11dcf66409c390e3ef9a.zip op-kernel-dev-e998c40fed02c258404d11dcf66409c390e3ef9a.tar.gz |
drm/i915: assert force wake is disabled when we runtime suspend
Just to be sure...
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_uncore.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_uncore.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_uncore.c b/drivers/gpu/drm/i915/intel_uncore.c index 467d568..8cb0a33 100644 --- a/drivers/gpu/drm/i915/intel_uncore.c +++ b/drivers/gpu/drm/i915/intel_uncore.c @@ -428,6 +428,14 @@ out: intel_runtime_pm_put(dev_priv); } +void assert_force_wake_inactive(struct drm_i915_private *dev_priv) +{ + if (!dev_priv->uncore.funcs.force_wake_get) + return; + + WARN_ON(dev_priv->uncore.forcewake_count > 0); +} + /* We give fast paths for the really cool registers */ #define NEEDS_FORCE_WAKE(dev_priv, reg) \ ((reg) < 0x40000 && (reg) != FORCEWAKE) |