diff options
author | Thomas Daniel <thomas.daniel@intel.com> | 2014-11-13 05:27:05 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-11-19 13:16:45 -0500 |
commit | c86ee3a9f8cddcf2e637da19d6e7c05bdea11a96 (patch) | |
tree | 0c8485ea3924b8151f2062179fb1a7ee8bd93286 /drivers/gpu/drm/i915/intel_ringbuffer.h | |
parent | 54499b2a926964b6b671fd03dcdc83c444b8f467 (diff) |
drm/i915/bdw: Clean up execlist queue items in retire_work
No longer create a work item to clean each execlist queue item.
Instead, move retired execlist requests to a queue and clean up the
items during retire_requests.
v2: Fix legacy ring path broken during overzealous cleanup
v3: Update idle detection to take execlists queue into account
v4: Grab execlist lock when checking queue state
v5: Fix leaking requests by freeing in execlists_retire_requests.
Issue: VIZ-4274
Signed-off-by: Thomas Daniel <thomas.daniel@intel.com>
Reviewed-by: Deepak S <deepak.s@linux.intel.com>
Reviewed-by: Akash Goel <akash.goels@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_ringbuffer.h')
-rw-r--r-- | drivers/gpu/drm/i915/intel_ringbuffer.h | 1 |
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 aab2e2f90a74..85156567044b 100644 --- a/drivers/gpu/drm/i915/intel_ringbuffer.h +++ b/drivers/gpu/drm/i915/intel_ringbuffer.h | |||
@@ -236,6 +236,7 @@ struct intel_engine_cs { | |||
236 | /* Execlists */ | 236 | /* Execlists */ |
237 | spinlock_t execlist_lock; | 237 | spinlock_t execlist_lock; |
238 | struct list_head execlist_queue; | 238 | struct list_head execlist_queue; |
239 | struct list_head execlist_retired_req_list; | ||
239 | u8 next_context_status_buffer; | 240 | u8 next_context_status_buffer; |
240 | u32 irq_keep_mask; /* bitmask for interrupts that should not be masked */ | 241 | u32 irq_keep_mask; /* bitmask for interrupts that should not be masked */ |
241 | int (*emit_request)(struct intel_ringbuffer *ringbuf); | 242 | int (*emit_request)(struct intel_ringbuffer *ringbuf); |