diff options
75 files changed, 3146 insertions, 1381 deletions
diff --git a/Documentation/ABI/testing/sysfs-bus-pci b/Documentation/ABI/testing/sysfs-bus-pci index 6bf68053e4b8..25be3250f7d6 100644 --- a/Documentation/ABI/testing/sysfs-bus-pci +++ b/Documentation/ABI/testing/sysfs-bus-pci | |||
| @@ -84,6 +84,16 @@ Description: | |||
| 84 | from this part of the device tree. | 84 | from this part of the device tree. |
| 85 | Depends on CONFIG_HOTPLUG. | 85 | Depends on CONFIG_HOTPLUG. |
| 86 | 86 | ||
| 87 | What: /sys/bus/pci/devices/.../reset | ||
| 88 | Date: July 2009 | ||
| 89 | Contact: Michael S. Tsirkin <mst@redhat.com> | ||
| 90 | Description: | ||
| 91 | Some devices allow an individual function to be reset | ||
| 92 | without affecting other functions in the same device. | ||
| 93 | For devices that have this support, a file named reset | ||
| 94 | will be present in sysfs. Writing 1 to this file | ||
| 95 | will perform reset. | ||
| 96 | |||
| 87 | What: /sys/bus/pci/devices/.../vpd | 97 | What: /sys/bus/pci/devices/.../vpd |
| 88 | Date: February 2008 | 98 | Date: February 2008 |
| 89 | Contact: Ben Hutchings <bhutchings@solarflare.com> | 99 | Contact: Ben Hutchings <bhutchings@solarflare.com> |
diff --git a/Documentation/PCI/pci-error-recovery.txt b/Documentation/PCI/pci-error-recovery.txt index 6650af432523..e83f2ea76415 100644 --- a/Documentation/PCI/pci-error-recovery.txt +++ b/Documentation/PCI/pci-error-recovery.txt | |||
| @@ -4,15 +4,17 @@ | |||
| 4 | February 2, 2006 | 4 | February 2, 2006 |
| 5 | 5 | ||
| 6 | Current document maintainer: | 6 | Current document maintainer: |
| 7 | Linas Vepstas <linas@austin.ibm.com> | 7 | Linas Vepstas <linasvepstas@gmail.com> |
| 8 | updated by Richard Lary <rlary@us.ibm.com> | ||
| 9 | and Mike Mason <mmlnx@us.ibm.com> on 27-Jul-2009 | ||
| 8 | 10 | ||
| 9 | 11 | ||
| 10 | Many PCI bus controllers are able to detect a variety of hardware | 12 | Many PCI bus controllers are able to detect a variety of hardware |
| 11 | PCI errors on the bus, such as parity errors on the data and address | 13 | PCI errors on the bus, such as parity errors on the data and address |
| 12 | busses, as well as SERR and PERR errors. Some of the more advanced | 14 | busses, as well as SERR and PERR errors. Some of the more advanced |
| 13 | chipsets are able to deal with these errors; these include PCI-E chipsets, | 15 | chipsets are able to deal with these errors; these include PCI-E chipsets, |
| 14 | and the PCI-host bridges found on IBM Power4 and Power5-based pSeries | 16 | and the PCI-host bridges found on IBM Power4, Power5 and Power6-based |
| 15 | boxes. A typical action taken is to disconnect the affected device, | 17 | pSeries boxes. A typical action taken is to disconnect the affected device, |
| 16 | halting all I/O to it. The goal of a disconnection is to avoid system | 18 | halting all I/O to it. The goal of a disconnection is to avoid system |
| 17 | corruption; for example, to halt system memory corruption due to DMA's | 19 | corruption; for example, to halt system memory corruption due to DMA's |
| 18 | to "wild" addresses. Typically, a reconnection mechanism is also | 20 | to "wild" addresses. Typically, a reconnection mechanism is also |
| @@ -37,10 +39,11 @@ is forced by the need to handle multi-function devices, that is, | |||
| 37 | devices that have multiple device drivers associated with them. | 39 | devices that have multiple device drivers associated with them. |
| 38 | In the first stage, each driver is allowed to indicate what type | 40 | In the first stage, each driver is allowed to indicate what type |
| 39 | of reset it desires, the choices being a simple re-enabling of I/O | 41 | of reset it desires, the choices being a simple re-enabling of I/O |
| 40 | or requesting a hard reset (a full electrical #RST of the PCI card). | 42 | or requesting a slot reset. |
| 41 | If any driver requests a full reset, that is what will be done. | ||
| 42 | 43 | ||
| 43 | After a full reset and/or a re-enabling of I/O, all drivers are | 44 | If any driver requests a slot reset, that is what will be done. |
| 45 | |||
| 46 | After a reset and/or a re-enabling of I/O, all drivers are | ||
| 44 | again notified, so that they may then perform any device setup/config | 47 | again notified, so that they may then perform any device setup/config |
| 45 | that may be required. After these have all completed, a final | 48 | that may be required. After these have all completed, a final |
| 46 | "resume normal operations" event is sent out. | 49 | "resume normal operations" event is sent out. |
| @@ -101,7 +104,7 @@ if it implements any, it must implement error_detected(). If a callback | |||
| 101 | is not implemented, the corresponding feature is considered unsupported. | 104 | is not implemented, the corresponding feature is considered unsupported. |
| 102 | For example, if mmio_enabled() and resume() aren't there, then it | 105 | For example, if mmio_enabled() and resume() aren't there, then it |
| 103 | is assumed that the driver is not doing any direct recovery and requires | 106 | is assumed that the driver is not doing any direct recovery and requires |
| 104 | a reset. If link_reset() is not implemented, the card is assumed as | ||
