drm/amdgpu: pass the entity to use to ttm public functions

This way the caller can select the one it wants to use.

Signed-off-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Acked-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Pierre-Eric Pelloux-Prayer
2025-11-17 15:53:15 +01:00
committed by Alex Deucher
parent e95b41846d
commit 35bb80e683
5 changed files with 32 additions and 29 deletions

View File

@@ -37,7 +37,8 @@ static int amdgpu_benchmark_do_move(struct amdgpu_device *adev, unsigned size,
stime = ktime_get();
for (i = 0; i < n; i++) {
r = amdgpu_copy_buffer(adev, saddr, daddr, size, NULL, &fence,
r = amdgpu_copy_buffer(adev, &adev->mman.default_entity,
saddr, daddr, size, NULL, &fence,
false, 0);
if (r)
goto exit_do_move;