aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorNarendra_K@Dell.com <Narendra_K@Dell.com>2011-03-02 12:04:17 -0500
committerJesse Barnes <jbarnes@virtuousgeek.org>2011-03-04 13:41:56 -0500
commit6058989bad05b82e78baacce69ec14f27a11b5fd (patch)
tree26353578e7e9a95d2ea101cd9a8e656d85ddd829 /Documentation
parentcdb9755849fbaf2bb9c0a009ba5baa817a0f152d (diff)
PCI: Export ACPI _DSM provided firmware instance number and string name to sysfs
This patch exports ACPI _DSM (Device Specific Method) provided firmware instance number and string name of PCI devices as defined by 'PCI Firmware Specification Revision 3.1' section 4.6.7.( DSM for Naming a PCI or PCI Express Device Under Operating Systems) to sysfs. New files created are: /sys/bus/pci/devices/.../label which contains the firmware name for the device in question, and /sys/bus/pci/devices/.../acpi_index which contains the firmware device type instance for the given device. cat /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/acpi_index 1 cat /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/label Embedded Broadcom 5709C NIC 1 cat /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/acpi_index 2 cat /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/label Embedded Broadcom 5709C NIC 2 The ACPI _DSM provided firmware 'instance number' and 'string name' will be given priority if the firmware also provides 'SMBIOS type 41 device type instance and string'. Signed-off-by: Matthew Garrett <mjg@redhat.com> Signed-off-by: Jordan Hargrave <jordan_hargrave@dell.com> Signed-off-by: Narendra K <narendra_k@dell.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/ABI/testing/sysfs-bus-pci31
1 files changed, 24 insertions, 7 deletions
diff --git a/Documentation/ABI/testing/sysfs-bus-pci b/Documentation/ABI/testing/sysfs-bus-pci
index f979d825d112..36bf454ba855 100644
--- a/Documentation/ABI/testing/sysfs-bus-pci
+++ b/Documentation/ABI/testing/sysfs-bus-pci
@@ -145,9 +145,11 @@ Date: July 2010
145Contact: Narendra K <narendra_k@dell.com>, linux-bugs@dell.com 145Contact: Narendra K <narendra_k@dell.com>, linux-bugs@dell.com
146Description: 146Description:
147 Reading this attribute will provide the firmware 147 Reading this attribute will provide the firmware
148 given name(SMBIOS type 41 string) of the PCI device. 148 given name (SMBIOS type 41 string or ACPI _DSM string) of
149 The attribute will be created only if the firmware 149 the PCI device. The attribute will be created only
150 has given a name to the PCI device. 150 if the firmware has given a name to the PCI device.
151 ACPI _DSM string name will be given priority if the
152 system firmware provides SMBIOS type 41 string also.
151Users: 153Users:
152 Userspace applications interested in knowing the 154 Userspace applications interested in knowing the
153 firmware assigned name of the PCI device. 155 firmware assigned name of the PCI device.
@@ -157,12 +159,27 @@ Date: July 2010
157Contact: Narendra K <narendra_k@dell.com>, linux-bugs@dell.com 159Contact: Narendra K <narendra_k@dell.com>, linux-bugs@dell.com
158Description: 160Description:
159 Reading this attribute will provide the firmware 161 Reading this attribute will provide the firmware
160 given instance(SMBIOS type 41 device type instance) 162 given instance (SMBIOS type 41 device type instance) of the
161 of the PCI device. The attribute will be created 163 PCI device. The attribute will be created only if the firmware
162 only if the firmware has given a device type instance 164 has given an instance number to the PCI device.
163 to the PCI device.
164Users: 165Users:
165 Userspace applications interested in knowing the 166 Userspace applications interested in knowing the
166 firmware assigned device type instance of the PCI 167 firmware assigned device type instance of the PCI
167 device that can help in understanding the firmware 168 device that can help in understanding the firmware
168 intended order of the PCI device. 169 intended order of the PCI device.
170
171What: /sys/bus/pci/devices/.../acpi_index
172Date: July 2010
173Contact: Narendra K <narendra_k@dell.com>, linux-bugs@dell.com
174Description:
175 Reading this attribute will provide the firmware
176 given instance (ACPI _DSM instance number) of the PCI device.
177 The attribute will be created only if the firmware has given
178 an instance number to the PCI device. ACPI _DSM instance number
179 will be given priority if the system firmware provides SMBIOS
180 type 41 device type instance also.
181Users:
182 Userspace applications interested in knowing the
183 firmware assigned instance number of the PCI
184 device that can help in understanding the firmware
185 intended order of the PCI device.