]> 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)
commit48b7bb60b3fb88a589adb8b583eb048130854343
tree40faee87cf8636d6162e89f6ecd1db8839cdb46c
parent611129fff0c446fed08a42de4f86ce83ed5b0eae
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