diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-01-24 09:57:18 -0800 | 
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-01-24 09:57:18 -0800 | 
| commit | 62ed8ceda1699acae01b666497f004bfd3d67a6f (patch) | |
| tree | fe38c83c49dfd568b540666948ef78cb9d082c38 /drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c | |
| parent | 1c3415a06b1016a596bfe59e0cfee56c773aa958 (diff) | |
| parent | 7a308bb3016f57e5be11a677d15b821536419d36 (diff) | |
Merge tag 'v4.10-rc5' into for-linus
Sync up with mainline to apply fixup to a commit that came through
power supply tree.
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c | 11 | 
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c index 33e47a43ae32..cc97eee93226 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c @@ -33,26 +33,27 @@ static int amdgpu_benchmark_do_move(struct amdgpu_device *adev, unsigned size,  {  	unsigned long start_jiffies;  	unsigned long end_jiffies; -	struct fence *fence = NULL; +	struct dma_fence *fence = NULL;  	int i, r;  	start_jiffies = jiffies;  	for (i = 0; i < n; i++) {  		struct amdgpu_ring *ring = adev->mman.buffer_funcs_ring; -		r = amdgpu_copy_buffer(ring, saddr, daddr, size, NULL, &fence); +		r = amdgpu_copy_buffer(ring, saddr, daddr, size, NULL, &fence, +				       false);  		if (r)  			goto exit_do_move; -		r = fence_wait(fence, false); +		r = dma_fence_wait(fence, false);  		if (r)  			goto exit_do_move; -		fence_put(fence); +		dma_fence_put(fence);  	}  	end_jiffies = jiffies;  	r = jiffies_to_msecs(end_jiffies - start_jiffies);  exit_do_move:  	if (fence) -		fence_put(fence); +		dma_fence_put(fence);  	return r;  }  | 
