drm/ttm: allocate resource object instead of embedding it v2
authorChristian König <christian.koenig@amd.com>
Thu, 15 Apr 2021 07:52:58 +0000 (09:52 +0200)
committerChristian König <christian.koenig@amd.com>
Fri, 4 Jun 2021 13:16:45 +0000 (15:16 +0200)
commitbfa3357ef9abc9d56a2910222d2deeb9f15c91ff
treed2e8e7898f21a3f39bf8b9961bdbf9fa619e9f0c
parent4e566003571244f508408f59ce78f6ac2ccdba8e
drm/ttm: allocate resource object instead of embedding it v2

To improve the handling we want the establish the resource object as base
class for the backend allocations.

v2: add missing error handling

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210602100914.46246-1-christian.koenig@amd.com
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/radeon/radeon_ttm.c
drivers/gpu/drm/ttm/ttm_bo.c
drivers/gpu/drm/ttm/ttm_bo_util.c
drivers/gpu/drm/ttm/ttm_resource.c
drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c
include/drm/ttm/ttm_bo_api.h
include/drm/ttm/ttm_bo_driver.h
include/drm/ttm/ttm_resource.h