Re: [PATCH v2] drm/amdgpu: Unlocked unmap only clear page table leaves

2025-02-07 Thread Christian König
Am 07.02.25 um 15:53 schrieb Philip Yang: On 2025-02-07 05:17, Christian König wrote: Am 30.01.25 um 17:19 schrieb Philip Yang: On 2025-01-29 11:40, Christian König wrote: Am 23.01.25 um 21:39 schrieb Philip Yang: SVM migration unmap pages from GPU and then update mapping to GPU to recover pa

Re: [PATCH v2] drm/amdgpu: Unlocked unmap only clear page table leaves

2025-02-07 Thread Philip Yang
On 2025-02-07 05:17, Christian König wrote: Am 30.01.25 um 17:19 schrieb Philip Yang: On 2025-01-29 11:40, Christian König wrote: Am 23.01.25 um 21:39 schrieb Philip Yang: SVM migration unmap

Re: [PATCH v2] drm/amdgpu: Unlocked unmap only clear page table leaves

2025-02-07 Thread Christian König
Am 30.01.25 um 17:19 schrieb Philip Yang: On 2025-01-29 11:40, Christian König wrote: Am 23.01.25 um 21:39 schrieb Philip Yang: SVM migration unmap pages from GPU and then update mapping to GPU to recover page fault. Currently unmap clears the PDE entry for range length >= huge page and may fre

Re: [PATCH v2] drm/amdgpu: Unlocked unmap only clear page table leaves

2025-01-30 Thread Philip Yang
On 2025-01-29 11:40, Christian König wrote: Am 23.01.25 um 21:39 schrieb Philip Yang: SVM migration unmap pages from GPU and then update mapping to GPU to recover page fault. Currently unmap clears the PDE entry for

Re: [PATCH v2] drm/amdgpu: Unlocked unmap only clear page table leaves

2025-01-29 Thread Christian König
Am 23.01.25 um 21:39 schrieb Philip Yang: SVM migration unmap pages from GPU and then update mapping to GPU to recover page fault. Currently unmap clears the PDE entry for range length >= huge page and may free PTB bo. Then update mapping should alloc new PT bo, but there is race bug that the fre

[PATCH v2] drm/amdgpu: Unlocked unmap only clear page table leaves

2025-01-23 Thread Philip Yang
SVM migration unmap pages from GPU and then update mapping to GPU to recover page fault. Currently unmap clears the PDE entry for range length >= huge page and may free PTB bo. Then update mapping should alloc new PT bo, but there is race bug that the freed entry bo maybe still on the pt_free list,