diff options
author | Imre Deak <imre.deak@intel.com> | 2014-04-14 13:24:43 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-05-05 03:09:13 -0400 |
commit | 8d4eee9cd7a170342dc6fbc2ee19ae77031a8cd5 (patch) | |
tree | d91538590705be16898b861aaf72f753d28ca7b8 /drivers/gpu/drm/i915 | |
parent | 650ad970a39f8b6164fe8613edc150f585315289 (diff) |
drm/i915: vlv: increase timeout when forcing on the GFX clock
I've seen latencies up to 15msec, so increase the timeout to 20msec.
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index 9f3e977d1877..208e185c16a9 100644 --- a/drivers/gpu/drm/i915/i915_drv.c +++ b/drivers/gpu/drm/i915/i915_drv.c | |||
@@ -944,7 +944,7 @@ int vlv_force_gfx_clock(struct drm_i915_private *dev_priv, bool force_on) | |||
944 | #define COND (I915_READ(VLV_GTLC_SURVIVABILITY_REG) & VLV_GFX_CLK_STATUS_BIT) | 944 | #define COND (I915_READ(VLV_GTLC_SURVIVABILITY_REG) & VLV_GFX_CLK_STATUS_BIT) |
945 | /* Wait for a previous force-off to settle */ | 945 | /* Wait for a previous force-off to settle */ |
946 | if (force_on) { | 946 | if (force_on) { |
947 | err = wait_for(!COND, 5); | 947 | err = wait_for(!COND, 20); |
948 | if (err) { | 948 | if (err) { |
949 | DRM_ERROR("timeout waiting for GFX clock force-off (%08x)\n", | 949 | DRM_ERROR("timeout waiting for GFX clock force-off (%08x)\n", |
950 | I915_READ(VLV_GTLC_SURVIVABILITY_REG)); | 950 | I915_READ(VLV_GTLC_SURVIVABILITY_REG)); |
@@ -961,7 +961,7 @@ int vlv_force_gfx_clock(struct drm_i915_private *dev_priv, bool force_on) | |||
961 | if (!force_on) | 961 | if (!force_on) |
962 | return 0; | 962 | return 0; |
963 | 963 | ||
964 | err = wait_for(COND, 5); | 964 | err = wait_for(COND, 20); |
965 | if (err) | 965 | if (err) |
966 | DRM_ERROR("timeout waiting for GFX clock force-on (%08x)\n", | 966 | DRM_ERROR("timeout waiting for GFX clock force-on (%08x)\n", |
967 | I915_READ(VLV_GTLC_SURVIVABILITY_REG)); | 967 | I915_READ(VLV_GTLC_SURVIVABILITY_REG)); |