aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_ringbuffer.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-12-22 09:04:47 -0500
committerChris Wilson <chris@chris-wilson.co.uk>2011-01-11 15:35:41 -0500
commit55249baaa5cd188ebd9acdb047eeaed8092e4a93 (patch)
treeec52e1bdb516ce0bd259614b3c068960450b9236 /drivers/gpu/drm/i915/intel_ringbuffer.h
parent35c3047ad15849335242b847c94f180ef45db490 (diff)
drm/i915: Workaround erratum on i830 for TAIL pointer within last 2 cachelines
On i830 if the tail pointer is set to within 2 cachelines of the end of the buffer, the chip may hang. So instead if the tail were to land in that location, we pad the end of the buffer with NOPs, and start again at the beginning. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_ringbuffer.h')
-rw-r--r--drivers/gpu/drm/i915/intel_ringbuffer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.h b/drivers/gpu/drm/i915/intel_ringbuffer.h
index 8e2e357ad6ee..bbbf505c8b56 100644
--- a/drivers/gpu/drm/i915/intel_ringbuffer.h
+++ b/drivers/gpu/drm/i915/intel_ringbuffer.h
@@ -49,6 +49,7 @@ struct intel_ring_buffer {
49 u32 tail; 49 u32 tail;
50 int space; 50 int space;
51 int size; 51 int size;
52 int effective_size;
52 struct intel_hw_status_page status_page; 53 struct intel_hw_status_page status_page;
53 54
54 u32 irq_seqno; /* last seq seem at irq time */ 55 u32 irq_seqno; /* last seq seem at irq time */