drm/i915: add BDW runtime PM support

This sould be enough.

v2: BDW should also run hsw_runtime_resume (Ben).

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>
This commit is contained in:
Paulo Zanoni
2014-03-07 20:12:37 -03:00
committed by Daniel Vetter
parent 3c4c9b819f
commit 6157d3c83a
2 changed files with 8 additions and 3 deletions

View File

@@ -875,8 +875,10 @@ static int intel_runtime_suspend(struct device *device)
if (IS_GEN6(dev))
snb_runtime_suspend(dev_priv);
else if (IS_HASWELL(dev))
else if (IS_HASWELL(dev) || IS_BROADWELL(dev))
hsw_runtime_suspend(dev_priv);
else
WARN_ON(1);
i915_gem_release_all_mmaps(dev_priv);
@@ -911,8 +913,10 @@ static int intel_runtime_resume(struct device *device)
if (IS_GEN6(dev))
snb_runtime_resume(dev_priv);
else if (IS_HASWELL(dev))
else if (IS_HASWELL(dev) || IS_BROADWELL(dev))
hsw_runtime_resume(dev_priv);
else
WARN_ON(1);
DRM_DEBUG_KMS("Device resumed\n");
return 0;