]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbe80fc0a25f1432e1cc6d9ed7035f3f2517a7164
tree40faee87cf8636d6162e89f6ecd1db8839cdb46c
parent3c3c169914962ed7c3c2c1f025b0af5aa6854ae8
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