drm/i915: Track objects in global active list (as well as per-ring)
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 19 Oct 2010 09:36:51 +0000 (10:36 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 20 Oct 2010 09:51:51 +0000 (10:51 +0100)
commit69dc4987cbe5fe70ae1c2a08906d431d53cdd242
treee8864d862538096b70a7d12eb1f9763f6faa8c39
parent87acb0a550694ff1a7725ea3a73b80d8ccf56180
drm/i915: Track objects in global active list (as well as per-ring)

To handle retirements, we need per-ring tracking of active objects.
To handle evictions, we need global tracking of active objects.

As we enable more rings, rebuilding the global list from the individual
per-ring lists quickly grows tiresome and overly complicated. Tracking the
active objects in two lists is the lesser of two evils.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_evict.c
drivers/gpu/drm/i915/i915_irq.c