diff options
author | Gary Hade <garyhade@us.ibm.com> | 2008-02-08 17:00:52 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-04-21 00:47:03 -0400 |
commit | cb3576fa34e36907e292f408cb6c258f4fd112ad (patch) | |
tree | 39756b6a25ba477e0f58e3a4efd125d0953d4296 /arch/x86/pci | |
parent | 21c6847406784fde73ad5ea47c2c3434714d58d1 (diff) |
PCI: Include PCI domain in PCI bus names on x86/x86_64
The PCI bus names included in /proc/iomem and /proc/ioports are
of the form 'PCI Bus #XX' where XX is the bus number. This patch
changes the naming to 'PCI Bus XXXX:YY' where XXXX is the domain
number and YY is the bus number. For example, PCI bus 14 in
domain 0 will show as 'PCI Bus 0000:14' instead of 'PCI Bus #14'.
This change makes the naming consistent with other architectures
such as ia64 where multiple PCI domain support has been around
longer.
Signed-off-by: Gary Hade <garyhade@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch/x86/pci')
-rw-r--r-- | arch/x86/pci/acpi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/pci/acpi.c b/arch/x86/pci/acpi.c index 378136fb5044..8e0e7238370e 100644 --- a/arch/x86/pci/acpi.c +++ b/arch/x86/pci/acpi.c | |||
@@ -151,7 +151,7 @@ adjust_transparent_bridge_resources(struct pci_bus *bus) | |||
151 | 151 | ||
152 | static void | 152 | static void |
153 | get_current_resources(struct acpi_device *device, int busnum, | 153 | get_current_resources(struct acpi_device *device, int busnum, |
154 | struct pci_bus *bus) | 154 | int domain, struct pci_bus *bus) |
155 | { | 155 | { |
156 | struct pci_root_info info; | 156 | struct pci_root_info info; |
157 | size_t size; | 157 | size_t size; |
@@ -168,10 +168,10 @@ get_current_resources(struct acpi_device *device, int busnum, | |||
168 | if (!info.res) | 168 | if (!info.res) |
169 | goto res_alloc_fail; | 169 | goto res_alloc_fail; |
170 | 170 | ||
171 | info.name = kmalloc(12, GFP_KERNEL); | 171 | info.name = kmalloc(16, GFP_KERNEL); |
172 | if (!info.name) | 172 | if (!info.name) |
173 | goto name_alloc_fail; | 173 | goto name_alloc_fail; |
174 | sprintf(info.name, "PCI Bus #%02x", busnum); | 174 | sprintf(info.name, "PCI Bus %04x:%02x", domain, busnum); |
175 | 175 | ||
176 | info.res_num = 0; | 176 | info.res_num = 0; |
177 | acpi_walk_resources(device->handle, METHOD_NAME__CRS, setup_resource, | 177 | acpi_walk_resources(device->handle, METHOD_NAME__CRS, setup_resource, |
@@ -247,7 +247,7 @@ struct pci_bus * __devinit pci_acpi_scan_root(struct acpi_device *device, int do | |||
247 | #endif | 247 | #endif |
248 | 248 | ||
249 | if (bus && (pci_probe & PCI_USE__CRS)) | 249 | if (bus && (pci_probe & PCI_USE__CRS)) |
250 | get_current_resources(device, busnum, bus); | 250 | get_current_resources(device, busnum, domain, bus); |
251 | 251 | ||
252 | return bus; | 252 | return bus; |
253 | } | 253 | } |