diff options
author | Christian König <christian.koenig@amd.com> | 2019-12-16 14:22:35 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-02-04 23:30:39 -0500 |
commit | 81417bea8755c914134aaf3f46b56be52f4e273a (patch) | |
tree | 68b67e1b7114ba3e68f2e36977d279cbf9a55a32 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c | |
parent | 58fe03d6dec908a1bec07eea7e94907af5c07eec (diff) | |
download | linux-stable-81417bea8755c914134aaf3f46b56be52f4e273a.tar.gz linux-stable-81417bea8755c914134aaf3f46b56be52f4e273a.tar.bz2 linux-stable-81417bea8755c914134aaf3f46b56be52f4e273a.zip |
drm/amdgpu: explicitly sync VM update to PDs/PTs
Explicitly sync VM updates to the moving fence in PDs and PTs.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c index 73fec7a0ced5..68b013be3837 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c @@ -86,6 +86,13 @@ static int amdgpu_vm_cpu_update(struct amdgpu_vm_update_params *p, { unsigned int i; uint64_t value; + int r; + + if (bo->tbo.moving) { + r = dma_fence_wait(bo->tbo.moving, true); + if (r) + return r; + } pe += (unsigned long)amdgpu_bo_kptr(bo); |