Recovering from driver-detected 'surprise removal'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Is there an easy way for a driver get a pcie device removed
(as in echo 1 > /sys/devices/pcixxx/xxxx/remove)
and then force a rescan of the bus?

Clearly it could ask a daemon to do it - but finding the
correct entry in /sys/devices isn't entirely trivial.
(Or rather I don't know the trival way... )

The initial trigger would be a read returning ~0u.
But other things can be done to confirm the error.
eg: Reading config space and getting all zeros for the BARs
    indicating that the endpoint has reset itself.

	David




[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux