drm/i915: Amalgamate GGTT/ppGTT vma debug list walkers
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 4 Aug 2016 06:52:20 +0000 (07:52 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 4 Aug 2016 07:09:13 +0000 (08:09 +0100)
commit894eeecc1e3b47ef115e252ec58eff7ec174e7ef
tree5510f227df0c2200459d4f3b1db156c4c12946a6
parent8dac1e1f2068321fb4b7062d3c5408971f7a7e35
drm/i915: Amalgamate GGTT/ppGTT vma debug list walkers

As we can now have multiple VMA inside the global GTT (with partial
mappings, rotations, etc), it is no longer true that there may just be a
single GGTT entry and so we should walk the full vma_list to count up
the actual usage. In addition to unifying the two walkers, switch from
multiplying the object size for each vma to summing the bound vma sizes.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1470293567-10811-1-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_debugfs.c