drm/i915: Create a global list of vms
authorBen Widawsky <ben@bwidawsk.net>
Tue, 16 Jul 2013 23:50:07 +0000 (16:50 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 17 Jul 2013 20:24:00 +0000 (22:24 +0200)
commita7bbbd63e79a89b3e7b77eb734f2773ad69a2a43
treef2d4547b66a71293d9403b9917228e362e27a470
parent93bd8649dba3155d1a0ba2a902d9c49f1c75a1da
drm/i915: Create a global list of vms

After we plumb our code to support multiple address spaces (VMs), there
are a few situations where we want to be able to traverse the list of
all address spaces in the system. Cases like eviction, or error state
collection are obvious example.

v2: Delete the global link instead of the list head. While this in and
of itself shouldn't be really be a problem, doing this allows us to WARN
on an non-empty list, which is a problem. (Daniel)

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_drv.h