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

2025-03-05 Thread Deng, Emily
[AMD Official Use Only - AMD Internal Distribution Only] >-Original Message- >From: Lazar, Lijo >Sent: Thursday, March 6, 2025 1:12 PM >To: Deng, Emily ; amd-gfx@lists.freedesktop.org >Subject: Re: [PATCH v3] drm/amdgpu: Fix the race condition for draining retry >f

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

2025-03-05 Thread Lazar, Lijo
On 3/6/2025 7:23 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_unmap_from_cpu > is triggered and calls svm_range_free. Meanwhile, svm_range_restore_pag

[PATCH v3] 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.