drm/amdgpu: Let KFD sync with VM fences
authorjsg <jsg@openbsd.org>
Tue, 6 Feb 2024 03:40:18 +0000 (03:40 +0000)
committerjsg <jsg@openbsd.org>
Tue, 6 Feb 2024 03:40:18 +0000 (03:40 +0000)
From Felix Kuehling
0d35c8977be8f220931d437d568f64a7028d0115 in linux-6.6.y/6.6.16
ec9ba4821fa52b5efdbc4cdf0a77497990655231 in mainline linux

sys/dev/pci/drm/amd/amdgpu/amdgpu_sync.c

index 8b3b7b2..5981877 100644 (file)
@@ -195,7 +195,8 @@ static bool amdgpu_sync_test_fence(struct amdgpu_device *adev,
 
        /* Never sync to VM updates either. */
        if (fence_owner == AMDGPU_FENCE_OWNER_VM &&
-           owner != AMDGPU_FENCE_OWNER_UNDEFINED)
+           owner != AMDGPU_FENCE_OWNER_UNDEFINED &&
+           owner != AMDGPU_FENCE_OWNER_KFD)
                return false;
 
        /* Ignore fences depending on the sync mode */