Skip to content

Commit

Permalink
drm/amdgpu: stop syncing PRT map operations
Browse files Browse the repository at this point in the history
Requested by both Bas and Friedrich. Mapping PTEs as PRT doesn't need to
sync for anything.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Friedrich Vock <friedrich.vock@gmx.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Christian König authored and Alex Deucher committed Nov 5, 2024
1 parent e2e9743 commit bc56678
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1161,7 +1161,7 @@ int amdgpu_vm_bo_update(struct amdgpu_device *adev, struct amdgpu_bo_va *bo_va,
int r;

amdgpu_sync_create(&sync);
if (clear || !bo) {
if (clear) {
mem = NULL;

/* Implicitly sync to command submissions in the same VM before
Expand All @@ -1176,6 +1176,10 @@ int amdgpu_vm_bo_update(struct amdgpu_device *adev, struct amdgpu_bo_va *bo_va,
if (r)
goto error_free;
}
} else if (!bo) {
mem = NULL;

/* PRT map operations don't need to sync to anything. */

} else {
struct drm_gem_object *obj = &bo->tbo.base;
Expand Down

0 comments on commit bc56678

Please sign in to comment.