DMA operations by device when device is fake removed using PCI sysfs 'remove' interface
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: DMA operations by device when device is fake removed using PCI sysfs 'remove' interface
- From: Andrey Grodzovsky <andrey.grodzovsky@xxxxxxx>
- Date: Thu, 22 Apr 2021 11:05:27 -0400
- Cc: "linux-pci@xxxxxxxxxxxxxxx" <linux-pci@xxxxxxxxxxxxxxx>, "Christian.Koenig@xxxxxxx" <Christian.Koenig@xxxxxxx>, "Alexander.Deucher@xxxxxxx" <Alexander.Deucher@xxxxxxx>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1
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
[Index of Archives]
[DMA Engine]
[Linux Coverity]
[Linux USB]
[Video for Linux]
[Linux Audio Users]
[Yosemite News]
[Linux Kernel]
[Linux SCSI]
[Greybus]