~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/ABI/testing/sysfs-bus-pci

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/ABI/testing/sysfs-bus-pci (Version linux-6.12-rc7) and /Documentation/ABI/testing/sysfs-bus-pci (Version linux-5.12.19)


  1 What:           /sys/bus/pci/drivers/.../bind       1 What:           /sys/bus/pci/drivers/.../bind
  2 What:           /sys/devices/pciX/.../bind     << 
  3 Date:           December 2003                       2 Date:           December 2003
  4 Contact:        linux-pci@vger.kernel.org           3 Contact:        linux-pci@vger.kernel.org
  5 Description:                                        4 Description:
  6                 Writing a device location to t      5                 Writing a device location to this file will cause
  7                 the driver to attempt to bind       6                 the driver to attempt to bind to the device found at
  8                 this location.  This is useful      7                 this location.  This is useful for overriding default
  9                 bindings.  The format for the       8                 bindings.  The format for the location is: DDDD:BB:DD.F.
 10                 That is Domain:Bus:Device.Func      9                 That is Domain:Bus:Device.Function and is the same as
 11                 found in /sys/bus/pci/devices/     10                 found in /sys/bus/pci/devices/.  For example::
 12                                                    11 
 13                   # echo 0000:00:19.0 > /sys/b     12                   # echo 0000:00:19.0 > /sys/bus/pci/drivers/foo/bind
 14                                                    13 
 15                 (Note: kernels before 2.6.28 m     14                 (Note: kernels before 2.6.28 may require echo -n).
 16                                                    15 
 17 What:           /sys/bus/pci/drivers/.../unbin     16 What:           /sys/bus/pci/drivers/.../unbind
 18 What:           /sys/devices/pciX/.../unbind   << 
 19 Date:           December 2003                      17 Date:           December 2003
 20 Contact:        linux-pci@vger.kernel.org          18 Contact:        linux-pci@vger.kernel.org
 21 Description:                                       19 Description:
 22                 Writing a device location to t     20                 Writing a device location to this file will cause the
 23                 driver to attempt to unbind fr     21                 driver to attempt to unbind from the device found at
 24                 this location.  This may be us     22                 this location.  This may be useful when overriding default
 25                 bindings.  The format for the      23                 bindings.  The format for the location is: DDDD:BB:DD.F.
 26                 That is Domain:Bus:Device.Func     24                 That is Domain:Bus:Device.Function and is the same as
 27                 found in /sys/bus/pci/devices/     25                 found in /sys/bus/pci/devices/. For example::
 28                                                    26 
 29                   # echo 0000:00:19.0 > /sys/b     27                   # echo 0000:00:19.0 > /sys/bus/pci/drivers/foo/unbind
 30                                                    28 
 31                 (Note: kernels before 2.6.28 m     29                 (Note: kernels before 2.6.28 may require echo -n).
 32                                                    30 
 33 What:           /sys/bus/pci/drivers/.../new_i     31 What:           /sys/bus/pci/drivers/.../new_id
 34 What:           /sys/devices/pciX/.../new_id   << 
 35 Date:           December 2003                      32 Date:           December 2003
 36 Contact:        linux-pci@vger.kernel.org          33 Contact:        linux-pci@vger.kernel.org
 37 Description:                                       34 Description:
 38                 Writing a device ID to this fi     35                 Writing a device ID to this file will attempt to
 39                 dynamically add a new device I     36                 dynamically add a new device ID to a PCI device driver.
 40                 This may allow the driver to s     37                 This may allow the driver to support more hardware than
 41                 was included in the driver's s     38                 was included in the driver's static device ID support
 42                 table at compile time.  The fo     39                 table at compile time.  The format for the device ID is:
 43                 VVVV DDDD SVVV SDDD CCCC MMMM      40                 VVVV DDDD SVVV SDDD CCCC MMMM PPPP.  That is Vendor ID,
 44                 Device ID, Subsystem Vendor ID     41                 Device ID, Subsystem Vendor ID, Subsystem Device ID,
 45                 Class, Class Mask, and Private     42                 Class, Class Mask, and Private Driver Data.  The Vendor ID
 46                 and Device ID fields are requi     43                 and Device ID fields are required, the rest are optional.
 47                 Upon successfully adding an ID     44                 Upon successfully adding an ID, the driver will probe
 48                 for the device and attempt to      45                 for the device and attempt to bind to it.  For example::
 49                                                    46 
 50                   # echo "8086 10f5" > /sys/bu     47                   # echo "8086 10f5" > /sys/bus/pci/drivers/foo/new_id
 51                                                    48 
 52 What:           /sys/bus/pci/drivers/.../remov     49 What:           /sys/bus/pci/drivers/.../remove_id
 53 What:           /sys/devices/pciX/.../remove_i << 
 54 Date:           February 2009                      50 Date:           February 2009
 55 Contact:        Chris Wright <chrisw@sous-sol.o     51 Contact:        Chris Wright <chrisw@sous-sol.org>
 56 Description:                                       52 Description:
 57                 Writing a device ID to this fi     53                 Writing a device ID to this file will remove an ID
 58                 that was dynamically added via     54                 that was dynamically added via the new_id sysfs entry.
 59                 The format for the device ID i     55                 The format for the device ID is:
 60                 VVVV DDDD SVVV SDDD CCCC MMMM.     56                 VVVV DDDD SVVV SDDD CCCC MMMM.  That is Vendor ID, Device
 61                 ID, Subsystem Vendor ID, Subsy     57                 ID, Subsystem Vendor ID, Subsystem Device ID, Class,
 62                 and Class Mask.  The Vendor ID     58                 and Class Mask.  The Vendor ID and Device ID fields are
 63                 required, the rest are optiona     59                 required, the rest are optional.  After successfully
 64                 removing an ID, the driver wil     60                 removing an ID, the driver will no longer support the
 65                 device.  This is useful to ens     61                 device.  This is useful to ensure auto probing won't
 66                 match the driver to the device     62                 match the driver to the device.  For example::
 67                                                    63 
 68                   # echo "8086 10f5" > /sys/bu     64                   # echo "8086 10f5" > /sys/bus/pci/drivers/foo/remove_id
 69                                                    65 
 70 What:           /sys/bus/pci/rescan                66 What:           /sys/bus/pci/rescan
 71 Date:           January 2009                       67 Date:           January 2009
 72 Contact:        Linux PCI developers <linux-pci     68 Contact:        Linux PCI developers <linux-pci@vger.kernel.org>
 73 Description:                                       69 Description:
 74                 Writing a non-zero value to th     70                 Writing a non-zero value to this attribute will
 75                 force a rescan of all PCI buse     71                 force a rescan of all PCI buses in the system, and
 76                 re-discover previously removed     72                 re-discover previously removed devices.
 77                                                    73 
 78 What:           /sys/bus/pci/devices/.../msi_b     74 What:           /sys/bus/pci/devices/.../msi_bus
 79 Date:           September 2014                     75 Date:           September 2014
 80 Contact:        Linux PCI developers <linux-pci     76 Contact:        Linux PCI developers <linux-pci@vger.kernel.org>
 81 Description:                                       77 Description:
 82                 Writing a zero value to this a     78                 Writing a zero value to this attribute disallows MSI and
 83                 MSI-X for any future drivers o     79                 MSI-X for any future drivers of the device.  If the device
 84                 is a bridge, MSI and MSI-X wil     80                 is a bridge, MSI and MSI-X will be disallowed for future
 85                 drivers of all child devices u     81                 drivers of all child devices under the bridge.  Drivers
 86                 must be reloaded for the new s     82                 must be reloaded for the new setting to take effect.
 87                                                    83 
 88 What:           /sys/bus/pci/devices/.../msi_i     84 What:           /sys/bus/pci/devices/.../msi_irqs/
 89 Date:           September, 2011                    85 Date:           September, 2011
 90 Contact:        Neil Horman <nhorman@tuxdriver.     86 Contact:        Neil Horman <nhorman@tuxdriver.com>
 91 Description:                                       87 Description:
 92                 The /sys/devices/.../msi_irqs      88                 The /sys/devices/.../msi_irqs directory contains a variable set
 93                 of files, with each file being     89                 of files, with each file being named after a corresponding msi
 94                 irq vector allocated to that d     90                 irq vector allocated to that device.
 95                                                    91 
 96 What:           /sys/bus/pci/devices/.../msi_i     92 What:           /sys/bus/pci/devices/.../msi_irqs/<N>
 97 Date:           September 2011                     93 Date:           September 2011
 98 Contact:        Neil Horman <nhorman@tuxdriver.     94 Contact:        Neil Horman <nhorman@tuxdriver.com>
 99 Description:                                       95 Description:
100                 This attribute indicates the m     96                 This attribute indicates the mode that the irq vector named by
101                 the file is in (msi vs. msix)      97                 the file is in (msi vs. msix)
102                                                    98 
103 What:           /sys/bus/pci/devices/.../irq   << 
104 Date:           August 2021                    << 
105 Contact:        Linux PCI developers <linux-pci << 
106 Description:                                   << 
107                 If a driver has enabled MSI (n << 
108                 IRQ of the first MSI vector. O << 
109                 IRQ of the legacy INTx interru << 
110                                                << 
111                 "irq" being set to 0 indicates << 
112                 capable of generating legacy I << 
113                                                << 
114 What:           /sys/bus/pci/devices/.../remov     99 What:           /sys/bus/pci/devices/.../remove
115 Date:           January 2009                      100 Date:           January 2009
116 Contact:        Linux PCI developers <linux-pci    101 Contact:        Linux PCI developers <linux-pci@vger.kernel.org>
117 Description:                                      102 Description:
118                 Writing a non-zero value to th    103                 Writing a non-zero value to this attribute will
119                 hot-remove the PCI device and     104                 hot-remove the PCI device and any of its children.
120                                                   105 
121 What:           /sys/bus/pci/devices/.../pci_b    106 What:           /sys/bus/pci/devices/.../pci_bus/.../rescan
122 Date:           May 2011                          107 Date:           May 2011
123 Contact:        Linux PCI developers <linux-pci    108 Contact:        Linux PCI developers <linux-pci@vger.kernel.org>
124 Description:                                      109 Description:
125                 Writing a non-zero value to th    110                 Writing a non-zero value to this attribute will
126                 force a rescan of the bus and     111                 force a rescan of the bus and all child buses,
127                 and re-discover devices remove    112                 and re-discover devices removed earlier from this
128                 part of the device tree.          113                 part of the device tree.
129                                                   114 
130 What:           /sys/bus/pci/devices/.../resca    115 What:           /sys/bus/pci/devices/.../rescan
131 Date:           January 2009                      116 Date:           January 2009
132 Contact:        Linux PCI developers <linux-pci    117 Contact:        Linux PCI developers <linux-pci@vger.kernel.org>
133 Description:                                      118 Description:
134                 Writing a non-zero value to th    119                 Writing a non-zero value to this attribute will
135                 force a rescan of the device's    120                 force a rescan of the device's parent bus and all
136                 child buses, and re-discover d    121                 child buses, and re-discover devices removed earlier
137                 from this part of the device t    122                 from this part of the device tree.
138                                                   123 
139 What:           /sys/bus/pci/devices/.../reset << 
140 Date:           August 2021                    << 
141 Contact:        Amey Narkhede <ameynarkhede03@g << 
142 Description:                                   << 
143                 Some devices allow an individu << 
144                 without affecting other functi << 
145                                                << 
146                 For devices that have this sup << 
147                 reset_method is present in sys << 
148                 gives names of the supported a << 
149                 their ordering.  Writing a spa << 
150                 reset methods sets the reset m << 
151                 used when resetting the device << 
152                 disables the ability to reset  << 
153                 "default" enables all supporte << 
154                 default ordering.              << 
155                                                << 
156 What:           /sys/bus/pci/devices/.../reset    124 What:           /sys/bus/pci/devices/.../reset
157 Date:           July 2009                         125 Date:           July 2009
158 Contact:        Michael S. Tsirkin <mst@redhat.    126 Contact:        Michael S. Tsirkin <mst@redhat.com>
159 Description:                                      127 Description:
160                 Some devices allow an individu    128                 Some devices allow an individual function to be reset
161                 without affecting other functi    129                 without affecting other functions in the same device.
162                 For devices that have this sup    130                 For devices that have this support, a file named reset
163                 will be present in sysfs.  Wri    131                 will be present in sysfs.  Writing 1 to this file
164                 will perform reset.               132                 will perform reset.
165                                                   133 
166 What:           /sys/bus/pci/devices/.../vpd      134 What:           /sys/bus/pci/devices/.../vpd
167 Date:           February 2008                     135 Date:           February 2008
168 Contact:        Ben Hutchings <bwh@kernel.org>     136 Contact:        Ben Hutchings <bwh@kernel.org>
169 Description:                                      137 Description:
170                 A file named vpd in a device d    138                 A file named vpd in a device directory will be a
171                 binary file containing the Vit    139                 binary file containing the Vital Product Data for the
172                 device.  It should follow the     140                 device.  It should follow the VPD format defined in
173                 PCI Specification 2.1 or 2.2,     141                 PCI Specification 2.1 or 2.2, but users should consider
174                 that some devices may have inc !! 142                 that some devices may have malformatted data.  If the
175                 If the underlying VPD has a wr !! 143                 underlying VPD has a writable section then the
176                 corresponding section of this     144                 corresponding section of this file will be writable.
177                                                   145 
178 What:           /sys/bus/pci/devices/.../virtf !! 146 What:           /sys/bus/pci/devices/.../virtfnN
179 Date:           March 2009                        147 Date:           March 2009
180 Contact:        Yu Zhao <yu.zhao@intel.com>        148 Contact:        Yu Zhao <yu.zhao@intel.com>
181 Description:                                      149 Description:
182                 This symbolic link appears whe    150                 This symbolic link appears when hardware supports the SR-IOV
183                 capability and the Physical Fu    151                 capability and the Physical Function driver has enabled it.
184                 The symbolic link points to th    152                 The symbolic link points to the PCI device sysfs entry of the
185                 Virtual Function whose index i    153                 Virtual Function whose index is N (0...MaxVFs-1).
186                                                   154 
187 What:           /sys/bus/pci/devices/.../dep_l    155 What:           /sys/bus/pci/devices/.../dep_link
188 Date:           March 2009                        156 Date:           March 2009
189 Contact:        Yu Zhao <yu.zhao@intel.com>        157 Contact:        Yu Zhao <yu.zhao@intel.com>
190 Description:                                      158 Description:
191                 This symbolic link appears whe    159                 This symbolic link appears when hardware supports the SR-IOV
192                 capability and the Physical Fu    160                 capability and the Physical Function driver has enabled it,
193                 and this device has vendor spe    161                 and this device has vendor specific dependencies with others.
194                 The symbolic link points to th    162                 The symbolic link points to the PCI device sysfs entry of
195                 Physical Function this device     163                 Physical Function this device depends on.
196                                                   164 
197 What:           /sys/bus/pci/devices/.../physf    165 What:           /sys/bus/pci/devices/.../physfn
198 Date:           March 2009                        166 Date:           March 2009
199 Contact:        Yu Zhao <yu.zhao@intel.com>        167 Contact:        Yu Zhao <yu.zhao@intel.com>
200 Description:                                      168 Description:
201                 This symbolic link appears whe    169                 This symbolic link appears when a device is a Virtual Function.
202                 The symbolic link points to th    170                 The symbolic link points to the PCI device sysfs entry of the
203                 Physical Function this device     171                 Physical Function this device associates with.
204                                                   172 
205 What:           /sys/bus/pci/devices/.../modal << 
206 Date:           May 2005                       << 
207 Contact:        Greg Kroah-Hartman <gregkh@linu << 
208 Description:                                   << 
209                 This attribute indicates the P << 
210                                                << 
211                 That is in the format:         << 
212                 pci:vXXXXXXXXdXXXXXXXXsvXXXXXX << 
213                 where:                         << 
214                                                << 
215                     - vXXXXXXXX contains the v << 
216                     - dXXXXXXXX contains the d << 
217                     - svXXXXXXXX contains the  << 
218                     - sdXXXXXXXX contains the  << 
219                     - bcXX contains the device << 
220                     - scXX contains the device << 
221                     - iXX contains the device  << 
222                                                << 
223 What:           /sys/bus/pci/slots/.../module     173 What:           /sys/bus/pci/slots/.../module
224 Date:           June 2009                         174 Date:           June 2009
225 Contact:        linux-pci@vger.kernel.org         175 Contact:        linux-pci@vger.kernel.org
226 Description:                                      176 Description:
227                 This symbolic link points to t    177                 This symbolic link points to the PCI hotplug controller driver
228                 module that manages the hotplu    178                 module that manages the hotplug slot.
229                                                   179 
230 What:           /sys/bus/pci/devices/.../label    180 What:           /sys/bus/pci/devices/.../label
231 Date:           July 2010                         181 Date:           July 2010
232 Contact:        Narendra K <narendra_k@dell.com    182 Contact:        Narendra K <narendra_k@dell.com>, linux-bugs@dell.com
233 Description:                                      183 Description:
234                 Reading this attribute will pr    184                 Reading this attribute will provide the firmware
235                 given name (SMBIOS type 41 str    185                 given name (SMBIOS type 41 string or ACPI _DSM string) of
236                 the PCI device. The attribute     186                 the PCI device. The attribute will be created only
237                 if the firmware has given a na    187                 if the firmware has given a name to the PCI device.
238                 ACPI _DSM string name will be     188                 ACPI _DSM string name will be given priority if the
239                 system firmware provides SMBIO    189                 system firmware provides SMBIOS type 41 string also.
240 Users:                                            190 Users:
241                 Userspace applications interes    191                 Userspace applications interested in knowing the
242                 firmware assigned name of the     192                 firmware assigned name of the PCI device.
243                                                   193 
244 What:           /sys/bus/pci/devices/.../index    194 What:           /sys/bus/pci/devices/.../index
245 Date:           July 2010                         195 Date:           July 2010
246 Contact:        Narendra K <narendra_k@dell.com    196 Contact:        Narendra K <narendra_k@dell.com>, linux-bugs@dell.com
247 Description:                                      197 Description:
248                 Reading this attribute will pr !! 198                 Reading this attribute will provide the firmware
249                 number of the PCI device.  Dep !! 199                 given instance (SMBIOS type 41 device type instance) of the
250                 be for example the SMBIOS type !! 200                 PCI device. The attribute will be created only if the firmware
251                 user-defined ID (UID) on s390. !! 201                 has given an instance number to the PCI device.
252                 only if the firmware has given << 
253                 device and that number is guar << 
254                 device in the system.          << 
255 Users:                                            202 Users:
256                 Userspace applications interes    203                 Userspace applications interested in knowing the
257                 firmware assigned device type     204                 firmware assigned device type instance of the PCI
258                 device that can help in unders    205                 device that can help in understanding the firmware
259                 intended order of the PCI devi    206                 intended order of the PCI device.
260                                                   207 
261 What:           /sys/bus/pci/devices/.../acpi_    208 What:           /sys/bus/pci/devices/.../acpi_index
262 Date:           July 2010                         209 Date:           July 2010
263 Contact:        Narendra K <narendra_k@dell.com    210 Contact:        Narendra K <narendra_k@dell.com>, linux-bugs@dell.com
264 Description:                                      211 Description:
265                 Reading this attribute will pr    212                 Reading this attribute will provide the firmware
266                 given instance (ACPI _DSM inst    213                 given instance (ACPI _DSM instance number) of the PCI device.
267                 The attribute will be created     214                 The attribute will be created only if the firmware has given
268                 an instance number to the PCI     215                 an instance number to the PCI device. ACPI _DSM instance number
269                 will be given priority if the     216                 will be given priority if the system firmware provides SMBIOS
270                 type 41 device type instance a    217                 type 41 device type instance also.
271 Users:                                            218 Users:
272                 Userspace applications interes    219                 Userspace applications interested in knowing the
273                 firmware assigned instance num    220                 firmware assigned instance number of the PCI
274                 device that can help in unders    221                 device that can help in understanding the firmware
275                 intended order of the PCI devi    222                 intended order of the PCI device.
276                                                   223 
277 What:           /sys/bus/pci/devices/.../d3col    224 What:           /sys/bus/pci/devices/.../d3cold_allowed
278 Date:           July 2012                         225 Date:           July 2012
279 Contact:        Huang Ying <ying.huang@intel.co    226 Contact:        Huang Ying <ying.huang@intel.com>
280 Description:                                      227 Description:
281                 d3cold_allowed is bit to contr    228                 d3cold_allowed is bit to control whether the corresponding PCI
282                 device can be put into D3Cold     229                 device can be put into D3Cold state.  If it is cleared, the
283                 device will never be put into     230                 device will never be put into D3Cold state.  If it is set, the
284                 device may be put into D3Cold     231                 device may be put into D3Cold state if other requirements are
285                 satisfied too.  Reading this a    232                 satisfied too.  Reading this attribute will show the current
286                 value of d3cold_allowed bit.      233                 value of d3cold_allowed bit.  Writing this attribute will set
287                 the value of d3cold_allowed bi    234                 the value of d3cold_allowed bit.
288                                                   235 
289 What:           /sys/bus/pci/devices/.../sriov    236 What:           /sys/bus/pci/devices/.../sriov_totalvfs
290 Date:           November 2012                     237 Date:           November 2012
291 Contact:        Donald Dutile <ddutile@redhat.c    238 Contact:        Donald Dutile <ddutile@redhat.com>
292 Description:                                      239 Description:
293                 This file appears when a physi    240                 This file appears when a physical PCIe device supports SR-IOV.
294                 Userspace applications can rea    241                 Userspace applications can read this file to determine the
295                 maximum number of Virtual Func    242                 maximum number of Virtual Functions (VFs) a PCIe physical
296                 function (PF) can support. Typ    243                 function (PF) can support. Typically, this is the value reported
297                 in the PF's SR-IOV extended ca    244                 in the PF's SR-IOV extended capability structure's TotalVFs
298                 element.  Drivers have the abi    245                 element.  Drivers have the ability at probe time to reduce the
299                 value read from this file via     246                 value read from this file via the pci_sriov_set_totalvfs()
300                 function.                         247                 function.
301                                                   248 
302 What:           /sys/bus/pci/devices/.../sriov    249 What:           /sys/bus/pci/devices/.../sriov_numvfs
303 Date:           November 2012                     250 Date:           November 2012
304 Contact:        Donald Dutile <ddutile@redhat.c    251 Contact:        Donald Dutile <ddutile@redhat.com>
305 Description:                                      252 Description:
306                 This file appears when a physi    253                 This file appears when a physical PCIe device supports SR-IOV.
307                 Userspace applications can rea    254                 Userspace applications can read and write to this file to
308                 determine and control the enab    255                 determine and control the enablement or disablement of Virtual
309                 Functions (VFs) on the physica    256                 Functions (VFs) on the physical function (PF). A read of this
310                 file will return the number of    257                 file will return the number of VFs that are enabled on this PF.
311                 A number written to this file     258                 A number written to this file will enable the specified
312                 number of VFs. A userspace app    259                 number of VFs. A userspace application would typically read the
313                 file and check that the value     260                 file and check that the value is zero, and then write the number
314                 of VFs that should be enabled     261                 of VFs that should be enabled on the PF; the value written
315                 should be less than or equal t    262                 should be less than or equal to the value in the sriov_totalvfs
316                 file. A userspace application     263                 file. A userspace application wanting to disable the VFs would
317                 write a zero to this file. The    264                 write a zero to this file. The core ensures that valid values
318                 are written to this file, and     265                 are written to this file, and returns errors when values are not
319                 valid.  For example, writing a    266                 valid.  For example, writing a 2 to this file when sriov_numvfs
320                 is not 0 and not 2 already wil    267                 is not 0 and not 2 already will return an error. Writing a 10
321                 when the value of sriov_totalv    268                 when the value of sriov_totalvfs is 8 will return an error.
322                                                   269 
323 What:           /sys/bus/pci/devices/.../drive    270 What:           /sys/bus/pci/devices/.../driver_override
324 Date:           April 2014                        271 Date:           April 2014
325 Contact:        Alex Williamson <alex.williamso    272 Contact:        Alex Williamson <alex.williamson@redhat.com>
326 Description:                                      273 Description:
327                 This file allows the driver fo    274                 This file allows the driver for a device to be specified which
328                 will override standard static     275                 will override standard static and dynamic ID matching.  When
329                 specified, only a driver with     276                 specified, only a driver with a name matching the value written
330                 to driver_override will have a    277                 to driver_override will have an opportunity to bind to the
331                 device.  The override is speci    278                 device.  The override is specified by writing a string to the
332                 driver_override file (echo pci    279                 driver_override file (echo pci-stub > driver_override) and
333                 may be cleared with an empty s    280                 may be cleared with an empty string (echo > driver_override).
334                 This returns the device to sta    281                 This returns the device to standard matching rules binding.
335                 Writing to driver_override doe    282                 Writing to driver_override does not automatically unbind the
336                 device from its current driver    283                 device from its current driver or make any attempt to
337                 automatically load the specifi    284                 automatically load the specified driver.  If no driver with a
338                 matching name is currently loa    285                 matching name is currently loaded in the kernel, the device
339                 will not bind to any driver.      286                 will not bind to any driver.  This also allows devices to
340                 opt-out of driver binding usin    287                 opt-out of driver binding using a driver_override name such as
341                 "none".  Only a single driver     288                 "none".  Only a single driver may be specified in the override,
342                 there is no support for parsin    289                 there is no support for parsing delimiters.
343                                                   290 
344 What:           /sys/bus/pci/devices/.../numa_    291 What:           /sys/bus/pci/devices/.../numa_node
345 Date:           Oct 2014                          292 Date:           Oct 2014
346 Contact:        Prarit Bhargava <prarit@redhat.    293 Contact:        Prarit Bhargava <prarit@redhat.com>
347 Description:                                      294 Description:
348                 This file contains the NUMA no    295                 This file contains the NUMA node to which the PCI device is
349                 attached, or -1 if the node is    296                 attached, or -1 if the node is unknown.  The initial value
350                 comes from an ACPI _PXM method    297                 comes from an ACPI _PXM method or a similar firmware
351                 source.  If that is missing or    298                 source.  If that is missing or incorrect, this file can be
352                 written to override the node.     299                 written to override the node.  In that case, please report
353                 a firmware bug to the system v    300                 a firmware bug to the system vendor.  Writing to this file
354                 taints the kernel with TAINT_F    301                 taints the kernel with TAINT_FIRMWARE_WORKAROUND, which
355                 reduces the supportability of     302                 reduces the supportability of your system.
356                                                   303 
357 What:           /sys/bus/pci/devices/.../revis    304 What:           /sys/bus/pci/devices/.../revision
358 Date:           November 2016                     305 Date:           November 2016
359 Contact:        Emil Velikov <emil.l.velikov@gm    306 Contact:        Emil Velikov <emil.l.velikov@gmail.com>
360 Description:                                      307 Description:
361                 This file contains the revisio    308                 This file contains the revision field of the PCI device.
362                 The value comes from device co    309                 The value comes from device config space. The file is read only.
363                                                   310 
364 What:           /sys/bus/pci/devices/.../sriov    311 What:           /sys/bus/pci/devices/.../sriov_drivers_autoprobe
365 Date:           April 2017                        312 Date:           April 2017
366 Contact:        Bodong Wang<bodong@mellanox.com    313 Contact:        Bodong Wang<bodong@mellanox.com>
367 Description:                                      314 Description:
368                 This file is associated with t    315                 This file is associated with the PF of a device that
369                 supports SR-IOV.  It determine    316                 supports SR-IOV.  It determines whether newly-enabled VFs
370                 are immediately bound to a dri    317                 are immediately bound to a driver.  It initially contains
371                 1, which means the kernel auto    318                 1, which means the kernel automatically binds VFs to a
372                 compatible driver immediately     319                 compatible driver immediately after they are enabled.  If
373                 an application writes 0 to the    320                 an application writes 0 to the file before enabling VFs,
374                 the kernel will not bind VFs t    321                 the kernel will not bind VFs to a driver.
375                                                   322 
376                 A typical use case is to write    323                 A typical use case is to write 0 to this file, then enable
377                 VFs, then assign the newly-cre    324                 VFs, then assign the newly-created VFs to virtual machines.
378                 Note that changing this file d    325                 Note that changing this file does not affect already-
379                 enabled VFs.  In this scenario    326                 enabled VFs.  In this scenario, the user must first disable
380                 the VFs, write 0 to sriov_driv    327                 the VFs, write 0 to sriov_drivers_autoprobe, then re-enable
381                 the VFs.                          328                 the VFs.
382                                                   329 
383                 This is similar to /sys/bus/pc    330                 This is similar to /sys/bus/pci/drivers_autoprobe, but
384                 affects only the VFs associate    331                 affects only the VFs associated with a specific PF.
385                                                   332 
386 What:           /sys/bus/pci/devices/.../p2pme    333 What:           /sys/bus/pci/devices/.../p2pmem/size
387 Date:           November 2017                     334 Date:           November 2017
388 Contact:        Logan Gunthorpe <logang@deltate    335 Contact:        Logan Gunthorpe <logang@deltatee.com>
389 Description:                                      336 Description:
390                 If the device has any Peer-to-    337                 If the device has any Peer-to-Peer memory registered, this
391                 file contains the total amount    338                 file contains the total amount of memory that the device
392                 provides (in decimal).            339                 provides (in decimal).
393                                                   340 
394 What:           /sys/bus/pci/devices/.../p2pme    341 What:           /sys/bus/pci/devices/.../p2pmem/available
395 Date:           November 2017                     342 Date:           November 2017
396 Contact:        Logan Gunthorpe <logang@deltate    343 Contact:        Logan Gunthorpe <logang@deltatee.com>
397 Description:                                      344 Description:
398                 If the device has any Peer-to-    345                 If the device has any Peer-to-Peer memory registered, this
399                 file contains the amount of me    346                 file contains the amount of memory that has not been
400                 allocated (in decimal).           347                 allocated (in decimal).
401                                                   348 
402 What:           /sys/bus/pci/devices/.../p2pme    349 What:           /sys/bus/pci/devices/.../p2pmem/published
403 Date:           November 2017                     350 Date:           November 2017
404 Contact:        Logan Gunthorpe <logang@deltate    351 Contact:        Logan Gunthorpe <logang@deltatee.com>
405 Description:                                      352 Description:
406                 If the device has any Peer-to-    353                 If the device has any Peer-to-Peer memory registered, this
407                 file contains a '1' if the mem    354                 file contains a '1' if the memory has been published for
408                 use outside the driver that ow    355                 use outside the driver that owns the device.
409                                                   356 
410 What:           /sys/bus/pci/devices/.../p2pme << 
411 Date:           August 2022                    << 
412 Contact:        Logan Gunthorpe <logang@deltate << 
413 Description:                                   << 
414                 This file allows mapping p2pme << 
415                 mmap() call on this file, the  << 
416                 of Peer-to-Peer memory for use << 
417                 This memory can be used in O_D << 
418                 files for Peer-to-Peer copies. << 
419                                                << 
420 What:           /sys/bus/pci/devices/.../link/    357 What:           /sys/bus/pci/devices/.../link/clkpm
421                 /sys/bus/pci/devices/.../link/    358                 /sys/bus/pci/devices/.../link/l0s_aspm
422                 /sys/bus/pci/devices/.../link/    359                 /sys/bus/pci/devices/.../link/l1_aspm
423                 /sys/bus/pci/devices/.../link/    360                 /sys/bus/pci/devices/.../link/l1_1_aspm
424                 /sys/bus/pci/devices/.../link/    361                 /sys/bus/pci/devices/.../link/l1_2_aspm
425                 /sys/bus/pci/devices/.../link/    362                 /sys/bus/pci/devices/.../link/l1_1_pcipm
426                 /sys/bus/pci/devices/.../link/    363                 /sys/bus/pci/devices/.../link/l1_2_pcipm
427 Date:           October 2019                      364 Date:           October 2019
428 Contact:        Heiner Kallweit <hkallweit1@gma    365 Contact:        Heiner Kallweit <hkallweit1@gmail.com>
429 Description:    If ASPM is supported for an en    366 Description:    If ASPM is supported for an endpoint, these files can be
430                 used to disable or enable the     367                 used to disable or enable the individual power management
431                 states. Write y/1/on to enable    368                 states. Write y/1/on to enable, n/0/off to disable.
432                                                   369 
433 What:           /sys/bus/pci/devices/.../power    370 What:           /sys/bus/pci/devices/.../power_state
434 Date:           November 2020                     371 Date:           November 2020
435 Contact:        Linux PCI developers <linux-pci    372 Contact:        Linux PCI developers <linux-pci@vger.kernel.org>
436 Description:                                      373 Description:
437                 This file contains the current    374                 This file contains the current PCI power state of the device.
438                 The value comes from the PCI k    375                 The value comes from the PCI kernel device state and can be one
439                 of: "unknown", "error", "D0",     376                 of: "unknown", "error", "D0", D1", "D2", "D3hot", "D3cold".
440                 The file is read only.            377                 The file is read only.
441                                                << 
442 What:           /sys/bus/pci/devices/.../sriov << 
443 Date:           January 2021                   << 
444 Contact:        Leon Romanovsky <leonro@nvidia. << 
445 Description:                                   << 
446                 This file is associated with a << 
447                 It contains the total number o << 
448                 assignment to all virtual func << 
449                 The value will be zero if the  << 
450                 functionality. For supported d << 
451                 constant and won't be changed  << 
452                                                << 
453 What:           /sys/bus/pci/devices/.../sriov << 
454 Date:           January 2021                   << 
455 Contact:        Leon Romanovsky <leonro@nvidia. << 
456 Description:                                   << 
457                 This file is associated with a << 
458                 It allows configuration of the << 
459                 the VF. This allows devices th << 
460                 vectors to optimally divide th << 
461                                                << 
462                 The values accepted are:       << 
463                  * > 0 - this number will be r << 
464                          VF's MSI-X capability << 
465                  * < 0 - not valid             << 
466                  * = 0 - will reset to the dev << 
467                                                << 
468                 The file is writable if the PF << 
469                 implements ->sriov_set_msix_ve << 
470                                                << 
471 What:           /sys/bus/pci/devices/.../resou << 
472 Date:           September 2022                 << 
473 Contact:        Alex Williamson <alex.williamso << 
474 Description:                                   << 
475                 These files provide an interfa << 
476                 A file is created for each BAR << 
477                 PCIe Resizable BAR extended ca << 
478                 each file exposes the bitmap o << 
479                                                << 
480                 # cat resource1_resize         << 
481                 00000000000001c0               << 
482                                                << 
483                 The bitmap represents supporte << 
484                 where bit0 = 1MB, bit1 = 2MB,  << 
485                 example the device supports 64 << 
486                                                << 
487                 When writing the file, the use << 
488                 the desired resource size, for << 
489                                                << 
490                 # echo 7 > resource1_resize    << 
491                                                << 
492                 This indicates to set the size << 
493                 128MB.  The resulting size is  << 
494                 matches the PCIe specification << 
495                                                << 
496                 In order to make use of resour << 
497                 be unbound from the device and << 
498                 parent bridge may need to be s << 
499                 VGA devices, writing a resize  << 
500                 console drivers from the devic << 
501                 resourceN attributes must be t << 
502                 Success of the resizing operat << 
503                                                << 
504 What:           /sys/bus/pci/devices/.../leds/ << 
505 What:           /sys/class/leds/*:enclosure:*/ << 
506 Date:           August 2024                    << 
507 KernelVersion:  6.12                           << 
508 Description:                                   << 
509                 LED indications on PCIe storag << 
510                 through the NPEM interface (Na << 
511                 PCIe r6.1 sec 6.28) are access << 
512                 below /sys/class/leds and belo << 
513                                                << 
514                 Although these led class devic << 
515                 in practice they are typically << 
516                 application such as ledmon(8). << 
517                                                << 
518                 The name of a led class device << 
519                 <bdf>:enclosure:<indication>   << 
520                 where:                         << 
521                                                << 
522                 - <bdf> is the domain, bus, de << 
523                   (e.g. 10000:02:05.0)         << 
524                 - <indication> is a short desc << 
525                                                << 
526                 Valid indications per PCIe r6. << 
527                                                << 
528                 - ok (drive is functioning nor << 
529                 - locate (drive is being ident << 
530                 - fail (drive is not functioni << 
531                 - rebuild (drive is part of an << 
532                 - pfa (drive is predicted to f << 
533                 - hotspare (drive is marked to << 
534                 - ica (drive is part of an arr << 
535                 - ifa (drive is part of an arr << 
536                 - idt (drive is not the right  << 
537                 - disabled (drive is disabled, << 
538                 - specific0 to specific7 (encl << 
539                                                << 
540                 Broadly, the indications fall  << 
541                                                << 
542                 - to signify drive state (ok,  << 
543                 - to signify drive role or sta << 
544                   (rebuild, pfa, hotspare, ica << 
545                 - to signify any other role or << 
546                                                << 
547                 Mandatory indications per PCIe << 
548                 ok, locate, fail, rebuild. All << 
549                 A led class device is only vis << 
550                 indication is supported by the << 
551                                                << 
552                 To manipulate the indications, << 
553                 to the "brightness" file. Note << 
554                 may implicitly manipulate othe << 
555                 discretion. E.g. when the user << 
556                 the vendor may choose to autom << 
557                 indication. The current state  << 
558                 retrieved by reading its "brig << 
559                                                << 
560                 The PCIe Base Specification al << 
561                 different colors or blinking p << 
562                 but they typically follow the  << 
563                 indication is usually presente << 
564                 4 Hz frequency:                << 
565                 https://en.wikipedia.org/wiki/ << 
566                                                << 
567                 PCI Firmware Specification r3. << 
568                 to facilitate shared access by << 
569                 firmware to a device's NPEM re << 
570                 this DSM interface where avail << 
571                 registers directly. The DSM in << 
572                 enclosure-specific indications << 
573                 hence the corresponding led cl << 
574                 the DSM interface is used.     << 
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php