Is there a generic way to reset a PCI device in Linux from the command line? That is, cause the PCI bus to issue a reset command.
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
migrated from serverfault.com Jan 23 '12 at 10:30
|
The closest thing the PCI bus has to a device level reset is changing the power state to D3 and back to D0. After unloading the driver ( it would be bad to reset the hardware out from under the driver ), you can use |
|||
|
|
|
Since a generic PCI device is not hotpluggable there won't be a way to reset it and have the kernel re-enumerate it. Whatever kind of problems you are trying to solve, there surely is a better way than to just reset it. |
|||
|
|
according to http://www.kernel.org/doc/Documentation/ABI/testing/sysfs-bus-pci you can reset individual functions of the device if that's supported:
|
|||
|
|