Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce171780 authored by Zou Nan hai's avatar Zou Nan hai Committed by Eric Anholt
Browse files

drm/i915: Enable RC6 on Ironlake.



RC6 allows the GPU to enter a lower power state when the GPU is idle.

Signed-off-by: default avatarZou Nan hai <nanhai.zou@intel.com>
[anholt: Fixed the !renderctx error path to actually not enable RC6.]
Signed-off-by: default avatarEric Anholt <eric@anholt.net>
parent 8545423a
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -5753,6 +5753,7 @@ void intel_init_clock_gating(struct drm_device *dev)
				   ILK_DPFC_DIS2 |
				   ILK_CLK_FBC);
		}
		if (IS_GEN6(dev))
			return;
	} else if (IS_G4X(dev)) {
		uint32_t dspclk_gate;
@@ -5814,9 +5815,11 @@ void intel_init_clock_gating(struct drm_device *dev)
				OUT_RING(MI_FLUSH);
				ADVANCE_LP_RING();
			}
		} else
		} else {
			DRM_DEBUG_KMS("Failed to allocate render context."
				      "Disable RC6\n");
			return;
		}
	}

	if (I915_HAS_RC6(dev) && drm_core_check_feature(dev, DRIVER_MODESET)) {