]> Git Repo - J-linux.git/blobdiff - drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c
drm/amdgpu: use string choice helpers
[J-linux.git] / drivers / gpu / drm / amd / amdgpu / amdgpu_vm_cpu.c
index 3895bd7d176a9d1547bdfe0f2019919b033a6cc5..0c1ef5850a5eba0d22c0878157048aadad6fd943 100644 (file)
@@ -39,20 +39,18 @@ static int amdgpu_vm_cpu_map_table(struct amdgpu_bo_vm *table)
  * amdgpu_vm_cpu_prepare - prepare page table update with the CPU
  *
  * @p: see amdgpu_vm_update_params definition
- * @resv: reservation object with embedded fence
- * @sync_mode: synchronization mode
+ * @sync: sync obj with fences to wait on
  *
  * Returns:
  * Negativ errno, 0 for success.
  */
 static int amdgpu_vm_cpu_prepare(struct amdgpu_vm_update_params *p,
-                                struct dma_resv *resv,
-                                enum amdgpu_sync_mode sync_mode)
+                                struct amdgpu_sync *sync)
 {
-       if (!resv)
+       if (!sync)
                return 0;
 
-       return amdgpu_bo_sync_wait_resv(p->adev, resv, sync_mode, p->vm, true);
+       return amdgpu_sync_wait(sync, true);
 }
 
 /**
This page took 0.030258 seconds and 4 git commands to generate.