drm/ttm: introduce callback for ttm_tt populate & unpopulate V4
authorJerome Glisse <jglisse@redhat.com>
Thu, 3 Nov 2011 03:59:28 +0000 (23:59 -0400)
committerDave Airlie <airlied@redhat.com>
Tue, 6 Dec 2011 10:39:24 +0000 (10:39 +0000)
commitb1e5f172325547270f35e7d1e42416a606e1dbd2
tree03fc21fd5f74add89441308008b45987d09cfbc6
parent649bf3ca77343e3be1e0af8e21356fa569b1abd9
drm/ttm: introduce callback for ttm_tt populate & unpopulate V4

Move the page allocation and freeing to driver callback and
provide ttm code helper function for those.

Most intrusive change, is the fact that we now only fully
populate an object this simplify some of code designed around
the page fault design.

V2 Rebase on top of memory accounting overhaul
V3 New rebase on top of more memory accouting changes
V4 Rebase on top of no memory account changes (where/when is my
   delorean when i need it ?)

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/radeon/radeon_ttm.c
drivers/gpu/drm/ttm/ttm_bo_util.c
drivers/gpu/drm/ttm/ttm_bo_vm.c
drivers/gpu/drm/ttm/ttm_page_alloc.c
drivers/gpu/drm/ttm/ttm_tt.c
drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c
include/drm/ttm/ttm_bo_driver.h
include/drm/ttm/ttm_page_alloc.h