diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-06-23 14:33:06 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-06-23 15:57:19 -0400 |
commit | 9bf8a1a79d549a0cf3b26c88d1ac8cdf07deafee (patch) | |
tree | a4916a9e8e6be55be0893d9b45dc6147fd161509 /drivers | |
parent | 066519068ad2fbe98c7f45552b1f592903a9c8c8 (diff) |
pci: debug extra pci resources range
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pci/probe.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 3706ce7972dd..27cdbb06c4dd 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c | |||
@@ -275,6 +275,7 @@ static void pci_read_bases(struct pci_dev *dev, unsigned int howmany, int rom) | |||
275 | } | 275 | } |
276 | res->start = l64 & PCI_BASE_ADDRESS_MEM_MASK; | 276 | res->start = l64 & PCI_BASE_ADDRESS_MEM_MASK; |
277 | res->end = res->start + sz64; | 277 | res->end = res->start + sz64; |
278 | printk(KERN_INFO "PCI: %s reg %x 64bit mmio: [%llx, %llx]\n", pci_name(dev), reg, res->start, res->end); | ||
278 | #else | 279 | #else |
279 | if (sz64 > 0x100000000ULL) { | 280 | if (sz64 > 0x100000000ULL) { |
280 | printk(KERN_ERR "PCI: Unable to handle 64-bit " | 281 | printk(KERN_ERR "PCI: Unable to handle 64-bit " |
@@ -290,6 +291,8 @@ static void pci_read_bases(struct pci_dev *dev, unsigned int howmany, int rom) | |||
290 | res->end = sz; | 291 | res->end = sz; |
291 | } | 292 | } |
292 | #endif | 293 | #endif |
294 | } else { | ||
295 | printk(KERN_INFO "PCI: %s reg %x %s: [%llx, %llx]\n", pci_name(dev), reg, (res->flags & IORESOURCE_IO)? "io port":"32bit mmio", res->start, res->end); | ||
293 | } | 296 | } |
294 | } | 297 | } |
295 | if (rom) { | 298 | if (rom) { |
@@ -357,6 +360,7 @@ void __devinit pci_read_bridge_bases(struct pci_bus *child) | |||
357 | res->start = base; | 360 | res->start = base; |
358 | if (!res->end) | 361 | if (!res->end) |
359 | res->end = limit + 0xfff; | 362 | res->end = limit + 0xfff; |
363 | printk(KERN_INFO "PCI: bridge %s io port: [%llx, %llx]\n", pci_name(dev), res->start, res->end); | ||
360 | } | 364 | } |
361 | 365 | ||
362 | res = child->resource[1]; | 366 | res = child->resource[1]; |
@@ -368,6 +372,7 @@ void __devinit pci_read_bridge_bases(struct pci_bus *child) | |||
368 | res->flags = (mem_base_lo & PCI_MEMORY_RANGE_TYPE_MASK) | IORESOURCE_MEM; | 372 | res->flags = (mem_base_lo & PCI_MEMORY_RANGE_TYPE_MASK) | IORESOURCE_MEM; |
369 | res->start = base; | 373 | res->start = base; |
370 | res->end = limit + 0xfffff; | 374 | res->end = limit + 0xfffff; |
375 | printk(KERN_INFO "PCI: bridge %s 32bit mmio: [%llx, %llx]\n", pci_name(dev), res->start, res->end); | ||
371 | } | 376 | } |
372 | 377 | ||
373 | res = child->resource[2]; | 378 | res = child->resource[2]; |
@@ -402,6 +407,7 @@ void __devinit pci_read_bridge_bases(struct pci_bus *child) | |||
402 | res->flags = (mem_base_lo & PCI_MEMORY_RANGE_TYPE_MASK) | IORESOURCE_MEM | IORESOURCE_PREFETCH; | 407 | res->flags = (mem_base_lo & PCI_MEMORY_RANGE_TYPE_MASK) | IORESOURCE_MEM | IORESOURCE_PREFETCH; |
403 | res->start = base; | 408 | res->start = base; |
404 | res->end = limit + 0xfffff; | 409 | res->end = limit + 0xfffff; |
410 | printk(KERN_INFO "PCI: bridge %s %sbit mmio pref: [%llx, %llx]\n", pci_name(dev), (res->flags & PCI_PREF_RANGE_TYPE_64)?"64":"32",res->start, res->end); | ||
405 | } | 411 | } |
406 | } | 412 | } |
407 | 413 | ||