Ping
Andrey
On 2021-04-22 11:05 a.m., Andrey Grodzovsky wrote:
Hi Bjorn, I am working on graceful device removal on PCI for our amdgppu
driver. As part of it I am triggering device remove by writing echo 1 >
/sys/bus/pci/drivers/amdgpu/xxxx:xx:xx.x/remove
Question - in case there is a DMA operation in flight while I hit the
'remove', is there a way to wait for completion of all the DMA
operations of the device being removed ? Is PCI core taking care of this
or is there an API we can use to do it in the driver's pci_remove
callback ? We are concerned with possible system memory corruptions
otherwise.
Andrey