Skip to contentSkip to conversation

drm/i915: Enable HAS_RUNTIME_PM for BXT

PATCH In review Sagar Arun Kamble 2 participants 2 messages Dec 13, 2015 – Dec 16, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915: Enable HAS_RUNTIME_PM for BXT

From: Sagar Kamble <[email protected]>

With BXT, now all platforms from GEN6 to GEN9 support Runtime PM except IVB.

Cc Paulo Zanoni <[email protected]>
Cc Imre Deak <[email protected]>
Change-Id I700bf5092d6462b64499d876efeaea9dfa540380
---
 drivers/gpu/drm/i915/i915_drv.h | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/i915_drv.h +3 -4
index 9124085..2a9ce02 100644
@@ -2593,10 +2593,9 @@ struct drm_i915_cmd_table {
 #define HAS_PSR(dev)		(IS_HASWELL(dev) || IS_BROADWELL(dev) || \
 				 IS_VALLEYVIEW(dev) || IS_CHERRYVIEW(dev) || \
 				 IS_SKYLAKE(dev) || IS_KABYLAKE(dev))
-#define HAS_RUNTIME_PM(dev)	(IS_GEN6(dev) || IS_HASWELL(dev) || \
-				 IS_BROADWELL(dev) || IS_VALLEYVIEW(dev) || \
-				 IS_CHERRYVIEW(dev) || IS_SKYLAKE(dev) || \
-				 IS_KABYLAKE(dev))
+#define HAS_RUNTIME_PM(dev)	((INTEL_INFO(dev)->gen >= 6) && \
+				 (INTEL_INFO(dev)->gen <= 9) && \
+				 !IS_IVYBRIDGE(dev))
 #define HAS_RC6(dev)		(INTEL_INFO(dev)->gen >= 6)
 #define HAS_RC6p(dev)		(INTEL_INFO(dev)->gen == 6 || IS_IVYBRIDGE(dev))
 
Signature · 6 lines
1.9.1

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw
Quoted 9 lines · Sagar Arun Kamble

From: Sagar Kamble <[email protected]>

With BXT, now all platforms from GEN6 to GEN9 support Runtime PM except IVB.

Cc Paulo Zanoni <[email protected]>
Cc Imre Deak <[email protected]>
Change-Id I700bf5092d6462b64499d876efeaea9dfa540380

It's apparently pure fireworks and we currently don't even have a BXT in CI. Too early imo. Also, really, really, really, really should come in tandem with the patch to enable runtime PM by default on at least some machines, enabling features just on one platform with the excuse that the big issues might get fixed in a few years really isn't sustainable.

Thanks, Daniel

Quoted 29 lines
---
 drivers/gpu/drm/i915/i915_drv.h | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/i915_drv.h +3 -4
index 9124085..2a9ce02 100644
@@ -2593,10 +2593,9 @@ struct drm_i915_cmd_table {
 #define HAS_PSR(dev)		(IS_HASWELL(dev) || IS_BROADWELL(dev) || \
 				 IS_VALLEYVIEW(dev) || IS_CHERRYVIEW(dev) || \
 				 IS_SKYLAKE(dev) || IS_KABYLAKE(dev))
-#define HAS_RUNTIME_PM(dev)	(IS_GEN6(dev) || IS_HASWELL(dev) || \
-				 IS_BROADWELL(dev) || IS_VALLEYVIEW(dev) || \
-				 IS_CHERRYVIEW(dev) || IS_SKYLAKE(dev) || \
-				 IS_KABYLAKE(dev))
+#define HAS_RUNTIME_PM(dev)	((INTEL_INFO(dev)->gen >= 6) && \
+				 (INTEL_INFO(dev)->gen <= 9) && \
+				 !IS_IVYBRIDGE(dev))
 #define HAS_RC6(dev)		(INTEL_INFO(dev)->gen >= 6)
 #define HAS_RC6p(dev)		(INTEL_INFO(dev)->gen == 6 || IS_IVYBRIDGE(dev))
 
Signature · 6 lines
1.9.1

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx