drm/ttm: flip over the range manager to self allocated nodes
authorChristian König <christian.koenig@amd.com>
Sat, 17 Apr 2021 16:48:36 +0000 (18:48 +0200)
committerChristian König <christian.koenig@amd.com>
Fri, 4 Jun 2021 13:16:45 +0000 (15:16 +0200)
commit3eb7d96e94150304011d214750b45766cf62d9c9
treeeaed91606a2a0bd30d82dbd993fc642efa5e2345
parentbfa3357ef9abc9d56a2910222d2deeb9f15c91ff
drm/ttm: flip over the range manager to self allocated nodes

Start with the range manager to make the resource object the base
class for the allocated nodes.

While at it cleanup a lot of the code around that.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210602100914.46246-2-christian.koenig@amd.com
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
drivers/gpu/drm/drm_gem_vram_helper.c
drivers/gpu/drm/nouveau/nouveau_ttm.c
drivers/gpu/drm/qxl/qxl_ttm.c
drivers/gpu/drm/radeon/radeon_ttm.c
drivers/gpu/drm/ttm/ttm_range_manager.c
drivers/gpu/drm/ttm/ttm_resource.c
include/drm/ttm/ttm_bo_driver.h
include/drm/ttm/ttm_range_manager.h [new file with mode: 0644]
include/drm/ttm/ttm_resource.h