Recovering a PCIe device

Use the recover sysfs attribute to recover a PCIe device.

About this task

A message is displayed when a PCIe device enters the error state. It is not possible to automatically relieve the PCIe device from this state.

Procedure

  1. Find the PCIe device directory in sysfs.
    PCIe device directories are of the form /sys/devices/pci<dev> where <dev> is the device ID.
    For example: /sys/devices/pci0000:00/0000:00:00.0/.
  2. Write 1 to the recover attribute of the PCIe device.
    For example:
    # echo 1 > /sys/devices/pci0000:00/0000:00:00.0/recover
    After a successful recovery, the PCI device is de-registered and reprobed.