From 8e8da360b63edc96e8ba86f1f3b49cec7054a9c5 Mon Sep 17 00:00:00 2001 From: jsg Date: Tue, 6 Feb 2024 03:40:18 +0000 Subject: [PATCH] drm/amdgpu: Let KFD sync with VM fences 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_sync.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_sync.c index 8b3b7b22501..5981877e026 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_sync.c +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_sync.c @@ -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 */ -- 2.20.1