]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu: partial revert VM sync changes
authorChristian König <christian.koenig@amd.com>
Mon, 16 Mar 2020 13:33:33 +0000 (14:33 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Apr 2020 20:20:30 +0000 (16:20 -0400)
We still need to add the VM update fences to the root PD.

So make sure to never sync to those implicitely.

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

index b8639225369611a2fbdfe899bc94ef9f88af8a4a..b87ca171986af0879394d0f09634f641b006d26f 100644 (file)
@@ -249,6 +249,11 @@ int amdgpu_sync_resv(struct amdgpu_device *adev, struct amdgpu_sync *sync,
                    owner != AMDGPU_FENCE_OWNER_UNDEFINED)
                        continue;
 
+               /* Never sync to VM updates either. */
+               if (fence_owner == AMDGPU_FENCE_OWNER_VM &&
+                   owner != AMDGPU_FENCE_OWNER_UNDEFINED)
+                       continue;
+
                /* Ignore fences depending on the sync mode */
                switch (mode) {
                case AMDGPU_SYNC_ALWAYS: