drm/i915: add accounting for mappable objects in gtt v2
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 1 Oct 2010 20:05:20 +0000 (22:05 +0200)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 27 Oct 2010 22:31:08 +0000 (23:31 +0100)
commitfb7d516af11837126eb1e4a44ab0653bf9b57702
treef74c587c80c53f6f30fdab9d80d41a40bbd1bc5e
parentec57d2602a985b54b53e53098f74fdefc24723af
drm/i915: add accounting for mappable objects in gtt v2

More precisely: For those that _need_ to be mappable. Also add two
BUG_ONs in fault and pin to check the consistency of the mappable
flag.

Changes in v2:
- Add tracking of gtt mappable space (to notice mappable/unmappable
  balancing issues).
- Improve the mappable working set tracking by tracking fault and pin
  separately.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
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