summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_pm.c
diff options
context:
space:
mode:
authorSagar Arun Kamble <sagar.a.kamble@intel.com>2015-09-12 10:17:54 +0530
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-09-23 14:39:15 +0200
commit97c322e713b92b5071ad276f65cabf8a503a7408 (patch)
tree53a4047be502bd2443c62e940ff3f79ae2d29409 /drivers/gpu/drm/i915/intel_pm.c
parent63a4dec2c168b74a39df1eac494501f0f6bf3708 (diff)
downloadtalos-op-linux-97c322e713b92b5071ad276f65cabf8a503a7408.tar.gz
talos-op-linux-97c322e713b92b5071ad276f65cabf8a503a7408.zip
drm/i915: Program GuC MAX IDLE Count
Cc: Alex Dai <yu.dai@intel.com> Cc: Tom O'Rourke <Tom.O'Rourke@intel.com> Cc: Akash Goel <akash.goel@intel.com> Signed-off-by: Sagar Arun Kamble <sagar.a.kamble@intel.com> Reviewed-by: Alex Dai <yu.dai@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_pm.c')
-rw-r--r--drivers/gpu/drm/i915/intel_pm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index 61162b2e3fea..566f5cd85101 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -4865,6 +4865,10 @@ static void gen9_enable_rc6(struct drm_device *dev)
I915_WRITE(GEN6_RC_IDLE_HYSTERSIS, 25); /* 25 * 1280ns */
for_each_ring(ring, dev_priv, unused)
I915_WRITE(RING_MAX_IDLE(ring->mmio_base), 10);
+
+ if (HAS_GUC_UCODE(dev))
+ I915_WRITE(GUC_MAX_IDLE_COUNT, 0xA);
+
I915_WRITE(GEN6_RC_SLEEP, 0);
I915_WRITE(GEN6_RC6_THRESHOLD, 37500); /* 37.5/125ms per EI */
OpenPOWER on IntegriCloud