OSDN Git Service

drm/amdgpu: Use FENCE_OWNER_KFD in process_sync_pds_resv
authorFelix Kuehling <Felix.Kuehling@amd.com>
Fri, 7 Jun 2019 15:33:21 +0000 (11:33 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Jul 2019 19:31:51 +0000 (14:31 -0500)
We don't want eviction fences to trigger when waiting for page table
updates to complete during restore. In theory there shouldn't be any
unsignaled eviction fences in the PD reservation object, but I'm
seeing them in instrumented code for reasons not fully understood.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Philip Yang <Philip.Yang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c

index 0aa8145..764c8ef 100644 (file)
@@ -813,7 +813,7 @@ static int process_sync_pds_resv(struct amdkfd_process_info *process_info,
 
                ret = amdgpu_sync_resv(NULL,
                                        sync, pd->tbo.resv,
-                                       AMDGPU_FENCE_OWNER_UNDEFINED, false);
+                                       AMDGPU_FENCE_OWNER_KFD, false);
                if (ret)
                        return ret;
        }