drm/amdkfd: test release process eviction fence before signal
Subsystems (3)
PATCH 1/1 drm/amdkfd: test release process eviction fence before signal
It requires to validate the release process eviction fence before signal the fence.
--- drivers/gpu/drm/amd/amdkfd/kfd_process.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdkfd/kfd_process.c +2 -1
@@ -1160,7 +1160,8 @@ static void kfd_process_wq_release(struct work_struct *work)*/ synchronize_rcu (); ef =rcu_access_pointer (p->ef); -dma_fence_signal (ef); +if (ef) +dma_fence_signal (ef);kfd_process_remove_sysfs (p);
Signature · 1 line
2.34.1
Hello Prike
This issue has already been fixed, please see:
https://www.spinics.net/lists/amd-gfx/msg117071.html
Thanks
Lingshan
Quoted 22 lines · Prike Liang
It requires to validate the release process eviction fence before signal the fence.
Signed-off-by Prike Liang <[email protected]>--- drivers/gpu/drm/amd/amdkfd/kfd_process.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdkfd/kfd_process.c +2
-1@@ -1160,7 +1160,8 @@ static void kfd_process_wq_release(struct work_struct *work)*/ synchronize_rcu (); ef =rcu_access_pointer (p->ef); -dma_fence_signal (ef); +if (ef) +dma_fence_signal (ef);kfd_process_remove_sysfs (p);
[AMD Official Use Only - AMD Internal Distribution Only]
Thanks for the information. I draft this patch to resolve the HIP stream test that complained about the KFD process signals an invalidate fence on the latest drm-next branch. BTW, it looks like your patch still hasn't landed in the drm-next branch.
Regards,
Prike
Quoted 41 lines
-----Original Message-----
From: Zhu, Lingshan <[email protected]>
Sent: Thursday, January 2, 2025 3:13 PM
To: Liang, Prike <[email protected]>; [email protected]
Cc: Deucher, Alexander <[email protected]>; Kuehling, Felix <[email protected]>; Koenig, Christian <[email protected]>; Kasiviswanathan, Harish <[email protected]>
Subject: Re: [PATCH] drm/amdkfd: test release process eviction fence before signalHello Prike
This issue has already been fixed, please see:
https://www.spinics.net/lists/amd-gfx/msg117071.htmlThanks
Lingshandrivers/gpu/drm/amd/amdkfd/kfd_process.c static void kfd_process_wq_release(struct work_struct
Quoted 14 lines · Prike Liang
It requires to validate the release process eviction fence before signal the fence.
Signed-off-by Prike Liang <[email protected]>--- drivers/gpu/drm/amd/amdkfd/kfd_process.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdkfd/kfd_process.c +0
-0@@ -1160,7 +1160,8 @@ static void kfd_process_wq_release(struct work_struct*work)
Quoted 9 lines
drivers/gpu/drm/amd/amdkfd/kfd_process.c +2
-1*/ synchronize_rcu (); ef =rcu_access_pointer (p->ef); -dma_fence_signal (ef); +if (ef) +dma_fence_signal (ef);kfd_process_remove_sysfs (p);
[AMD Official Use Only - AMD Internal Distribution Only]
There is currently a bug in CI (requiring Intel Graphic Card which is totally nonsense ) blocking this merge request.
Thanks
Lingshan
-----Original Message-----
From: Liang, Prike <[email protected]>
Sent: Thursday, January 2, 2025 4:04 PM
To: Zhu, Lingshan <[email protected]>; [email protected]
Cc: Deucher, Alexander <[email protected]>; Kuehling, Felix <[email protected]>; Koenig, Christian <[email protected]>; Kasiviswanathan, Harish <[email protected]>
Subject: RE: [PATCH] drm/amdkfd: test release process eviction fence before signal
[AMD Official Use Only - AMD Internal Distribution Only]
Thanks for the information. I draft this patch to resolve the HIP stream test that complained about the KFD process signals an invalidate fence on the latest drm-next branch. BTW, it looks like your patch still hasn't landed in the drm-next branch.
Regards,
Prike
Quoted 44 lines
-----Original Message-----
From: Zhu, Lingshan <[email protected]>
Sent: Thursday, January 2, 2025 3:13 PM
To: Liang, Prike <[email protected]>; [email protected]
Cc: Deucher, Alexander <[email protected]>; Kuehling, Felix <[email protected]>; Koenig, Christian <[email protected]>; Kasiviswanathan, Harish <[email protected]>
Subject: Re: [PATCH] drm/amdkfd: test release process eviction fence before signalHello Prike
This issue has already been fixed, please see:
https://www.spinics.net/lists/amd-gfx/msg117071.htmlThanks
LingshanQuoted 14 lines · Prike Liang
It requires to validate the release process eviction fence before signal the fence.
Signed-off-by Prike Liang <[email protected]>--- drivers/gpu/drm/amd/amdkfd/kfd_process.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdkfd/kfd_process.c +0
-0@@ -1160,7 +1160,8 @@ static void kfd_process_wq_release(structQuoted 1 line
work_struct*work)
Quoted 9 lines
*/ synchronize_rcu(); ef = rcu_access_pointer(p->ef);drivers/gpu/drm/amd/amdkfd/kfd_process.c +2
-1-dma_fence_signal (ef); +if (ef) +dma_fence_signal (ef);kfd_process_remove_sysfs (p);