diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2011-01-18 18:49:25 -0500 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-01-19 07:57:56 -0500 |
commit | ccab5c82759e2ace74b2e84f82d1e0eedd932571 (patch) | |
tree | 5c22ecdd165a432f8024c99df7581901676f1649 /drivers/gpu/drm/i915/intel_display.c | |
parent | 311bd68e024f9006db66cbadc3bd9f62fd663f4b (diff) |
drm/i915: tune Sandy Bridge DRPS constants
These make us increase our frequency much more readily, and decrease
them only after significant idle time, resulting in a 20% performance
increase for nexuiz.
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_display.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index cb9d547aa42b..a90d65dad811 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c | |||
@@ -6630,18 +6630,18 @@ void gen6_enable_rps(struct drm_i915_private *dev_priv) | |||
6630 | I915_WRITE(GEN6_RP_INTERRUPT_LIMITS, | 6630 | I915_WRITE(GEN6_RP_INTERRUPT_LIMITS, |
6631 | 18 << 24 | | 6631 | 18 << 24 | |
6632 | 6 << 16); | 6632 | 6 << 16); |
6633 | I915_WRITE(GEN6_RP_UP_THRESHOLD, 90000); | 6633 | I915_WRITE(GEN6_RP_UP_THRESHOLD, 10000); |
6634 | I915_WRITE(GEN6_RP_DOWN_THRESHOLD, 100000); | 6634 | I915_WRITE(GEN6_RP_DOWN_THRESHOLD, 1000000); |
6635 | I915_WRITE(GEN6_RP_UP_EI, 100000); | 6635 | I915_WRITE(GEN6_RP_UP_EI, 100000); |
6636 | I915_WRITE(GEN6_RP_DOWN_EI, 300000); | 6636 | I915_WRITE(GEN6_RP_DOWN_EI, 5000000); |
6637 | I915_WRITE(GEN6_RP_IDLE_HYSTERSIS, 10); | 6637 | I915_WRITE(GEN6_RP_IDLE_HYSTERSIS, 10); |
6638 | I915_WRITE(GEN6_RP_CONTROL, | 6638 | I915_WRITE(GEN6_RP_CONTROL, |
6639 | GEN6_RP_MEDIA_TURBO | | 6639 | GEN6_RP_MEDIA_TURBO | |
6640 | GEN6_RP_USE_NORMAL_FREQ | | 6640 | GEN6_RP_USE_NORMAL_FREQ | |
6641 | GEN6_RP_MEDIA_IS_GFX | | 6641 | GEN6_RP_MEDIA_IS_GFX | |
6642 | GEN6_RP_ENABLE | | 6642 | GEN6_RP_ENABLE | |
6643 | GEN6_RP_UP_BUSY_MAX | | 6643 | GEN6_RP_UP_BUSY_AVG | |
6644 | GEN6_RP_DOWN_BUSY_MIN); | 6644 | GEN6_RP_DOWN_IDLE_CONT); |
6645 | 6645 | ||
6646 | if (wait_for((I915_READ(GEN6_PCODE_MAILBOX) & GEN6_PCODE_READY) == 0, | 6646 | if (wait_for((I915_READ(GEN6_PCODE_MAILBOX) & GEN6_PCODE_READY) == 0, |
6647 | 500)) | 6647 | 500)) |