diff options
Diffstat (limited to 'drivers/pci/setup-bus.c')
-rw-r--r-- | drivers/pci/setup-bus.c | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c index 35086e80faa..54404917be9 100644 --- a/drivers/pci/setup-bus.c +++ b/drivers/pci/setup-bus.c | |||
@@ -55,12 +55,19 @@ pbus_assign_resources_sorted(struct pci_bus *bus) | |||
55 | list_for_each_entry(dev, &bus->devices, bus_list) { | 55 | list_for_each_entry(dev, &bus->devices, bus_list) { |
56 | u16 class = dev->class >> 8; | 56 | u16 class = dev->class >> 8; |
57 | 57 | ||
58 | /* Don't touch classless devices or host bridges or ioapics. */ | 58 | /* Don't touch classless devices or host bridges. */ |
59 | if (class == PCI_CLASS_NOT_DEFINED || | 59 | if (class == PCI_CLASS_NOT_DEFINED || |
60 | class == PCI_CLASS_BRIDGE_HOST || | 60 | class == PCI_CLASS_BRIDGE_HOST) |
61 | class == PCI_CLASS_SYSTEM_PIC) | ||
62 | continue; | 61 | continue; |
63 | 62 | ||
63 | /* Don't touch ioapics if it has the assigned resources. */ | ||
64 | if (class == PCI_CLASS_SYSTEM_PIC) { | ||
65 | res = &dev->resource[0]; | ||
66 | if (res[0].start || res[1].start || res[2].start || | ||
67 | res[3].start || res[4].start || res[5].start) | ||
68 | continue; | ||
69 | } | ||
70 | |||
64 | pdev_sort_resources(dev, &head); | 71 | pdev_sort_resources(dev, &head); |
65 | } | 72 | } |
66 | 73 | ||
@@ -357,8 +364,10 @@ pbus_size_mem(struct pci_bus *bus, unsigned long mask, unsigned long type) | |||
357 | order = __ffs(align) - 20; | 364 | order = __ffs(align) - 20; |
358 | if (order > 11) { | 365 | if (order > 11) { |
359 | printk(KERN_WARNING "PCI: region %s/%d " | 366 | printk(KERN_WARNING "PCI: region %s/%d " |
360 | "too large: %lx-%lx\n", | 367 | "too large: %llx-%llx\n", |
361 | pci_name(dev), i, r->start, r->end); | 368 | pci_name(dev), i, |
369 | (unsigned long long)r->start, | ||
370 | (unsigned long long)r->end); | ||
362 | r->flags = 0; | 371 | r->flags = 0; |
363 | continue; | 372 | continue; |
364 | } | 373 | } |