drm/amdgpu: sync the VM PD/PT before clearing it
Subsystems (2)
PATCH 1/1 drm/amdgpu: sync the VM PD/PT before clearing it
Otherwise we might overwrite stuff which is still in use.
Signed-off-by Christian König <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +5 -0
@@ -329,6 +329,11 @@ static int amdgpu_vm_clear_bo(struct amdgpu_device *adev,amdgpu_ring_pad_ib (ring, &job->ibs[0 ]);WARN_ON (job->ibs[0 ].length_dw >64 ); + r =amdgpu_sync_resv (adev, &job->sync, bo->tbo.resv, +AMDGPU_FENCE_OWNER_UNDEFINED , false); +if (r) + goto error_free; + r =amdgpu_job_submit (job, ring, &vm->entity,AMDGPU_FENCE_OWNER_UNDEFINED , &fence);if (r)
Signature · 6 lines
2.14.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 20180205122828.3371-1-christian.koenig-5C7GfCeVMHo@public.gmane.org
Felix Kuehling
Reviewed-byReviewed-by Felix Kuehling <[email protected]>
Quoted 13 lines · Christian König
Otherwise we might overwrite stuff which is still in use.
Signed-off-by Christian König <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 5 +++++ 1 file changed, 5 insertions(+)drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +0
-0@@ -329,6 +329,11 @@ static int amdgpu_vm_clear_bo(struct amdgpu_device *adev,amdgpu_ring_pad_ib (ring, &job->ibs[0 ]);
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c static int amdgpu_vm_clear_bo(struct amdgpu_device *adev, · line 339
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +5
-0WARN_ON (job->ibs[0 ].length_dw >64 ); + r =amdgpu_sync_resv (adev, &job->sync, bo->tbo.resv, +AMDGPU_FENCE_OWNER_UNDEFINED , false); +if (r) + goto error_free; + r =amdgpu_job_submit (job, ring, &vm->entity,AMDGPU_FENCE_OWNER_UNDEFINED , &fence);if (r)
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx