diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-10-24 07:38:05 -0400 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-10-24 15:22:51 -0400 |
commit | 641934069d29211baf82afb93622a426172b67b6 (patch) | |
tree | d00f3e69c1c02ddc96a43f744644e263a8e77a9d /drivers/gpu/drm/i915/intel_ringbuffer.h | |
parent | b6651458d33c309767762a6c3da041573413fd88 (diff) |
drm/i915: Move gpu_write_list to per-ring
... to prevent flush processing of an idle (or even absent) ring.
This fixes a regression during suspend from 87acb0a5.
Reported-and-tested-by: Alexey Fisher <bug-track@fisher-privat.net>
Tested-by: Peter Clifton <pcjc2@cam.ac.uk>
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.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.h b/drivers/gpu/drm/i915/intel_ringbuffer.h index 6ab40c6058f7..a05aff0e5764 100644 --- a/drivers/gpu/drm/i915/intel_ringbuffer.h +++ b/drivers/gpu/drm/i915/intel_ringbuffer.h | |||
@@ -83,6 +83,15 @@ struct intel_ring_buffer { | |||
83 | struct list_head request_list; | 83 | struct list_head request_list; |
84 | 84 | ||
85 | /** | 85 | /** |
86 | * List of objects currently pending a GPU write flush. | ||
87 | * | ||
88 | * All elements on this list will belong to either the | ||
89 | * active_list or flushing_list, last_rendering_seqno can | ||
90 | * be used to differentiate between the two elements. | ||
91 | */ | ||
92 | struct list_head gpu_write_list; | ||
93 | |||
94 | /** | ||
86 | * Do we have some not yet emitted requests outstanding? | 95 | * Do we have some not yet emitted requests outstanding? |
87 | */ | 96 | */ |
88 | bool outstanding_lazy_request; | 97 | bool outstanding_lazy_request; |