diff options
author | Christian König <christian.koenig@amd.com> | 2018-01-08 08:48:11 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-02-19 14:17:47 -0500 |
commit | 5a4633c4b880cf8d1fe7df9c55766205cf9bc295 (patch) | |
tree | 63421f601ff8d6584c1df7e5146a26b6649e67e7 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |
parent | ba35222437f457cdc50f3651b36701c9584e4af4 (diff) |
drm/amdgpu: forward pasid to backend flush implementations
rd the pasid from the VM code to the emit_vm_flush function and update
all implementations with the new parameter.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index 21b3915bfec1..2dca47ad4f09 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |||
@@ -513,7 +513,8 @@ int amdgpu_vm_flush(struct amdgpu_ring *ring, struct amdgpu_job *job, bool need_ | |||
513 | struct dma_fence *fence; | 513 | struct dma_fence *fence; |
514 | 514 | ||
515 | trace_amdgpu_vm_flush(ring, job->vmid, job->vm_pd_addr); | 515 | trace_amdgpu_vm_flush(ring, job->vmid, job->vm_pd_addr); |
516 | amdgpu_ring_emit_vm_flush(ring, job->vmid, job->vm_pd_addr); | 516 | amdgpu_ring_emit_vm_flush(ring, job->vmid, job->pasid, |
517 | job->vm_pd_addr); | ||
517 | 518 | ||
518 | r = amdgpu_fence_emit(ring, &fence); | 519 | r = amdgpu_fence_emit(ring, &fence); |
519 | if (r) | 520 | if (r) |