Linux – Reset a PCI Device in Linux

linuxpci

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.

Best Answer

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:

What:       /sys/bus/pci/devices/.../reset
Description:
            Some devices allow an individual function to be reset
            without affecting other functions in the same device.
            For devices that have this support, a file named reset
            will be present in sysfs.  Writing 1 to this file
            will perform reset.
Related Question