drm/amdgpu: fix amdgpu_vm_handle_moved as well v2
authorChristian König <christian.koenig@amd.com>
Mon, 11 Sep 2017 14:54:59 +0000 (16:54 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Sep 2017 16:10:06 +0000 (12:10 -0400)
commit4e55eb3879fea6d8c7d414cebaa5bff1da58b4a1
tree40faee87cf8636d6162e89f6ecd1db8839cdb46c
parent4a00f21db800bc64264bb6764c3d0d0878e9f4c4
drm/amdgpu: fix amdgpu_vm_handle_moved as well v2

There is no guarantee that the last BO_VA actually needed an update.

Additional to that all command submissions must wait for moved BOs to
be cleared, not just the first one.

v2: Don't overwrite any newer fence.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h