OSDN Git Service

drm/amdgpu: stop adding VM updates fences to the resv obj
authorChristian König <christian.koenig@amd.com>
Fri, 29 Nov 2019 11:44:07 +0000 (12:44 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 9 Dec 2019 22:02:15 +0000 (17:02 -0500)
commit90b69cdc5f159be09d799257661e119a26ea4233
tree1b2fe33926acc19ad25922d045fb3ba2fca37a2e
parente095fc17bbd216ccac7fe06132067ae6e91f01c3
drm/amdgpu: stop adding VM updates fences to the resv obj

Don't add the VM update fences to the resv object and remove
the handling to stop implicitely syncing to them.

Ongoing updates prevent page tables from being evicted and we manually
block for all updates to complete before releasing PDs and PTS.

This way we can do updates even without the resv obj locked.

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