sysfs-bus-pci 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  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/.../msi_irqs/
  65. Date: September, 2011
  66. Contact: Neil Horman <nhorman@tuxdriver.com>
  67. Description:
  68. The /sys/devices/.../msi_irqs directory contains a variable set
  69. of sub-directories, with each sub-directory being named after a
  70. corresponding msi irq vector allocated to that device. Each
  71. numbered sub-directory N contains attributes of that irq.
  72. Note that this directory is not created for device drivers which
  73. do not support msi irqs
  74. What: /sys/bus/pci/devices/.../msi_irqs/<N>/mode
  75. Date: September 2011
  76. Contact: Neil Horman <nhorman@tuxdriver.com>
  77. Description:
  78. This attribute indicates the mode that the irq vector named by
  79. the parent directory is in (msi vs. msix)
  80. What: /sys/bus/pci/devices/.../remove
  81. Date: January 2009
  82. Contact: Linux PCI developers <linux-pci@vger.kernel.org>
  83. Description:
  84. Writing a non-zero value to this attribute will
  85. hot-remove the PCI device and any of its children.
  86. Depends on CONFIG_HOTPLUG.
  87. What: /sys/bus/pci/devices/.../pci_bus/.../rescan
  88. Date: May 2011
  89. Contact: Linux PCI developers <linux-pci@vger.kernel.org>
  90. Description:
  91. Writing a non-zero value to this attribute will
  92. force a rescan of the bus and all child buses,
  93. and re-discover devices removed earlier from this
  94. part of the device tree. Depends on CONFIG_HOTPLUG.
  95. What: /sys/bus/pci/devices/.../rescan
  96. Date: January 2009
  97. Contact: Linux PCI developers <linux-pci@vger.kernel.org>
  98. Description:
  99. Writing a non-zero value to this attribute will
  100. force a rescan of the device's parent bus and all
  101. child buses, and re-discover devices removed earlier
  102. from this part of the device tree.
  103. Depends on CONFIG_HOTPLUG.
  104. What: /sys/bus/pci/devices/.../reset
  105. Date: July 2009
  106. Contact: Michael S. Tsirkin <mst@redhat.com>
  107. Description:
  108. Some devices allow an individual function to be reset
  109. without affecting other functions in the same device.
  110. For devices that have this support, a file named reset
  111. will be present in sysfs. Writing 1 to this file
  112. will perform reset.
  113. What: /sys/bus/pci/devices/.../vpd
  114. Date: February 2008
  115. Contact: Ben Hutchings <bhutchings@solarflare.com>
  116. Description:
  117. A file named vpd in a device directory will be a
  118. binary file containing the Vital Product Data for the
  119. device. It should follow the VPD format defined in
  120. PCI Specification 2.1 or 2.2, but users should consider
  121. that some devices may have malformatted data. If the
  122. underlying VPD has a writable section then the
  123. corresponding section of this file will be writable.
  124. What: /sys/bus/pci/devices/.../virtfnN
  125. Date: March 2009
  126. Contact: Yu Zhao <yu.zhao@intel.com>
  127. Description:
  128. This symbolic link appears when hardware supports the SR-IOV
  129. capability and the Physical Function driver has enabled it.
  130. The symbolic link points to the PCI device sysfs entry of the
  131. Virtual Function whose index is N (0...MaxVFs-1).
  132. What: /sys/bus/pci/devices/.../dep_link
  133. Date: March 2009
  134. Contact: Yu Zhao <yu.zhao@intel.com>
  135. Description:
  136. This symbolic link appears when hardware supports the SR-IOV
  137. capability and the Physical Function driver has enabled it,
  138. and this device has vendor specific dependencies with others.
  139. The symbolic link points to the PCI device sysfs entry of
  140. Physical Function this device depends on.
  141. What: /sys/bus/pci/devices/.../physfn
  142. Date: March 2009
  143. Contact: Yu Zhao <yu.zhao@intel.com>
  144. Description:
  145. This symbolic link appears when a device is a Virtual Function.
  146. The symbolic link points to the PCI device sysfs entry of the
  147. Physical Function this device associates with.
  148. What: /sys/bus/pci/slots/.../module
  149. Date: June 2009
  150. Contact: linux-pci@vger.kernel.org
  151. Description:
  152. This symbolic link points to the PCI hotplug controller driver
  153. module that manages the hotplug slot.
  154. What: /sys/bus/pci/devices/.../label
  155. Date: July 2010
  156. Contact: Narendra K <narendra_k@dell.com>, linux-bugs@dell.com
  157. Description:
  158. Reading this attribute will provide the firmware
  159. given name (SMBIOS type 41 string or ACPI _DSM string) of
  160. the PCI device. The attribute will be created only
  161. if the firmware has given a name to the PCI device.
  162. ACPI _DSM string name will be given priority if the
  163. system firmware provides SMBIOS type 41 string also.
  164. Users:
  165. Userspace applications interested in knowing the
  166. firmware assigned name of the PCI device.
  167. What: /sys/bus/pci/devices/.../index
  168. Date: July 2010
  169. Contact: Narendra K <narendra_k@dell.com>, linux-bugs@dell.com
  170. Description:
  171. Reading this attribute will provide the firmware
  172. given instance (SMBIOS type 41 device type instance) of the
  173. PCI device. The attribute will be created only if the firmware
  174. has given an instance number to the PCI device.
  175. Users:
  176. Userspace applications interested in knowing the
  177. firmware assigned device type instance of the PCI
  178. device that can help in understanding the firmware
  179. intended order of the PCI device.
  180. What: /sys/bus/pci/devices/.../acpi_index
  181. Date: July 2010
  182. Contact: Narendra K <narendra_k@dell.com>, linux-bugs@dell.com
  183. Description:
  184. Reading this attribute will provide the firmware
  185. given instance (ACPI _DSM instance number) of the PCI device.
  186. The attribute will be created only if the firmware has given
  187. an instance number to the PCI device. ACPI _DSM instance number
  188. will be given priority if the system firmware provides SMBIOS
  189. type 41 device type instance also.
  190. Users:
  191. Userspace applications interested in knowing the
  192. firmware assigned instance number of the PCI
  193. device that can help in understanding the firmware
  194. intended order of the PCI device.