diff options
| author | 2011-01-20 13:19:55 -0800 | |
|---|---|---|
| committer | 2011-01-20 16:18:25 -0800 | |
| commit | d7b9935a347ae954be907ea3d5eb4564ff124c53 (patch) | |
| tree | e830f6ce1e65300db9d6b00b94a9d144fc95c72f /drivers/gpu/drm/i915/intel_ringbuffer.h | |
| parent | ACPI / Battery: remove battery refresh on resume (diff) | |
| download | linux-dev-d7b9935a347ae954be907ea3d5eb4564ff124c53.tar.xz linux-dev-d7b9935a347ae954be907ea3d5eb4564ff124c53.zip | |
i915: Fix i915 suspend delay
During system suspend, the "wait for ring buffer to empty" loop would
always time out after three seconds, because the faster cached ring
buffer head read would always return zero. Force the slow-and-careful
PIO read on all but the first iterations of the loop to fix it.
This also removes the unused (and useless) 'actual_head' variable that
tried to approximate doing this, but did it incorrectly.
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: Dave Airlie <airlied@linux.ie>
Cc: DRI mailing list <dri-devel@lists.freedesktop.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_ringbuffer.h')
| -rw-r--r-- | drivers/gpu/drm/i915/intel_ringbuffer.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.h b/drivers/gpu/drm/i915/intel_ringbuffer.h index be9087e4c9be..5b0abfa881fc 100644 --- a/drivers/gpu/drm/i915/intel_ringbuffer.h +++ b/drivers/gpu/drm/i915/intel_ringbuffer.h @@ -47,7 +47,6 @@ struct intel_ring_buffer { struct drm_device *dev; struct drm_i915_gem_object *obj; - u32 actual_head; u32 head; u32 tail; int space; |
