Re: [PATCH v4] drm/amdgpu: Fix the race condition for draining retry fault

2025-03-12 Thread Felix Kuehling
Emily <mailto:emily.d...@amd.com>; amd-gfx@lists.freedesktop.org *Subject:* Re: [PATCH v4] drm/amdgpu: Fix the race condition for draining retry fault Thanks for catch up and fix this race condition. It looks good to me. One minor thing below: On 3/6/2025 12:03 AM, Emil

Re: [PATCH v4] drm/amdgpu: Fix the race condition for draining retry fault

2025-03-11 Thread Chen, Xiaogang
Thanks for catch up and fix this race condition. It looks good to me. One minor thing below: On 3/6/2025 12:03 AM, Emily Deng wrote: Issue: In the scenario where svm_range_restore_pages is called, but svm->checkpoint_ts has not been set and the retry fault has not been drained, svm_range_unm

RE: [PATCH v4] drm/amdgpu: Fix the race condition for draining retry fault

2025-03-09 Thread Deng, Emily
[AMD Official Use Only - AMD Internal Distribution Only] From: Chen, Xiaogang Sent: Saturday, March 8, 2025 8:38 AM To: Deng, Emily ; amd-gfx@lists.freedesktop.org Subject: Re: [PATCH v4] drm/amdgpu: Fix the race condition for draining retry fault On 3/6/2025 7:27 PM, Deng, Emily wrote

Re: [PATCH v4] drm/amdgpu: Fix the race condition for draining retry fault

2025-03-07 Thread Chen, Xiaogang
On 3/6/2025 7:27 PM, Deng, Emily wrote: [AMD Official Use Only - AMD Internal Distribution Only] *From:*Chen, Xiaogang *Sent:* Friday, March 7, 2025 1:01 AM *To:* Deng, Emily ; amd-gfx@lists.freedesktop.org *Subject:* Re: [PATCH v4] drm/amdgpu: Fix the race condition for draining retry

RE: [PATCH v4] drm/amdgpu: Fix the race condition for draining retry fault

2025-03-06 Thread Deng, Emily
[AMD Official Use Only - AMD Internal Distribution Only] From: Chen, Xiaogang Sent: Friday, March 7, 2025 1:01 AM To: Deng, Emily ; amd-gfx@lists.freedesktop.org Subject: Re: [PATCH v4] drm/amdgpu: Fix the race condition for draining retry fault Thanks for catch up and fix this race

Re: [PATCH v4] drm/amdgpu: Fix the race condition for draining retry fault

2025-03-06 Thread Felix Kuehling
On 2025-03-06 1:03, Emily Deng wrote: > Issue: > In the scenario where svm_range_restore_pages is called, but > svm->checkpoint_ts > has not been set and the retry fault has not been drained, > svm_range_unmap_from_cpu > is triggered and calls svm_range_free. Meanwhile, svm_range_restore_pages

[PATCH v4] drm/amdgpu: Fix the race condition for draining retry fault

2025-03-05 Thread Emily Deng
Issue: In the scenario where svm_range_restore_pages is called, but svm->checkpoint_ts has not been set and the retry fault has not been drained, svm_range_unmap_from_cpu is triggered and calls svm_range_free. Meanwhile, svm_range_restore_pages continues execution and reaches svm_range_from_addr.