drm/i915: Respect HW RC6 states availability
Subsystems (2)
PATCH 1/1 drm/i915: Respect HW RC6 states availability
If Hardware doesn't allow RC6p or RC6pp we shall avoid end users turning them on, falling back to the only RC6 deepness available.
Signed-off-by Rodrigo Vivi <[email protected]>
--- drivers/gpu/drm/i915/intel_pm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_pm.c +4 -1
@@ -2370,7 +2370,7 @@ static void gen6_disable_rps(struct drm_device *dev)int intel_enable_rc6 (const struct drm_device *dev) {/* Respect the kernel parameter if it is set */ -if (i915_enable_rc6 >=0 ) +if (i915_enable_rc6 =0 )return i915_enable_rc6;if (INTEL_INFO (dev)->gen ==5 ) {
@@ -2394,6 +2394,9 @@ int intel_enable_rc6(const struct drm_device *dev)return INTEL_RC6_ENABLE ; } +if (i915_enable_rc6 >0 ) +return i915_enable_rc6; +DRM_DEBUG_DRIVER ("RC6 and deep RC6 enabled\n" );return (INTEL_RC6_ENABLE | INTEL_RC6p_ENABLE); }
Signature · 1 line
1.7.11.7
drivers/gpu/drm/i915/intel_pm.c static void gen6_disable_rps(struct drm_device *dev) · line 2373
Quoted 10 lines · Rodrigo Vivi
drivers/gpu/drm/i915/intel_pm.c +1
-1@@ -2370,7 +2370,7 @@ static void gen6_disable_rps(struct drm_device *dev)int intel_enable_rc6 (const struct drm_device *dev) {/* Respect the kernel parameter if it is set */ -if (i915_enable_rc6 >=0 ) +if (i915_enable_rc6 =0 )
This doesn't do what you want.
-Chris
Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre