Re: [PATCH 0/4] PCI: improve messages for debuggability

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday 04 November 2009 10:44:35 am Matthew Wilcox wrote:
> On Wed, Nov 04, 2009 at 10:32:37AM -0700, Bjorn Helgaas wrote:
> > This series doesn't change any behavior; it just makes our messages
> > about PCI resource management a little more consistent and complete.
> 
> Could you give a before-and-after sample subset of dmesg?  This looks
> good, on its face, I just want to see examples.

Sure.  In the normal case, it's not terribly interesting -- I added some
bridge discovery information and ROM BAR assignment messages, as in the
HP DL380G6 diff below.  It's more interesting when we find problems.  I'll
try to dig up an example of that, too.

--- dl380g6a.old	2009-11-04 12:21:34.000000000 -0700
+++ dl380g6a.new	2009-11-04 12:22:11.000000000 -0700
@@ -324,8 +324,18 @@
 pci 0000:04:00.0: supports D1
 pci 0000:04:00.0: PME# supported from D0
 pci 0000:04:00.0: PME# disabled
+pci 0000:00:01.0: PCI bridge to [bus 04-04]
 pci 0000:00:01.0:   bridge window [io  0x4000-0x4fff]
 pci 0000:00:01.0:   bridge window [mem 0xfbb00000-0xfbffffff]
+pci 0000:00:02.0: PCI bridge to [bus 05-05]
+pci 0000:00:03.0: PCI bridge to [bus 10-12]
+pci 0000:00:04.0: PCI bridge to [bus 13-13]
+pci 0000:00:05.0: PCI bridge to [bus 14-16]
+pci 0000:00:06.0: PCI bridge to [bus 17-19]
+pci 0000:00:07.0: PCI bridge to [bus 0d-0f]
+pci 0000:00:08.0: PCI bridge to [bus 0a-0c]
+pci 0000:00:09.0: PCI bridge to [bus 07-09]
+pci 0000:00:0a.0: PCI bridge to [bus 06-06]
 pci 0000:02:00.0: reg 10: [mem 0xf4000000-0xf5ffffff 64bit]
 pci 0000:02:00.0: reg 30: [mem 0x00000000-0x0000ffff pref]
 pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
@@ -334,6 +344,7 @@
 pci 0000:02:00.1: reg 30: [mem 0x00000000-0x0000ffff pref]
 pci 0000:02:00.1: PME# supported from D0 D3hot D3cold
 pci 0000:02:00.1: PME# disabled
+pci 0000:00:1c.0: PCI bridge to [bus 02-02]
 pci 0000:00:1c.0:   bridge window [mem 0xf2000000-0xf5ffffff]
 pci 0000:03:00.0: reg 10: [mem 0xf8000000-0xf9ffffff 64bit]
 pci 0000:03:00.0: reg 30: [mem 0x00000000-0x0000ffff pref]
@@ -343,6 +354,7 @@
 pci 0000:03:00.1: reg 30: [mem 0x00000000-0x0000ffff pref]
 pci 0000:03:00.1: PME# supported from D0 D3hot D3cold
 pci 0000:03:00.1: PME# disabled
+pci 0000:00:1c.2: PCI bridge to [bus 03-03]
 pci 0000:00:1c.2:   bridge window [mem 0xf6000000-0xf9ffffff]
 pci 0000:01:03.0: reg 10: [mem 0xe8000000-0xefffffff pref]
 pci 0000:01:03.0: reg 14: [io  0x3000-0x30ff]
@@ -366,7 +378,7 @@
 pci 0000:01:04.6: reg 10: [mem 0xf1ef0000-0xf1ef00ff]
 pci 0000:01:04.6: PME# supported from D0 D3hot D3cold
 pci 0000:01:04.6: PME# disabled
-pci 0000:00:1e.0: transparent bridge
+pci 0000:00:1e.0: PCI bridge to [bus 01-01] (subtractive decode)
 pci 0000:00:1e.0:   bridge window [io  0x2000-0x3fff]
 pci 0000:00:1e.0:   bridge window [mem 0xf1e00000-0xf1ffffff]
 pci 0000:00:1e.0:   bridge window [mem 0xe8000000-0xefffffff 64bit pref]
@@ -434,55 +446,65 @@
 system 00:01: [mem 0xe0000000-0xe3ffffff] has been reserved
 system 00:01: [mem 0xfe000000-0xfebfffff] has been reserved
 system 00:01: [mem 0xe7ffe000-0xe7ffffff] has been reserved
-pci 0000:00:01.0: PCI bridge, secondary bus 0000:04
+pci 0000:00:01.0: BAR 9: assigned [mem 0xe4000000-0xe40fffff pref]
+pci 0000:00:1c.0: BAR 9: assigned [mem 0xe4100000-0xe41fffff pref]
+pci 0000:00:1c.2: BAR 9: assigned [mem 0xe4200000-0xe42fffff pref]
+pci 0000:04:00.0: BAR 6: assigned [mem 0xe4000000-0xe407ffff pref]
+pci 0000:00:01.0: PCI bridge to [bus 04-04]
 pci 0000:00:01.0:   bridge window [io  0x4000-0x4fff]
 pci 0000:00:01.0:   bridge window [mem 0xfbb00000-0xfbffffff]
 pci 0000:00:01.0:   bridge window [mem 0xe4000000-0xe40fffff pref]
-pci 0000:00:02.0: PCI bridge, secondary bus 0000:05
+pci 0000:00:02.0: PCI bridge to [bus 05-05]
 pci 0000:00:02.0:   bridge window [io  disabled]
 pci 0000:00:02.0:   bridge window [mem disabled]
 pci 0000:00:02.0:   bridge window [mem pref disabled]
-pci 0000:00:03.0: PCI bridge, secondary bus 0000:10
+pci 0000:00:03.0: PCI bridge to [bus 10-12]
 pci 0000:00:03.0:   bridge window [io  disabled]
 pci 0000:00:03.0:   bridge window [mem disabled]
 pci 0000:00:03.0:   bridge window [mem pref disabled]
-pci 0000:00:04.0: PCI bridge, secondary bus 0000:13
+pci 0000:00:04.0: PCI bridge to [bus 13-13]
 pci 0000:00:04.0:   bridge window [io  disabled]
 pci 0000:00:04.0:   bridge window [mem disabled]
 pci 0000:00:04.0:   bridge window [mem pref disabled]
-pci 0000:00:05.0: PCI bridge, secondary bus 0000:14
+pci 0000:00:05.0: PCI bridge to [bus 14-16]
 pci 0000:00:05.0:   bridge window [io  disabled]
 pci 0000:00:05.0:   bridge window [mem disabled]
 pci 0000:00:05.0:   bridge window [mem pref disabled]
-pci 0000:00:06.0: PCI bridge, secondary bus 0000:17
+pci 0000:00:06.0: PCI bridge to [bus 17-19]
 pci 0000:00:06.0:   bridge window [io  disabled]
 pci 0000:00:06.0:   bridge window [mem disabled]
 pci 0000:00:06.0:   bridge window [mem pref disabled]
-pci 0000:00:07.0: PCI bridge, secondary bus 0000:0d
+pci 0000:00:07.0: PCI bridge to [bus 0d-0f]
 pci 0000:00:07.0:   bridge window [io  disabled]
 pci 0000:00:07.0:   bridge window [mem disabled]
 pci 0000:00:07.0:   bridge window [mem pref disabled]
-pci 0000:00:08.0: PCI bridge, secondary bus 0000:0a
+pci 0000:00:08.0: PCI bridge to [bus 0a-0c]
 pci 0000:00:08.0:   bridge window [io  disabled]
 pci 0000:00:08.0:   bridge window [mem disabled]
 pci 0000:00:08.0:   bridge window [mem pref disabled]
-pci 0000:00:09.0: PCI bridge, secondary bus 0000:07
+pci 0000:00:09.0: PCI bridge to [bus 07-09]
 pci 0000:00:09.0:   bridge window [io  disabled]
 pci 0000:00:09.0:   bridge window [mem disabled]
 pci 0000:00:09.0:   bridge window [mem pref disabled]
-pci 0000:00:0a.0: PCI bridge, secondary bus 0000:06
+pci 0000:00:0a.0: PCI bridge to [bus 06-06]
 pci 0000:00:0a.0:   bridge window [io  disabled]
 pci 0000:00:0a.0:   bridge window [mem disabled]
 pci 0000:00:0a.0:   bridge window [mem pref disabled]
-pci 0000:00:1c.0: PCI bridge, secondary bus 0000:02
+pci 0000:02:00.0: BAR 6: assigned [mem 0xe4100000-0xe410ffff pref]
+pci 0000:02:00.1: BAR 6: assigned [mem 0xe4110000-0xe411ffff pref]
+pci 0000:00:1c.0: PCI bridge to [bus 02-02]
 pci 0000:00:1c.0:   bridge window [io  disabled]
 pci 0000:00:1c.0:   bridge window [mem 0xf2000000-0xf5ffffff]
 pci 0000:00:1c.0:   bridge window [mem 0xe4100000-0xe41fffff pref]
-pci 0000:00:1c.2: PCI bridge, secondary bus 0000:03
+pci 0000:03:00.0: BAR 6: assigned [mem 0xe4200000-0xe420ffff pref]
+pci 0000:03:00.1: BAR 6: assigned [mem 0xe4210000-0xe421ffff pref]
+pci 0000:00:1c.2: PCI bridge to [bus 03-03]
 pci 0000:00:1c.2:   bridge window [io  disabled]
 pci 0000:00:1c.2:   bridge window [mem 0xf6000000-0xf9ffffff]
 pci 0000:00:1c.2:   bridge window [mem 0xe4200000-0xe42fffff pref]
-pci 0000:00:1e.0: PCI bridge, secondary bus 0000:01
+pci 0000:01:03.0: BAR 6: assigned [mem 0xf1e00000-0xf1e1ffff pref]
+pci 0000:01:04.2: BAR 6: assigned [mem 0xf1e20000-0xf1e2ffff pref]
+pci 0000:00:1e.0: PCI bridge to [bus 01-01]
 pci 0000:00:1e.0:   bridge window [io  0x2000-0x3fff]
 pci 0000:00:1e.0:   bridge window [mem 0xf1e00000-0xf1ffffff]
 pci 0000:00:1e.0:   bridge window [mem 0xe8000000-0xefffffff 64bit pref]
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux