sysfs-bus-pci 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  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. What: /sys/bus/pci/devices/.../msi_irqs/
  64. Date: September, 2011
  65. Contact: Neil Horman <nhorman@tuxdriver.com>
  66. Description:
  67. The /sys/devices/.../msi_irqs directory contains a variable set
  68. of files, with each file being named after a corresponding msi
  69. irq vector allocated to that device.
  70. What: /sys/bus/pci/devices/.../msi_irqs/<N>
  71. Date: September 2011
  72. Contact: Neil Horman <nhorman@tuxdriver.com>
  73. Description:
  74. This attribute indicates the mode that the irq vector named by
  75. the file is in (msi vs. msix)
  76. What: /sys/bus/pci/devices/.../remove
  77. Date: January 2009
  78. Contact: Linux PCI developers <linux-pci@vger.kernel.org>
  79. Description:
  80. Writing a non-zero value to this attribute will
  81. hot-remove the PCI device and any of its children.
  82. What: /sys/bus/pci/devices/.../pci_bus/.../rescan
  83. Date: May 2011
  84. Contact: Linux PCI developers <linux-pci@vger.kernel.org>
  85. Description:
  86. Writing a non-zero value to this attribute will
  87. force a rescan of the bus and all child buses,
  88. and re-discover devices removed earlier from this
  89. part of the device tree.
  90. What: /sys/bus/pci/devices/.../rescan
  91. Date: January 2009
  92. Contact: Linux PCI developers <linux-pci@vger.kernel.org>
  93. Description:
  94. Writing a non-zero value to this attribute will
  95. force a rescan of the device's parent bus and all
  96. child buses, and re-discover devices removed earlier
  97. from this part of the device tree.
  98. What: /sys/bus/pci/devices/.../reset
  99. Date: July 2009
  100. Contact: Michael S. Tsirkin <mst@redhat.com>
  101. Description:
  102. Some devices allow an individual function to be reset
  103. without affecting other functions in the same device.
  104. For devices that have this support, a file named reset
  105. will be present in sysfs. Writing 1 to this file
  106. will perform reset.
  107. What: /sys/bus/pci/devices/.../vpd
  108. Date: February 2008
  109. Contact: Ben Hutchings <bhutchings@solarflare.com>
  110. Description:
  111. A file named vpd in a device directory will be a
  112. binary file containing the Vital Product Data for the
  113. device. It should follow the VPD format defined in
  114. PCI Specification 2.1 or 2.2, but users should consider
  115. that some devices may have malformatted data. If the
  116. underlying VPD has a writable section then the
  117. corresponding section of this file will be writable.
  118. What: /sys/bus/pci/devices/.../virtfnN
  119. Date: March 2009
  120. Contact: Yu Zhao <yu.zhao@intel.com>
  121. Description:
  122. This symbolic link appears when hardware supports the SR-IOV
  123. capability and the Physical Function driver has enabled it.
  124. The symbolic link points to the PCI device sysfs entry of the
  125. Virtual Function whose index is N (0...MaxVFs-1).
  126. What: /sys/bus/pci/devices/.../dep_link
  127. Date: March 2009
  128. Contact: Yu Zhao <yu.zhao@intel.com>
  129. Description:
  130. This symbolic link appears when hardware supports the SR-IOV
  131. capability and the Physical Function driver has enabled it,
  132. and this device has vendor specific dependencies with others.
  133. The symbolic link points to the PCI device sysfs entry of
  134. Physical Function this device depends on.
  135. What: /sys/bus/pci/devices/.../physfn
  136. Date: March 2009
  137. Contact: Yu Zhao <yu.zhao@intel.com>
  138. Description:
  139. This symbolic link appears when a device is a Virtual Function.
  140. The symbolic link points to the PCI device sysfs entry of the
  141. Physical Function this device associates with.
  142. What: /sys/bus/pci/slots/.../module
  143. Date: June 2009
  144. Contact: linux-pci@vger.kernel.org
  145. Description:
  146. This symbolic link points to the PCI hotplug controller driver
  147. module that manages the hotplug slot.
  148. What: /sys/bus/pci/devices/.../label
  149. Date: July 2010
  150. Contact: Narendra K <narendra_k@dell.com>, linux-bugs@dell.com
  151. Description:
  152. Reading this attribute will provide the firmware
  153. given name (SMBIOS type 41 string or ACPI _DSM string) of
  154. the PCI device. The attribute will be created only
  155. if the firmware has given a name to the PCI device.
  156. ACPI _DSM string name will be given priority if the
  157. system firmware provides SMBIOS type 41 string also.
  158. Users:
  159. Userspace applications interested in knowing the
  160. firmware assigned name of the PCI device.
  161. What: /sys/bus/pci/devices/.../index
  162. Date: July 2010
  163. Contact: Narendra K <narendra_k@dell.com>, linux-bugs@dell.com
  164. Description:
  165. Reading this attribute will provide the firmware
  166. given instance (SMBIOS type 41 device type instance) of the
  167. PCI device. The attribute will be created only if the firmware
  168. has given an instance number to the PCI device.
  169. Users:
  170. Userspace applications interested in knowing the
  171. firmware assigned device type instance of the PCI
  172. device that can help in understanding the firmware
  173. intended order of the PCI device.
  174. What: /sys/bus/pci/devices/.../acpi_index
  175. Date: July 2010
  176. Contact: Narendra K <narendra_k@dell.com>, linux-bugs@dell.com
  177. Description:
  178. Reading this attribute will provide the firmware
  179. given instance (ACPI _DSM instance number) of the PCI device.
  180. The attribute will be created only if the firmware has given
  181. an instance number to the PCI device. ACPI _DSM instance number
  182. will be given priority if the system firmware provides SMBIOS
  183. type 41 device type instance also.
  184. Users:
  185. Userspace applications interested in knowing the
  186. firmware assigned instance number of the PCI
  187. device that can help in understanding the firmware
  188. intended order of the PCI device.
  189. What: /sys/bus/pci/devices/.../d3cold_allowed
  190. Date: July 2012
  191. Contact: Huang Ying <ying.huang@intel.com>
  192. Description:
  193. d3cold_allowed is bit to control whether the corresponding PCI
  194. device can be put into D3Cold state. If it is cleared, the
  195. device will never be put into D3Cold state. If it is set, the
  196. device may be put into D3Cold state if other requirements are
  197. satisfied too. Reading this attribute will show the current
  198. value of d3cold_allowed bit. Writing this attribute will set
  199. the value of d3cold_allowed bit.
  200. What: /sys/bus/pci/devices/.../sriov_totalvfs
  201. Date: November 2012
  202. Contact: Donald Dutile <ddutile@redhat.com>
  203. Description:
  204. This file appears when a physical PCIe device supports SR-IOV.
  205. Userspace applications can read this file to determine the
  206. maximum number of Virtual Functions (VFs) a PCIe physical
  207. function (PF) can support. Typically, this is the value reported
  208. in the PF's SR-IOV extended capability structure's TotalVFs
  209. element. Drivers have the ability at probe time to reduce the
  210. value read from this file via the pci_sriov_set_totalvfs()
  211. function.
  212. What: /sys/bus/pci/devices/.../sriov_numvfs
  213. Date: November 2012
  214. Contact: Donald Dutile <ddutile@redhat.com>
  215. Description:
  216. This file appears when a physical PCIe device supports SR-IOV.
  217. Userspace applications can read and write to this file to
  218. determine and control the enablement or disablement of Virtual
  219. Functions (VFs) on the physical function (PF). A read of this
  220. file will return the number of VFs that are enabled on this PF.
  221. A number written to this file will enable the specified
  222. number of VFs. A userspace application would typically read the
  223. file and check that the value is zero, and then write the number
  224. of VFs that should be enabled on the PF; the value written
  225. should be less than or equal to the value in the sriov_totalvfs
  226. file. A userspace application wanting to disable the VFs would
  227. write a zero to this file. The core ensures that valid values
  228. are written to this file, and returns errors when values are not
  229. valid. For example, writing a 2 to this file when sriov_numvfs
  230. is not 0 and not 2 already will return an error. Writing a 10
  231. when the value of sriov_totalvfs is 8 will return an error.