]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit51d96439a706503598e423c1612409bdbd110584
treef74c587c80c53f6f30fdab9d80d41a40bbd1bc5e
parenteb25efc240498b10255df7ad4276ce079949ad3f
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