Commit 251d96a7 authored by David Mosberger's avatar David Mosberger

ia64: Skip zero-length resources in PCI root bridge _CRS. This fixes

some ugly messages that used to show up on Tiger and other Intel
boxes:

        alloc 0xffffffff-0x0 from PCI mem for PCI Bus 0000:02 failed
        alloc 0xffffffff-0x0 from PCI mem for PCI Bus 0000:08 failed
        alloc 0xffffffff-0x0 from PCI mem for PCI Bus 0000:08 failed
        alloc 0xffffffff-0x0 from PCI mem for PCI Bus 0000:08 failed
        alloc 0xffff-0x0 from PCI IO for PCI Bus 0000:08 failed
        alloc 0xffffffff-0x0 from PCI mem for PCI Bus 0000:09 failed
        alloc 0xffffffff-0x0 from PCI mem for PCI Bus 0000:0f failed
parent 1537e569
...@@ -223,6 +223,9 @@ add_window (struct acpi_resource *res, void *data) ...@@ -223,6 +223,9 @@ add_window (struct acpi_resource *res, void *data)
status = acpi_resource_to_address64(res, &addr); status = acpi_resource_to_address64(res, &addr);
if (ACPI_SUCCESS(status)) { if (ACPI_SUCCESS(status)) {
if (!addr.address_length)
return AE_OK;
if (addr.resource_type == ACPI_MEMORY_RANGE) { if (addr.resource_type == ACPI_MEMORY_RANGE) {
flags = IORESOURCE_MEM; flags = IORESOURCE_MEM;
root = &iomem_resource; root = &iomem_resource;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment