AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/amd/amdgpu: change the flush gpu tlb mode to sync mode.
@ 2024-10-21  5:56 Chong Li
  2024-10-21  8:00 ` Christian König
  0 siblings, 1 reply; 11+ messages in thread
From: Chong Li @ 2024-10-21  5:56 UTC (permalink / raw)
  To: amd-gfx; +Cc: christian.koenig, lincao12, Chong Li

change the gpu tlb flush mode to sync mode to
solve the issue in the rocm stress test.

Signed-off-by: Chong Li <chongli2@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_tlb_fence.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_tlb_fence.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_tlb_fence.c
index 51cddfa3f1e8..4d9ff7b31618 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_tlb_fence.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_tlb_fence.c
@@ -98,7 +98,6 @@ void amdgpu_vm_tlb_fence_create(struct amdgpu_device *adev, struct amdgpu_vm *vm
 	f->adev = adev;
 	f->dependency = *fence;
 	f->pasid = vm->pasid;
-	INIT_WORK(&f->work, amdgpu_tlb_fence_work);
 	spin_lock_init(&f->lock);
 
 	dma_fence_init(&f->base, &amdgpu_tlb_fence_ops, &f->lock,
@@ -106,7 +105,8 @@ void amdgpu_vm_tlb_fence_create(struct amdgpu_device *adev, struct amdgpu_vm *vm
 
 	/* TODO: We probably need a separate wq here */
 	dma_fence_get(&f->base);
-	schedule_work(&f->work);
 
 	*fence = &f->base;
+
+	amdgpu_tlb_fence_work(&f->work);
 }
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-11-04 14:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-21  5:56 [PATCH] drm/amd/amdgpu: change the flush gpu tlb mode to sync mode Chong Li
2024-10-21  8:00 ` Christian König
2024-10-21  9:02   ` Li, Chong(Alan)
2024-10-21 10:08     ` Christian König
     [not found]       ` <DS7PR12MB57687EE5E003280FA4BBCDCD9B432@DS7PR12MB5768.namprd12.prod.outlook.com>
     [not found]         ` <DS7PR12MB57686BB80A2550A59BBEAE2A9B4D2@DS7PR12MB5768.namprd12.prod.outlook.com>
     [not found]           ` <ed87757e-2f1f-4084-a863-cea858648d31@amd.com>
     [not found]             ` <DS7PR12MB57680B09EDA58A48ECEAD0019B4E2@DS7PR12MB5768.namprd12.prod.outlook.com>
     [not found]               ` <24840999-9eb3-4e9c-a134-9eb78f13f8f8@amd.com>
2024-10-25  6:46                 ` Li, Chong(Alan)
2024-10-31  9:54                   ` Li, Chong(Alan)
2024-10-31 10:03                     ` Christian König
2024-11-04  6:43                       ` [PATCH] drm/amdgpu: fix return ramdom value when multiple threads read registers via mes Li, Chong(Alan)
2024-11-04 10:22                         ` Christian König
2024-11-04 10:54                           ` Li, Chong(Alan)
2024-11-04 13:15                             ` Christian König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox