mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
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:
committed by
Alex Deucher
parent
e95b41846d
commit
35bb80e683
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user