drm/amdgpu: use amdgpu_bo_create_user() for when possible
authorNirmoy Das <nirmoy.das@amd.com>
Tue, 9 Mar 2021 07:31:25 +0000 (08:31 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Apr 2021 20:45:28 +0000 (16:45 -0400)
commit22b40f7a3ad17176b05413893228a82823bbe9e5
tree13aae4d661d9df44f39d45c870345c2a09433ada
parent9ad0d033ed4be2370bfff6589fc52ab220e7c514
drm/amdgpu: use amdgpu_bo_create_user() for when possible

Use amdgpu_bo_create_user() for all the BO allocations for
ttm_bo_type_device type.

v2: include amdgpu_amdkfd_alloc_gws() as well it calls amdgpu_bo_create()
    for  ttm_bo_type_device

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_amdkfd.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c