提交 6157d3c8 编写于 作者: P Paulo Zanoni 提交者: Daniel Vetter

drm/i915: add BDW runtime PM support

This sould be enough.

v2: BDW should also run hsw_runtime_resume (Ben).
Signed-off-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: NImre Deak <imre.deak@intel.com>
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
上级 3c4c9b81
...@@ -875,8 +875,10 @@ static int intel_runtime_suspend(struct device *device) ...@@ -875,8 +875,10 @@ static int intel_runtime_suspend(struct device *device)
if (IS_GEN6(dev)) if (IS_GEN6(dev))
snb_runtime_suspend(dev_priv); snb_runtime_suspend(dev_priv);
else if (IS_HASWELL(dev)) else if (IS_HASWELL(dev) || IS_BROADWELL(dev))
hsw_runtime_suspend(dev_priv); hsw_runtime_suspend(dev_priv);
else
WARN_ON(1);
i915_gem_release_all_mmaps(dev_priv); i915_gem_release_all_mmaps(dev_priv);
...@@ -911,8 +913,10 @@ static int intel_runtime_resume(struct device *device) ...@@ -911,8 +913,10 @@ static int intel_runtime_resume(struct device *device)
if (IS_GEN6(dev)) if (IS_GEN6(dev))
snb_runtime_resume(dev_priv); snb_runtime_resume(dev_priv);
else if (IS_HASWELL(dev)) else if (IS_HASWELL(dev) || IS_BROADWELL(dev))
hsw_runtime_resume(dev_priv); hsw_runtime_resume(dev_priv);
else
WARN_ON(1);
DRM_DEBUG_KMS("Device resumed\n"); DRM_DEBUG_KMS("Device resumed\n");
return 0; return 0;
......
...@@ -1865,7 +1865,8 @@ struct drm_i915_cmd_table { ...@@ -1865,7 +1865,8 @@ struct drm_i915_cmd_table {
#define HAS_DDI(dev) (INTEL_INFO(dev)->has_ddi) #define HAS_DDI(dev) (INTEL_INFO(dev)->has_ddi)
#define HAS_FPGA_DBG_UNCLAIMED(dev) (INTEL_INFO(dev)->has_fpga_dbg) #define HAS_FPGA_DBG_UNCLAIMED(dev) (INTEL_INFO(dev)->has_fpga_dbg)
#define HAS_PSR(dev) (IS_HASWELL(dev) || IS_BROADWELL(dev)) #define HAS_PSR(dev) (IS_HASWELL(dev) || IS_BROADWELL(dev))
#define HAS_RUNTIME_PM(dev) (IS_GEN6(dev) || IS_HASWELL(dev)) #define HAS_RUNTIME_PM(dev) (IS_GEN6(dev) || IS_HASWELL(dev) || \
IS_BROADWELL(dev))
#define INTEL_PCH_DEVICE_ID_MASK 0xff00 #define INTEL_PCH_DEVICE_ID_MASK 0xff00
#define INTEL_PCH_IBX_DEVICE_ID_TYPE 0x3b00 #define INTEL_PCH_IBX_DEVICE_ID_TYPE 0x3b00
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册