Skip to content

Commit 8d4eee9

Browse files
ideakdanvet
authored andcommitted
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>
1 parent 650ad97 commit 8d4eee9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/gpu/drm/i915/i915_drv.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ int vlv_force_gfx_clock(struct drm_i915_private *dev_priv, bool force_on)
944944
#define COND (I915_READ(VLV_GTLC_SURVIVABILITY_REG) & VLV_GFX_CLK_STATUS_BIT)
945945
/* Wait for a previous force-off to settle */
946946
if (force_on) {
947-
err = wait_for(!COND, 5);
947+
err = wait_for(!COND, 20);
948948
if (err) {
949949
DRM_ERROR("timeout waiting for GFX clock force-off (%08x)\n",
950950
I915_READ(VLV_GTLC_SURVIVABILITY_REG));
@@ -961,7 +961,7 @@ int vlv_force_gfx_clock(struct drm_i915_private *dev_priv, bool force_on)
961961
if (!force_on)
962962
return 0;
963963

964-
err = wait_for(COND, 5);
964+
err = wait_for(COND, 20);
965965
if (err)
966966
DRM_ERROR("timeout waiting for GFX clock force-on (%08x)\n",
967967
I915_READ(VLV_GTLC_SURVIVABILITY_REG));

0 commit comments

Comments
 (0)