1d22157b3SChris WrightWhat: /sys/bus/pci/drivers/.../bind 2d22157b3SChris WrightDate: December 2003 3d22157b3SChris WrightContact: linux-pci@vger.kernel.org 4d22157b3SChris WrightDescription: 5d22157b3SChris Wright Writing a device location to this file will cause 6d22157b3SChris Wright the driver to attempt to bind to the device found at 7d22157b3SChris Wright this location. This is useful for overriding default 8d22157b3SChris Wright bindings. The format for the location is: DDDD:BB:DD.F. 9d22157b3SChris Wright That is Domain:Bus:Device.Function and is the same as 1054a19b4dSMauro Carvalho Chehab found in /sys/bus/pci/devices/. For example:: 1154a19b4dSMauro Carvalho Chehab 12d22157b3SChris Wright # echo 0000:00:19.0 > /sys/bus/pci/drivers/foo/bind 1354a19b4dSMauro Carvalho Chehab 14d22157b3SChris Wright (Note: kernels before 2.6.28 may require echo -n). 15d22157b3SChris Wright 16d22157b3SChris WrightWhat: /sys/bus/pci/drivers/.../unbind 17d22157b3SChris WrightDate: December 2003 18d22157b3SChris WrightContact: linux-pci@vger.kernel.org 19d22157b3SChris WrightDescription: 20d22157b3SChris Wright Writing a device location to this file will cause the 21d22157b3SChris Wright driver to attempt to unbind from the device found at 22d22157b3SChris Wright this location. This may be useful when overriding default 23d22157b3SChris Wright bindings. The format for the location is: DDDD:BB:DD.F. 24d22157b3SChris Wright That is Domain:Bus:Device.Function and is the same as 2554a19b4dSMauro Carvalho Chehab found in /sys/bus/pci/devices/. For example:: 2654a19b4dSMauro Carvalho Chehab 27d22157b3SChris Wright # echo 0000:00:19.0 > /sys/bus/pci/drivers/foo/unbind 2854a19b4dSMauro Carvalho Chehab 29d22157b3SChris Wright (Note: kernels before 2.6.28 may require echo -n). 30d22157b3SChris Wright 31d22157b3SChris WrightWhat: /sys/bus/pci/drivers/.../new_id 32d22157b3SChris WrightDate: December 2003 33d22157b3SChris WrightContact: linux-pci@vger.kernel.org 34d22157b3SChris WrightDescription: 35d22157b3SChris Wright Writing a device ID to this file will attempt to 36d22157b3SChris Wright dynamically add a new device ID to a PCI device driver. 37d22157b3SChris Wright This may allow the driver to support more hardware than 38d22157b3SChris Wright was included in the driver's static device ID support 39d22157b3SChris Wright table at compile time. The format for the device ID is: 40d22157b3SChris Wright VVVV DDDD SVVV SDDD CCCC MMMM PPPP. That is Vendor ID, 41d22157b3SChris Wright Device ID, Subsystem Vendor ID, Subsystem Device ID, 42d22157b3SChris Wright Class, Class Mask, and Private Driver Data. The Vendor ID 43d22157b3SChris Wright and Device ID fields are required, the rest are optional. 44d22157b3SChris Wright Upon successfully adding an ID, the driver will probe 4554a19b4dSMauro Carvalho Chehab for the device and attempt to bind to it. For example:: 4654a19b4dSMauro Carvalho Chehab 47d22157b3SChris Wright # echo "8086 10f5" > /sys/bus/pci/drivers/foo/new_id 48d22157b3SChris Wright 490994375eSChris WrightWhat: /sys/bus/pci/drivers/.../remove_id 500994375eSChris WrightDate: February 2009 510994375eSChris WrightContact: Chris Wright <chrisw@sous-sol.org> 520994375eSChris WrightDescription: 530994375eSChris Wright Writing a device ID to this file will remove an ID 540994375eSChris Wright that was dynamically added via the new_id sysfs entry. 550994375eSChris Wright The format for the device ID is: 560994375eSChris Wright VVVV DDDD SVVV SDDD CCCC MMMM. That is Vendor ID, Device 570994375eSChris Wright ID, Subsystem Vendor ID, Subsystem Device ID, Class, 580994375eSChris Wright and Class Mask. The Vendor ID and Device ID fields are 590994375eSChris Wright required, the rest are optional. After successfully 600994375eSChris Wright removing an ID, the driver will no longer support the 610994375eSChris Wright device. This is useful to ensure auto probing won't 6254a19b4dSMauro Carvalho Chehab match the driver to the device. For example:: 6354a19b4dSMauro Carvalho Chehab 640994375eSChris Wright # echo "8086 10f5" > /sys/bus/pci/drivers/foo/remove_id 650994375eSChris Wright 66705b1aaaSAlex ChiangWhat: /sys/bus/pci/rescan 67705b1aaaSAlex ChiangDate: January 2009 68705b1aaaSAlex ChiangContact: Linux PCI developers <linux-pci@vger.kernel.org> 69705b1aaaSAlex ChiangDescription: 70705b1aaaSAlex Chiang Writing a non-zero value to this attribute will 71705b1aaaSAlex Chiang force a rescan of all PCI buses in the system, and 72705b1aaaSAlex Chiang re-discover previously removed devices. 73705b1aaaSAlex Chiang 74468ff15aSYijing WangWhat: /sys/bus/pci/devices/.../msi_bus 75468ff15aSYijing WangDate: September 2014 76468ff15aSYijing WangContact: Linux PCI developers <linux-pci@vger.kernel.org> 77468ff15aSYijing WangDescription: 78468ff15aSYijing Wang Writing a zero value to this attribute disallows MSI and 79468ff15aSYijing Wang MSI-X for any future drivers of the device. If the device 80468ff15aSYijing Wang is a bridge, MSI and MSI-X will be disallowed for future 81468ff15aSYijing Wang drivers of all child devices under the bridge. Drivers 82468ff15aSYijing Wang must be reloaded for the new setting to take effect. 83468ff15aSYijing Wang 84b50cac55SNeil HormanWhat: /sys/bus/pci/devices/.../msi_irqs/ 85b50cac55SNeil HormanDate: September, 2011 86b50cac55SNeil HormanContact: Neil Horman <nhorman@tuxdriver.com> 87b50cac55SNeil HormanDescription: 88b50cac55SNeil Horman The /sys/devices/.../msi_irqs directory contains a variable set 891c51b50cSGreg Kroah-Hartman of files, with each file being named after a corresponding msi 901c51b50cSGreg Kroah-Hartman irq vector allocated to that device. 91b50cac55SNeil Horman 921c51b50cSGreg Kroah-HartmanWhat: /sys/bus/pci/devices/.../msi_irqs/<N> 93b50cac55SNeil HormanDate: September 2011 94b50cac55SNeil HormanContact: Neil Horman <nhorman@tuxdriver.com> 95b50cac55SNeil HormanDescription: 96b50cac55SNeil Horman This attribute indicates the mode that the irq vector named by 971c51b50cSGreg Kroah-Hartman the file is in (msi vs. msix) 98b50cac55SNeil Horman 9977c27c7bSAlex ChiangWhat: /sys/bus/pci/devices/.../remove 10077c27c7bSAlex ChiangDate: January 2009 10177c27c7bSAlex ChiangContact: Linux PCI developers <linux-pci@vger.kernel.org> 10277c27c7bSAlex ChiangDescription: 10377c27c7bSAlex Chiang Writing a non-zero value to this attribute will 10477c27c7bSAlex Chiang hot-remove the PCI device and any of its children. 10577c27c7bSAlex Chiang 106b9d320fcSYinghai LuWhat: /sys/bus/pci/devices/.../pci_bus/.../rescan 107b9d320fcSYinghai LuDate: May 2011 108b9d320fcSYinghai LuContact: Linux PCI developers <linux-pci@vger.kernel.org> 109b9d320fcSYinghai LuDescription: 110b9d320fcSYinghai Lu Writing a non-zero value to this attribute will 111b9d320fcSYinghai Lu force a rescan of the bus and all child buses, 112b9d320fcSYinghai Lu and re-discover devices removed earlier from this 11340b31360SStephen Rothwell part of the device tree. 114b9d320fcSYinghai Lu 115738a6396SAlex ChiangWhat: /sys/bus/pci/devices/.../rescan 116738a6396SAlex ChiangDate: January 2009 117738a6396SAlex ChiangContact: Linux PCI developers <linux-pci@vger.kernel.org> 118738a6396SAlex ChiangDescription: 119738a6396SAlex Chiang Writing a non-zero value to this attribute will 120738a6396SAlex Chiang force a rescan of the device's parent bus and all 121738a6396SAlex Chiang child buses, and re-discover devices removed earlier 122738a6396SAlex Chiang from this part of the device tree. 123738a6396SAlex Chiang 124711d5779SMichael S. TsirkinWhat: /sys/bus/pci/devices/.../reset 125711d5779SMichael S. TsirkinDate: July 2009 126711d5779SMichael S. TsirkinContact: Michael S. Tsirkin <mst@redhat.com> 127711d5779SMichael S. TsirkinDescription: 128711d5779SMichael S. Tsirkin Some devices allow an individual function to be reset 129711d5779SMichael S. Tsirkin without affecting other functions in the same device. 130711d5779SMichael S. Tsirkin For devices that have this support, a file named reset 131711d5779SMichael S. Tsirkin will be present in sysfs. Writing 1 to this file 132711d5779SMichael S. Tsirkin will perform reset. 133711d5779SMichael S. Tsirkin 13494e61088SBen HutchingsWhat: /sys/bus/pci/devices/.../vpd 13594e61088SBen HutchingsDate: February 2008 136473153afSBen HutchingsContact: Ben Hutchings <bwh@kernel.org> 13794e61088SBen HutchingsDescription: 13894e61088SBen Hutchings A file named vpd in a device directory will be a 13994e61088SBen Hutchings binary file containing the Vital Product Data for the 14094e61088SBen Hutchings device. It should follow the VPD format defined in 14194e61088SBen Hutchings PCI Specification 2.1 or 2.2, but users should consider 142*3e42d1deSCarlos Bilbao that some devices may have incorrectly formatted data. 143*3e42d1deSCarlos Bilbao If the underlying VPD has a writable section then the 14494e61088SBen Hutchings corresponding section of this file will be writable. 14501db4957SYu Zhao 14601db4957SYu ZhaoWhat: /sys/bus/pci/devices/.../virtfnN 14701db4957SYu ZhaoDate: March 2009 14801db4957SYu ZhaoContact: Yu Zhao <yu.zhao@intel.com> 14901db4957SYu ZhaoDescription: 15001db4957SYu Zhao This symbolic link appears when hardware supports the SR-IOV 15101db4957SYu Zhao capability and the Physical Function driver has enabled it. 15201db4957SYu Zhao The symbolic link points to the PCI device sysfs entry of the 15301db4957SYu Zhao Virtual Function whose index is N (0...MaxVFs-1). 15401db4957SYu Zhao 15501db4957SYu ZhaoWhat: /sys/bus/pci/devices/.../dep_link 15601db4957SYu ZhaoDate: March 2009 15701db4957SYu ZhaoContact: Yu Zhao <yu.zhao@intel.com> 15801db4957SYu ZhaoDescription: 15901db4957SYu Zhao This symbolic link appears when hardware supports the SR-IOV 16001db4957SYu Zhao capability and the Physical Function driver has enabled it, 16101db4957SYu Zhao and this device has vendor specific dependencies with others. 16201db4957SYu Zhao The symbolic link points to the PCI device sysfs entry of 16301db4957SYu Zhao Physical Function this device depends on. 16401db4957SYu Zhao 16501db4957SYu ZhaoWhat: /sys/bus/pci/devices/.../physfn 16601db4957SYu ZhaoDate: March 2009 16701db4957SYu ZhaoContact: Yu Zhao <yu.zhao@intel.com> 16801db4957SYu ZhaoDescription: 16901db4957SYu Zhao This symbolic link appears when a device is a Virtual Function. 17001db4957SYu Zhao The symbolic link points to the PCI device sysfs entry of the 17101db4957SYu Zhao Physical Function this device associates with. 172c825bc94SKenji Kaneshige 173c825bc94SKenji KaneshigeWhat: /sys/bus/pci/slots/.../module 174c825bc94SKenji KaneshigeDate: June 2009 175c825bc94SKenji KaneshigeContact: linux-pci@vger.kernel.org 176c825bc94SKenji KaneshigeDescription: 177c825bc94SKenji Kaneshige This symbolic link points to the PCI hotplug controller driver 178c825bc94SKenji Kaneshige module that manages the hotplug slot. 179911e1c9bSNarendra K 180911e1c9bSNarendra KWhat: /sys/bus/pci/devices/.../label 181911e1c9bSNarendra KDate: July 2010 182911e1c9bSNarendra KContact: Narendra K <narendra_k@dell.com>, linux-bugs@dell.com 183911e1c9bSNarendra KDescription: 184911e1c9bSNarendra K Reading this attribute will provide the firmware 1856058989bSNarendra_K@Dell.com given name (SMBIOS type 41 string or ACPI _DSM string) of 1866058989bSNarendra_K@Dell.com the PCI device. The attribute will be created only 1876058989bSNarendra_K@Dell.com if the firmware has given a name to the PCI device. 1886058989bSNarendra_K@Dell.com ACPI _DSM string name will be given priority if the 1896058989bSNarendra_K@Dell.com system firmware provides SMBIOS type 41 string also. 190911e1c9bSNarendra KUsers: 191911e1c9bSNarendra K Userspace applications interested in knowing the 192911e1c9bSNarendra K firmware assigned name of the PCI device. 193911e1c9bSNarendra K 194911e1c9bSNarendra KWhat: /sys/bus/pci/devices/.../index 195911e1c9bSNarendra KDate: July 2010 196911e1c9bSNarendra KContact: Narendra K <narendra_k@dell.com>, linux-bugs@dell.com 197911e1c9bSNarendra KDescription: 19881bbf039SNiklas Schnelle Reading this attribute will provide the firmware given instance 19981bbf039SNiklas Schnelle number of the PCI device. Depending on the platform this can 20081bbf039SNiklas Schnelle be for example the SMBIOS type 41 device type instance or the 20181bbf039SNiklas Schnelle user-defined ID (UID) on s390. The attribute will be created 20281bbf039SNiklas Schnelle only if the firmware has given an instance number to the PCI 20381bbf039SNiklas Schnelle device and that number is guaranteed to uniquely identify the 20481bbf039SNiklas Schnelle device in the system. 205911e1c9bSNarendra KUsers: 206911e1c9bSNarendra K Userspace applications interested in knowing the 207911e1c9bSNarendra K firmware assigned device type instance of the PCI 208911e1c9bSNarendra K device that can help in understanding the firmware 209911e1c9bSNarendra K intended order of the PCI device. 2106058989bSNarendra_K@Dell.com 2116058989bSNarendra_K@Dell.comWhat: /sys/bus/pci/devices/.../acpi_index 2126058989bSNarendra_K@Dell.comDate: July 2010 2136058989bSNarendra_K@Dell.comContact: Narendra K <narendra_k@dell.com>, linux-bugs@dell.com 2146058989bSNarendra_K@Dell.comDescription: 2156058989bSNarendra_K@Dell.com Reading this attribute will provide the firmware 2166058989bSNarendra_K@Dell.com given instance (ACPI _DSM instance number) of the PCI device. 2176058989bSNarendra_K@Dell.com The attribute will be created only if the firmware has given 2186058989bSNarendra_K@Dell.com an instance number to the PCI device. ACPI _DSM instance number 2196058989bSNarendra_K@Dell.com will be given priority if the system firmware provides SMBIOS 2206058989bSNarendra_K@Dell.com type 41 device type instance also. 2216058989bSNarendra_K@Dell.comUsers: 2226058989bSNarendra_K@Dell.com Userspace applications interested in knowing the 2236058989bSNarendra_K@Dell.com firmware assigned instance number of the PCI 2246058989bSNarendra_K@Dell.com device that can help in understanding the firmware 2256058989bSNarendra_K@Dell.com intended order of the PCI device. 226046c6531SHuang Ying 227046c6531SHuang YingWhat: /sys/bus/pci/devices/.../d3cold_allowed 228046c6531SHuang YingDate: July 2012 229046c6531SHuang YingContact: Huang Ying <ying.huang@intel.com> 230046c6531SHuang YingDescription: 231046c6531SHuang Ying d3cold_allowed is bit to control whether the corresponding PCI 232046c6531SHuang Ying device can be put into D3Cold state. If it is cleared, the 233046c6531SHuang Ying device will never be put into D3Cold state. If it is set, the 234046c6531SHuang Ying device may be put into D3Cold state if other requirements are 235046c6531SHuang Ying satisfied too. Reading this attribute will show the current 236046c6531SHuang Ying value of d3cold_allowed bit. Writing this attribute will set 237046c6531SHuang Ying the value of d3cold_allowed bit. 2382597ba76SDonald Dutile 2392597ba76SDonald DutileWhat: /sys/bus/pci/devices/.../sriov_totalvfs 2402597ba76SDonald DutileDate: November 2012 2412597ba76SDonald DutileContact: Donald Dutile <ddutile@redhat.com> 2422597ba76SDonald DutileDescription: 2432597ba76SDonald Dutile This file appears when a physical PCIe device supports SR-IOV. 2442597ba76SDonald Dutile Userspace applications can read this file to determine the 2452597ba76SDonald Dutile maximum number of Virtual Functions (VFs) a PCIe physical 2462597ba76SDonald Dutile function (PF) can support. Typically, this is the value reported 2472597ba76SDonald Dutile in the PF's SR-IOV extended capability structure's TotalVFs 2482597ba76SDonald Dutile element. Drivers have the ability at probe time to reduce the 2492597ba76SDonald Dutile value read from this file via the pci_sriov_set_totalvfs() 2502597ba76SDonald Dutile function. 2512597ba76SDonald Dutile 2522597ba76SDonald DutileWhat: /sys/bus/pci/devices/.../sriov_numvfs 2532597ba76SDonald DutileDate: November 2012 2542597ba76SDonald DutileContact: Donald Dutile <ddutile@redhat.com> 2552597ba76SDonald DutileDescription: 2562597ba76SDonald Dutile This file appears when a physical PCIe device supports SR-IOV. 2572597ba76SDonald Dutile Userspace applications can read and write to this file to 2582597ba76SDonald Dutile determine and control the enablement or disablement of Virtual 2592597ba76SDonald Dutile Functions (VFs) on the physical function (PF). A read of this 2602597ba76SDonald Dutile file will return the number of VFs that are enabled on this PF. 2612597ba76SDonald Dutile A number written to this file will enable the specified 2622597ba76SDonald Dutile number of VFs. A userspace application would typically read the 2632597ba76SDonald Dutile file and check that the value is zero, and then write the number 2642597ba76SDonald Dutile of VFs that should be enabled on the PF; the value written 2652597ba76SDonald Dutile should be less than or equal to the value in the sriov_totalvfs 2662597ba76SDonald Dutile file. A userspace application wanting to disable the VFs would 2672597ba76SDonald Dutile write a zero to this file. The core ensures that valid values 2682597ba76SDonald Dutile are written to this file, and returns errors when values are not 2692597ba76SDonald Dutile valid. For example, writing a 2 to this file when sriov_numvfs 2702597ba76SDonald Dutile is not 0 and not 2 already will return an error. Writing a 10 2712597ba76SDonald Dutile when the value of sriov_totalvfs is 8 will return an error. 272782a985dSAlex Williamson 273782a985dSAlex WilliamsonWhat: /sys/bus/pci/devices/.../driver_override 274782a985dSAlex WilliamsonDate: April 2014 275782a985dSAlex WilliamsonContact: Alex Williamson <alex.williamson@redhat.com> 276782a985dSAlex WilliamsonDescription: 277782a985dSAlex Williamson This file allows the driver for a device to be specified which 278782a985dSAlex Williamson will override standard static and dynamic ID matching. When 279782a985dSAlex Williamson specified, only a driver with a name matching the value written 280782a985dSAlex Williamson to driver_override will have an opportunity to bind to the 281782a985dSAlex Williamson device. The override is specified by writing a string to the 282782a985dSAlex Williamson driver_override file (echo pci-stub > driver_override) and 283782a985dSAlex Williamson may be cleared with an empty string (echo > driver_override). 284782a985dSAlex Williamson This returns the device to standard matching rules binding. 285782a985dSAlex Williamson Writing to driver_override does not automatically unbind the 286782a985dSAlex Williamson device from its current driver or make any attempt to 287782a985dSAlex Williamson automatically load the specified driver. If no driver with a 288782a985dSAlex Williamson matching name is currently loaded in the kernel, the device 289782a985dSAlex Williamson will not bind to any driver. This also allows devices to 290782a985dSAlex Williamson opt-out of driver binding using a driver_override name such as 291782a985dSAlex Williamson "none". Only a single driver may be specified in the override, 292782a985dSAlex Williamson there is no support for parsing delimiters. 29363692df1SPrarit Bhargava 29463692df1SPrarit BhargavaWhat: /sys/bus/pci/devices/.../numa_node 29563692df1SPrarit BhargavaDate: Oct 2014 29663692df1SPrarit BhargavaContact: Prarit Bhargava <prarit@redhat.com> 29763692df1SPrarit BhargavaDescription: 29863692df1SPrarit Bhargava This file contains the NUMA node to which the PCI device is 29963692df1SPrarit Bhargava attached, or -1 if the node is unknown. The initial value 30063692df1SPrarit Bhargava comes from an ACPI _PXM method or a similar firmware 30163692df1SPrarit Bhargava source. If that is missing or incorrect, this file can be 30263692df1SPrarit Bhargava written to override the node. In that case, please report 30363692df1SPrarit Bhargava a firmware bug to the system vendor. Writing to this file 30463692df1SPrarit Bhargava taints the kernel with TAINT_FIRMWARE_WORKAROUND, which 30563692df1SPrarit Bhargava reduces the supportability of your system. 306702ed3beSEmil Velikov 307702ed3beSEmil VelikovWhat: /sys/bus/pci/devices/.../revision 308702ed3beSEmil VelikovDate: November 2016 309702ed3beSEmil VelikovContact: Emil Velikov <emil.l.velikov@gmail.com> 310702ed3beSEmil VelikovDescription: 31188486beeSsayli karnik This file contains the revision field of the PCI device. 312702ed3beSEmil Velikov The value comes from device config space. The file is read only. 3130e7df224SBodong Wang 3140e7df224SBodong WangWhat: /sys/bus/pci/devices/.../sriov_drivers_autoprobe 3150e7df224SBodong WangDate: April 2017 3160e7df224SBodong WangContact: Bodong Wang<bodong@mellanox.com> 3170e7df224SBodong WangDescription: 3180e7df224SBodong Wang This file is associated with the PF of a device that 3190e7df224SBodong Wang supports SR-IOV. It determines whether newly-enabled VFs 3200e7df224SBodong Wang are immediately bound to a driver. It initially contains 3210e7df224SBodong Wang 1, which means the kernel automatically binds VFs to a 3220e7df224SBodong Wang compatible driver immediately after they are enabled. If 3230e7df224SBodong Wang an application writes 0 to the file before enabling VFs, 3240e7df224SBodong Wang the kernel will not bind VFs to a driver. 3250e7df224SBodong Wang 3260e7df224SBodong Wang A typical use case is to write 0 to this file, then enable 3270e7df224SBodong Wang VFs, then assign the newly-created VFs to virtual machines. 3280e7df224SBodong Wang Note that changing this file does not affect already- 3290e7df224SBodong Wang enabled VFs. In this scenario, the user must first disable 3300e7df224SBodong Wang the VFs, write 0 to sriov_drivers_autoprobe, then re-enable 3310e7df224SBodong Wang the VFs. 3320e7df224SBodong Wang 3330e7df224SBodong Wang This is similar to /sys/bus/pci/drivers_autoprobe, but 3340e7df224SBodong Wang affects only the VFs associated with a specific PF. 335cbb8ca69SLogan Gunthorpe 336cbb8ca69SLogan GunthorpeWhat: /sys/bus/pci/devices/.../p2pmem/size 337cbb8ca69SLogan GunthorpeDate: November 2017 338cbb8ca69SLogan GunthorpeContact: Logan Gunthorpe <logang@deltatee.com> 339cbb8ca69SLogan GunthorpeDescription: 340cbb8ca69SLogan Gunthorpe If the device has any Peer-to-Peer memory registered, this 341cbb8ca69SLogan Gunthorpe file contains the total amount of memory that the device 342cbb8ca69SLogan Gunthorpe provides (in decimal). 343cbb8ca69SLogan Gunthorpe 344cbb8ca69SLogan GunthorpeWhat: /sys/bus/pci/devices/.../p2pmem/available 345cbb8ca69SLogan GunthorpeDate: November 2017 346cbb8ca69SLogan GunthorpeContact: Logan Gunthorpe <logang@deltatee.com> 347cbb8ca69SLogan GunthorpeDescription: 348cbb8ca69SLogan Gunthorpe If the device has any Peer-to-Peer memory registered, this 349cbb8ca69SLogan Gunthorpe file contains the amount of memory that has not been 350cbb8ca69SLogan Gunthorpe allocated (in decimal). 351cbb8ca69SLogan Gunthorpe 352cbb8ca69SLogan GunthorpeWhat: /sys/bus/pci/devices/.../p2pmem/published 353cbb8ca69SLogan GunthorpeDate: November 2017 354cbb8ca69SLogan GunthorpeContact: Logan Gunthorpe <logang@deltatee.com> 355cbb8ca69SLogan GunthorpeDescription: 356cbb8ca69SLogan Gunthorpe If the device has any Peer-to-Peer memory registered, this 357cbb8ca69SLogan Gunthorpe file contains a '1' if the memory has been published for 358cbb8ca69SLogan Gunthorpe use outside the driver that owns the device. 35972ea91afSHeiner Kallweit 36072ea91afSHeiner KallweitWhat: /sys/bus/pci/devices/.../link/clkpm 36172ea91afSHeiner Kallweit /sys/bus/pci/devices/.../link/l0s_aspm 36272ea91afSHeiner Kallweit /sys/bus/pci/devices/.../link/l1_aspm 36372ea91afSHeiner Kallweit /sys/bus/pci/devices/.../link/l1_1_aspm 36472ea91afSHeiner Kallweit /sys/bus/pci/devices/.../link/l1_2_aspm 36572ea91afSHeiner Kallweit /sys/bus/pci/devices/.../link/l1_1_pcipm 36672ea91afSHeiner Kallweit /sys/bus/pci/devices/.../link/l1_2_pcipm 36772ea91afSHeiner KallweitDate: October 2019 36872ea91afSHeiner KallweitContact: Heiner Kallweit <hkallweit1@gmail.com> 36972ea91afSHeiner KallweitDescription: If ASPM is supported for an endpoint, these files can be 37072ea91afSHeiner Kallweit used to disable or enable the individual power management 37172ea91afSHeiner Kallweit states. Write y/1/on to enable, n/0/off to disable. 37280a129afSMaximilian Luz 37380a129afSMaximilian LuzWhat: /sys/bus/pci/devices/.../power_state 37480a129afSMaximilian LuzDate: November 2020 37580a129afSMaximilian LuzContact: Linux PCI developers <linux-pci@vger.kernel.org> 37680a129afSMaximilian LuzDescription: 37780a129afSMaximilian Luz This file contains the current PCI power state of the device. 37880a129afSMaximilian Luz The value comes from the PCI kernel device state and can be one 37980a129afSMaximilian Luz of: "unknown", "error", "D0", D1", "D2", "D3hot", "D3cold". 38080a129afSMaximilian Luz The file is read only. 381c3d5c2d9SLeon Romanovsky 382c3d5c2d9SLeon RomanovskyWhat: /sys/bus/pci/devices/.../sriov_vf_total_msix 383c3d5c2d9SLeon RomanovskyDate: January 2021 384c3d5c2d9SLeon RomanovskyContact: Leon Romanovsky <leonro@nvidia.com> 385c3d5c2d9SLeon RomanovskyDescription: 386c3d5c2d9SLeon Romanovsky This file is associated with a SR-IOV physical function (PF). 387c3d5c2d9SLeon Romanovsky It contains the total number of MSI-X vectors available for 388c3d5c2d9SLeon Romanovsky assignment to all virtual functions (VFs) associated with PF. 389c3d5c2d9SLeon Romanovsky The value will be zero if the device doesn't support this 390c3d5c2d9SLeon Romanovsky functionality. For supported devices, the value will be 391c3d5c2d9SLeon Romanovsky constant and won't be changed after MSI-X vectors assignment. 392c3d5c2d9SLeon Romanovsky 393c3d5c2d9SLeon RomanovskyWhat: /sys/bus/pci/devices/.../sriov_vf_msix_count 394c3d5c2d9SLeon RomanovskyDate: January 2021 395c3d5c2d9SLeon RomanovskyContact: Leon Romanovsky <leonro@nvidia.com> 396c3d5c2d9SLeon RomanovskyDescription: 397c3d5c2d9SLeon Romanovsky This file is associated with a SR-IOV virtual function (VF). 398c3d5c2d9SLeon Romanovsky It allows configuration of the number of MSI-X vectors for 399c3d5c2d9SLeon Romanovsky the VF. This allows devices that have a global pool of MSI-X 400c3d5c2d9SLeon Romanovsky vectors to optimally divide them between VFs based on VF usage. 401c3d5c2d9SLeon Romanovsky 402c3d5c2d9SLeon Romanovsky The values accepted are: 403c3d5c2d9SLeon Romanovsky * > 0 - this number will be reported as the Table Size in the 404c3d5c2d9SLeon Romanovsky VF's MSI-X capability 405c3d5c2d9SLeon Romanovsky * < 0 - not valid 406c3d5c2d9SLeon Romanovsky * = 0 - will reset to the device default value 407c3d5c2d9SLeon Romanovsky 408c3d5c2d9SLeon Romanovsky The file is writable if the PF is bound to a driver that 409c3d5c2d9SLeon Romanovsky implements ->sriov_set_msix_vec_count(). 410