sysfs-bus-pci 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. What: /sys/bus/pci/drivers/.../bind
  2. Date: December 2003
  3. Contact: linux-pci@vger.kernel.org
  4. Description:
  5. Writing a device location to this file will cause
  6. the driver to attempt to bind to the device found at
  7. this location. This is useful for overriding default
  8. bindings. The format for the location is: DDDD:BB:DD.F.
  9. That is Domain:Bus:Device.Function and is the same as
  10. found in /sys/bus/pci/devices/. For example:
  11. # echo 0000:00:19.0 > /sys/bus/pci/drivers/foo/bind
  12. (Note: kernels before 2.6.28 may require echo -n).
  13. What: /sys/bus/pci/drivers/.../unbind
  14. Date: December 2003
  15. Contact: linux-pci@vger.kernel.org
  16. Description:
  17. Writing a device location to this file will cause the
  18. driver to attempt to unbind from the device found at
  19. this location. This may be useful when overriding default
  20. bindings. The format for the location is: DDDD:BB:DD.F.
  21. That is Domain:Bus:Device.Function and is the same as
  22. found in /sys/bus/pci/devices/. For example:
  23. # echo 0000:00:19.0 > /sys/bus/pci/drivers/foo/unbind
  24. (Note: kernels before 2.6.28 may require echo -n).
  25. What: /sys/bus/pci/drivers/.../new_id
  26. Date: December 2003
  27. Contact: linux-pci@vger.kernel.org
  28. Description:
  29. Writing a device ID to this file will attempt to
  30. dynamically add a new device ID to a PCI device driver.
  31. This may allow the driver to support more hardware than
  32. was included in the driver's static device ID support
  33. table at compile time. The format for the device ID is:
  34. VVVV DDDD SVVV SDDD CCCC MMMM PPPP. That is Vendor ID,
  35. Device ID, Subsystem Vendor ID, Subsystem Device ID,
  36. Class, Class Mask, and Private Driver Data. The Vendor ID
  37. and Device ID fields are required, the rest are optional.
  38. Upon successfully adding an ID, the driver will probe
  39. for the device and attempt to bind to it. For example:
  40. # echo "8086 10f5" > /sys/bus/pci/drivers/foo/new_id
  41. What: /sys/bus/pci/drivers/.../remove_id
  42. Date: February 2009
  43. Contact: Chris Wright <chrisw@sous-sol.org>
  44. Description:
  45. Writing a device ID to this file will remove an ID
  46. that was dynamically added via the new_id sysfs entry.
  47. The format for the device ID is:
  48. VVVV DDDD SVVV SDDD CCCC MMMM. That is Vendor ID, Device
  49. ID, Subsystem Vendor ID, Subsystem Device ID, Class,
  50. and Class Mask. The Vendor ID and Device ID fields are
  51. required, the rest are optional. After successfully
  52. removing an ID, the driver will no longer support the
  53. device. This is useful to ensure auto probing won't
  54. match the driver to the device. For example:
  55. # echo "8086 10f5" > /sys/bus/pci/drivers/foo/remove_id
  56. What: /sys/bus/pci/rescan
  57. Date: January 2009
  58. Contact: Linux PCI developers <linux-pci@vger.kernel.org>
  59. Description:
  60. Writing a non-zero value to this attribute will
  61. force a rescan of all PCI buses in the system, and
  62. re-discover previously removed devices.
  63. Depends on CONFIG_HOTPLUG.
  64. What: /sys/bus/pci/devices/.../remove
  65. Date: January 2009
  66. Contact: Linux PCI developers <linux-pci@vger.kernel.org>
  67. Description:
  68. Writing a non-zero value to this attribute will
  69. hot-remove the PCI device and any of its children.
  70. Depends on CONFIG_HOTPLUG.
  71. What: /sys/bus/pci/devices/.../pci_bus/.../rescan
  72. Date: May 2011
  73. Contact: Linux PCI developers <linux-pci@vger.kernel.org>
  74. Description:
  75. Writing a non-zero value to this attribute will
  76. force a rescan of the bus and all child buses,
  77. and re-discover devices removed earlier from this
  78. part of the device tree. Depends on CONFIG_HOTPLUG.
  79. What: /sys/bus/pci/devices/.../rescan
  80. Date: January 2009
  81. Contact: Linux PCI developers <linux-pci@vger.kernel.org>
  82. Description:
  83. Writing a non-zero value to this attribute will
  84. force a rescan of the device's parent bus and all
  85. child buses, and re-discover devices removed earlier
  86. from this part of the device tree.
  87. Depends on CONFIG_HOTPLUG.
  88. What: /sys/bus/pci/devices/.../reset
  89. Date: July 2009
  90. Contact: Michael S. Tsirkin <mst@redhat.com>
  91. Description:
  92. Some devices allow an individual function to be reset
  93. without affecting other functions in the same device.
  94. For devices that have this support, a file named reset
  95. will be present in sysfs. Writing 1 to this file
  96. will perform reset.
  97. What: /sys/bus/pci/devices/.../vpd
  98. Date: February 2008
  99. Contact: Ben Hutchings <bhutchings@solarflare.com>
  100. Description:
  101. A file named vpd in a device directory will be a
  102. binary file containing the Vital Product Data for the
  103. device. It should follow the VPD format defined in
  104. PCI Specification 2.1 or 2.2, but users should consider
  105. that some devices may have malformatted data. If the
  106. underlying VPD has a writable section then the
  107. corresponding section of this file will be writable.
  108. What: /sys/bus/pci/devices/.../virtfnN
  109. Date: March 2009
  110. Contact: Yu Zhao <yu.zhao@intel.com>
  111. Description:
  112. This symbolic link appears when hardware supports the SR-IOV
  113. capability and the Physical Function driver has enabled it.
  114. The symbolic link points to the PCI device sysfs entry of the
  115. Virtual Function whose index is N (0...MaxVFs-1).
  116. What: /sys/bus/pci/devices/.../dep_link
  117. Date: March 2009
  118. Contact: Yu Zhao <yu.zhao@intel.com>
  119. Description:
  120. This symbolic link appears when hardware supports the SR-IOV
  121. capability and the Physical Function driver has enabled it,
  122. and this device has vendor specific dependencies with others.
  123. The symbolic link points to the PCI device sysfs entry of
  124. Physical Function this device depends on.
  125. What: /sys/bus/pci/devices/.../physfn
  126. Date: March 2009
  127. Contact: Yu Zhao <yu.zhao@intel.com>
  128. Description:
  129. This symbolic link appears when a device is a Virtual Function.
  130. The symbolic link points to the PCI device sysfs entry of the
  131. Physical Function this device associates with.
  132. What: /sys/bus/pci/slots/.../module
  133. Date: June 2009
  134. Contact: linux-pci@vger.kernel.org
  135. Description:
  136. This symbolic link points to the PCI hotplug controller driver
  137. module that manages the hotplug slot.
  138. What: /sys/bus/pci/devices/.../label
  139. Date: July 2010
  140. Contact: Narendra K <narendra_k@dell.com>, linux-bugs@dell.com
  141. Description:
  142. Reading this attribute will provide the firmware
  143. given name (SMBIOS type 41 string or ACPI _DSM string) of
  144. the PCI device. The attribute will be created only
  145. if the firmware has given a name to the PCI device.
  146. ACPI _DSM string name will be given priority if the
  147. system firmware provides SMBIOS type 41 string also.
  148. Users:
  149. Userspace applications interested in knowing the
  150. firmware assigned name of the PCI device.
  151. What: /sys/bus/pci/devices/.../index
  152. Date: July 2010
  153. Contact: Narendra K <narendra_k@dell.com>, linux-bugs@dell.com
  154. Description:
  155. Reading this attribute will provide the firmware
  156. given instance (SMBIOS type 41 device type instance) of the
  157. PCI device. The attribute will be created only if the firmware
  158. has given an instance number to the PCI device.
  159. Users:
  160. Userspace applications interested in knowing the
  161. firmware assigned device type instance of the PCI
  162. device that can help in understanding the firmware
  163. intended order of the PCI device.
  164. What: /sys/bus/pci/devices/.../acpi_index
  165. Date: July 2010
  166. Contact: Narendra K <narendra_k@dell.com>, linux-bugs@dell.com
  167. Description:
  168. Reading this attribute will provide the firmware
  169. given instance (ACPI _DSM instance number) of the PCI device.
  170. The attribute will be created only if the firmware has given
  171. an instance number to the PCI device. ACPI _DSM instance number
  172. will be given priority if the system firmware provides SMBIOS
  173. type 41 device type instance also.
  174. Users:
  175. Userspace applications interested in knowing the
  176. firmware assigned instance number of the PCI
  177. device that can help in understanding the firmware
  178. intended order of the PCI device.