On 6/10/20 6:15 AM, Thomas Hellström
(Intel) wrote:
Can you explain more on this - specifically, which function to reserve the BO, why BO reservation would prevent re-fault of the PTE ?
I indeed intend to call this right after calling drm_dev_unplug from amdgpu_pci_remove while adding drm_dev_enter/exit in ttm_bo_vm_fault (or in amdgpu specific wrapper since I don't see how can I access struct drm_device from ttm_bo_vm_fault) and this in my understanding should stop a PTE from being re-faulted back as you pointed out - so again I don't see how bo reservation would prevent it so it looks like I am missing something...
drm_dev_unplug and drm_dev_enter/exit are RCU synchronized and
so I don't think require any extra memory barriers for visibility
of the removed flag being set
Andrey
|
_______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel