drm/amdgpu: introduce struct amdgpu_bo_user
authorNirmoy Das <nirmoy.das@amd.com>
Fri, 5 Mar 2021 12:00:22 +0000 (13:00 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Apr 2021 20:45:19 +0000 (16:45 -0400)
commit9ad0d033ed4be2370bfff6589fc52ab220e7c514
tree4e4d0c8203c82be7971968f94b7ede8d956bd438
parent9fd5543e9552acff859af7f154bd3402b7983dc5
drm/amdgpu: introduce struct amdgpu_bo_user

Implement a new struct amdgpu_bo_user as subclass of
struct amdgpu_bo and a function to created amdgpu_bo_user
bo with a flag to identify the owner.

v2: amdgpu_bo_to_amdgpu_bo_user -> to_amdgpu_bo_user()

Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h