]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: flip the switch for driver allocated resources v2
authorChristian König <christian.koenig@amd.com>
Fri, 30 Apr 2021 07:48:27 +0000 (09:48 +0200)
committerChristian König <christian.koenig@amd.com>
Fri, 4 Jun 2021 13:16:46 +0000 (15:16 +0200)
commitcb1c81467af355829a4a9d8fa3f92ffab355d93c
tree3d24d197d2b3000d457198f733607e73d4b96685
parentd3bcb4b02fe977d6b7a82dbb6288e9223b5b6732
drm/ttm: flip the switch for driver allocated resources v2

Instead of both driver and TTM allocating memory finalize embedding the
ttm_resource object as base into the driver backends.

v2: fix typo in vmwgfx grid mgr and double init in amdgpu_vram_mgr.c

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-10-christian.koenig@amd.com
16 files changed:
drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
drivers/gpu/drm/amd/amdgpu/amdgpu_res_cursor.h
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
drivers/gpu/drm/drm_gem_vram_helper.c
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/nouveau/nouveau_mem.c
drivers/gpu/drm/nouveau/nouveau_mem.h
drivers/gpu/drm/nouveau/nouveau_ttm.c
drivers/gpu/drm/ttm/ttm_range_manager.c
drivers/gpu/drm/ttm/ttm_resource.c
drivers/gpu/drm/ttm/ttm_sys_manager.c
drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c
drivers/gpu/drm/vmwgfx/vmwgfx_thp.c
include/drm/ttm/ttm_range_manager.h
include/drm/ttm/ttm_resource.h