]> git.ipfire.org Git - people/ms/linux.git/commitdiff
drm/amdgpu: update pd while updating vm as well
authorChunming Zhou <David1.Zhou@amd.com>
Thu, 12 Nov 2015 07:33:09 +0000 (15:33 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 16 Nov 2015 16:06:00 +0000 (11:06 -0500)
Change-Id: I93a861cd6707f7d91672b9e19757cc50008cd7a2
Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c

index 087332858853c81da5db0121af9254bdff1db1cb..16dca46314bdc084d0f34a3cc6fac2c0f13cc1f1 100644 (file)
@@ -483,6 +483,9 @@ static void amdgpu_gem_va_update_vm(struct amdgpu_device *adev,
                if (domain == AMDGPU_GEM_DOMAIN_CPU)
                        goto error_unreserve;
        }
+       r = amdgpu_vm_update_page_directory(adev, bo_va->vm);
+       if (r)
+               goto error_unreserve;
 
        r = amdgpu_vm_clear_freed(adev, bo_va->vm);
        if (r)