Skip to content

Commit bc56678

Browse files
ChristianKoenigAMDalexdeucher
authored andcommitted
drm/amdgpu: stop syncing PRT map operations
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>
1 parent e2e9743 commit bc56678

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1161,7 +1161,7 @@ int amdgpu_vm_bo_update(struct amdgpu_device *adev, struct amdgpu_bo_va *bo_va,
11611161
int r;
11621162

11631163
amdgpu_sync_create(&sync);
1164-
if (clear || !bo) {
1164+
if (clear) {
11651165
mem = NULL;
11661166

11671167
/* Implicitly sync to command submissions in the same VM before
@@ -1176,6 +1176,10 @@ int amdgpu_vm_bo_update(struct amdgpu_device *adev, struct amdgpu_bo_va *bo_va,
11761176
if (r)
11771177
goto error_free;
11781178
}
1179+
} else if (!bo) {
1180+
mem = NULL;
1181+
1182+
/* PRT map operations don't need to sync to anything. */
11791183

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

0 commit comments

Comments
 (0)