diff options
-rw-r--r-- | arch/ia64/pci/pci.c | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/arch/ia64/pci/pci.c b/arch/ia64/pci/pci.c index d60e7195b7dd..06413b827e97 100644 --- a/arch/ia64/pci/pci.c +++ b/arch/ia64/pci/pci.c | |||
@@ -131,6 +131,7 @@ alloc_pci_controller (int seg) | |||
131 | } | 131 | } |
132 | 132 | ||
133 | struct pci_root_info { | 133 | struct pci_root_info { |
134 | struct acpi_device *bridge; | ||
134 | struct pci_controller *controller; | 135 | struct pci_controller *controller; |
135 | char *name; | 136 | char *name; |
136 | }; | 137 | }; |
@@ -297,9 +298,19 @@ static __devinit acpi_status add_window(struct acpi_resource *res, void *data) | |||
297 | window->offset = offset; | 298 | window->offset = offset; |
298 | 299 | ||
299 | if (insert_resource(root, &window->resource)) { | 300 | if (insert_resource(root, &window->resource)) { |
300 | printk(KERN_ERR "alloc 0x%llx-0x%llx from %s for %s failed\n", | 301 | dev_err(&info->bridge->dev, "can't allocate %pRt\n", |
301 | window->resource.start, window->resource.end, | 302 | &window->resource); |
302 | root->name, info->name); | 303 | } else { |
304 | if (offset) | ||
305 | dev_info(&info->bridge->dev, "host bridge window: %pRt " | ||
306 | "(PCI address [%#llx-%#llx])\n", | ||
307 | &window->resource, | ||
308 | window->resource.start - offset, | ||
309 | window->resource.end - offset); | ||
310 | else | ||
311 | dev_info(&info->bridge->dev, | ||
312 | "host bridge window: %pRt\n", | ||
313 | &window->resource); | ||
303 | } | 314 | } |
304 | 315 | ||
305 | return AE_OK; | 316 | return AE_OK; |
@@ -319,8 +330,7 @@ pcibios_setup_root_windows(struct pci_bus *bus, struct pci_controller *ctrl) | |||
319 | (res->end - res->start < 16)) | 330 | (res->end - res->start < 16)) |
320 | continue; | 331 | continue; |
321 | if (j >= PCI_BUS_NUM_RESOURCES) { | 332 | if (j >= PCI_BUS_NUM_RESOURCES) { |
322 | printk("Ignoring range [%#llx-%#llx] (%lx)\n", | 333 | dev_warn(&bus->dev, "ignoring %pRf (no space)\n", res); |
323 | res->start, res->end, res->flags); | ||
324 | continue; | 334 | continue; |
325 | } | 335 | } |
326 | bus->resource[j++] = res; | 336 | bus->resource[j++] = res; |
@@ -364,6 +374,7 @@ pci_acpi_scan_root(struct acpi_device *device, int domain, int bus) | |||
364 | goto out3; | 374 | goto out3; |
365 | 375 | ||
366 | sprintf(name, "PCI Bus %04x:%02x", domain, bus); | 376 | sprintf(name, "PCI Bus %04x:%02x", domain, bus); |
377 | info.bridge = device; | ||
367 | info.controller = controller; | 378 | info.controller = controller; |
368 | info.name = name; | 379 | info.name = name; |
369 | acpi_walk_resources(device->handle, METHOD_NAME__CRS, | 380 | acpi_walk_resources(device->handle, METHOD_NAME__CRS, |