]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: simplify memory accounting for ttm user v2
authorJerome Glisse <jglisse@redhat.com>
Fri, 11 Nov 2011 20:42:57 +0000 (15:42 -0500)
committerDave Airlie <airlied@redhat.com>
Tue, 6 Dec 2011 10:40:11 +0000 (10:40 +0000)
commit0aeb90c47b94f7c56dc82009c806ed0b10cb0365
tree8063f4dfaf1a22bf8cf7a5f0410d4e4929b250ec
parent293f848ac0a4e1090b3bc57d46f2f2f609270c7d
drm/ttm: simplify memory accounting for ttm user v2

Provide helper function to compute the kernel memory size needed
for each buffer object. Move all the accounting inside ttm, simplifying
driver and avoiding code duplication accross them.

v2 fix accounting of ghost object, one would have thought that i
   would have run into the issue since a longtime but it seems
   ghost object are rare when you have plenty of vram ;)

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/radeon/radeon_object.c
drivers/gpu/drm/ttm/ttm_bo.c
drivers/gpu/drm/ttm/ttm_bo_util.c
drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
include/drm/ttm/ttm_bo_api.h
include/drm/ttm/ttm_bo_driver.h