drm/amdgpu: sync the VM PD/PT before clearing it
authorChristian König <christian.koenig@amd.com>
Sun, 4 Feb 2018 18:36:52 +0000 (19:36 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:19:26 +0000 (14:19 -0500)
commit29e8357b4cbbfcee6d375f2d183b674b678923d7
treea1c98bc7f78c3c96e760b006d6faa77b5af92d73
parentc8ce5da527df333faedc54627ba31441edd40710
drm/amdgpu: sync the VM PD/PT before clearing it

Otherwise we might overwrite stuff which is still in use.

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>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c