drm/i915: add runtime PM support on Haswell
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 13 Dec 2013 17:22:32 +0000 (15:22 -0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 14 Dec 2013 14:36:03 +0000 (15:36 +0100)
Now that all the infrastructure is in place and all the tests from
pm_pc8 pass, we can finally enable the feature.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h

index 9e4b5ca6ee7235cada79c8494ee912680b35910e..67f2ca1e50e0bf3d86573e3ec4e1401495dce68d 100644 (file)
@@ -1848,7 +1848,7 @@ struct drm_i915_file_private {
 #define HAS_FPGA_DBG_UNCLAIMED(dev)    (INTEL_INFO(dev)->has_fpga_dbg)
 #define HAS_PSR(dev)           (IS_HASWELL(dev) || IS_BROADWELL(dev))
 #define HAS_PC8(dev)           (IS_HASWELL(dev)) /* XXX HSW:ULX */
-#define HAS_RUNTIME_PM(dev)    false
+#define HAS_RUNTIME_PM(dev)    (IS_HASWELL(dev))
 
 #define INTEL_PCH_DEVICE_ID_MASK               0xff00
 #define INTEL_PCH_IBX_DEVICE_ID_TYPE           0x3b00