lkml.org 
[lkml]   [2008]   [Jun]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patches in this message
    /
    Date
    From
    SubjectRe: [Bug 10872] x86_64 boot hang when CONFIG_NUMA=n
    On Sun, Jun 15, 2008 at 9:35 AM, Randy Dunlap <randy.dunlap@oracle.com> wrote:
    > On Sat, 14 Jun 2008 22:12:04 +0200 (CEST) Rafael J. Wysocki wrote:
    >
    >> This message has been generated automatically as a part of a report
    >> of recent regressions.
    >>
    >> The following bug entry is on the current list of known regressions
    >> from 2.6.25. Please verify if it still should be listed.
    >>
    >>
    >> Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=10872
    >> Subject : x86_64 boot hang when CONFIG_NUMA=n
    >> Submitter : Randy Dunlap <randy.dunlap@oracle.com>
    >> Date : 2008-06-05 21:50 (10 days old)
    >> References : http://marc.info/?l=linux-kernel&m=121270308607116&w=4
    >> http://lkml.org/lkml/2008/6/11/355
    >> Handled-By : Yinghai Lu <yhlu.kernel@gmail.com>
    >
    > Yes, still happens for me on 2.6.26-rc6-git2.
    >

    please send out whole boot log with numa on and numa off
    and boot with debug

    please apply attached debug patch too.

    YH
    Index: linux-2.6/drivers/pci/setup-bus.c
    ===================================================================
    --- linux-2.6.orig/drivers/pci/setup-bus.c
    +++ linux-2.6/drivers/pci/setup-bus.c
    @@ -537,6 +537,36 @@ void __ref pci_bus_assign_resources(stru
    }
    EXPORT_SYMBOL(pci_bus_assign_resources);

    +static void pci_bus_dump_res(struct pci_bus *bus)
    +{
    + int i;
    +
    + for (i = 0; i < PCI_BUS_NUM_RESOURCES; i++) {
    + struct resource *res = bus->resource[i];
    + if (!res)
    + continue;
    +
    + printk(KERN_INFO "bus: %02x index %x %s: [%llx, %llx]\n", bus->number, i, (res->flags & IORESOURCE_IO)? "io port":"mmio", res->start, res->end);
    + }
    +}
    +
    +static void pci_bus_dump_resources(struct pci_bus *bus)
    +{
    + struct pci_bus *b;
    + struct pci_dev *dev;
    +
    +
    + pci_bus_dump_res(bus);
    +
    + list_for_each_entry(dev, &bus->devices, bus_list) {
    + b = dev->subordinate;
    + if (!b)
    + continue;
    +
    + pci_bus_dump_resources(b);
    + }
    +}
    +
    void __init
    pci_assign_unassigned_resources(void)
    {
    @@ -552,4 +582,9 @@ pci_assign_unassigned_resources(void)
    pci_bus_assign_resources(bus);
    pci_enable_bridges(bus);
    }
    +
    + /* dump the resource on buses */
    + list_for_each_entry(bus, &pci_root_buses, node) {
    + pci_bus_dump_resources(bus);
    + }
    }Index: linux-2.6/drivers/pci/probe.c
    ===================================================================
    --- linux-2.6.orig/drivers/pci/probe.c
    +++ linux-2.6/drivers/pci/probe.c
    @@ -275,6 +275,7 @@ static void pci_read_bases(struct pci_de
    }
    res->start = l64 & PCI_BASE_ADDRESS_MEM_MASK;
    res->end = res->start + sz64;
    + printk(KERN_INFO "PCI: %s reg %x 64bit mmio: [%llx, %llx]\n", pci_name(dev), reg, res->start, res->end);
    #else
    if (sz64 > 0x100000000ULL) {
    printk(KERN_ERR "PCI: Unable to handle 64-bit "
    @@ -290,6 +291,8 @@ static void pci_read_bases(struct pci_de
    res->end = sz;
    }
    #endif
    + } else {
    + 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);
    }
    }
    if (rom) {
    @@ -357,6 +360,7 @@ void __devinit pci_read_bridge_bases(str
    res->start = base;
    if (!res->end)
    res->end = limit + 0xfff;
    + printk(KERN_INFO "PCI: bridge %s io port: [%llx, %llx]\n", pci_name(dev), res->start, res->end);
    }

    res = child->resource[1];
    @@ -368,6 +372,7 @@ void __devinit pci_read_bridge_bases(str
    res->flags = (mem_base_lo & PCI_MEMORY_RANGE_TYPE_MASK) | IORESOURCE_MEM;
    res->start = base;
    res->end = limit + 0xfffff;
    + printk(KERN_INFO "PCI: bridge %s 32bit mmio: [%llx, %llx]\n", pci_name(dev), res->start, res->end);
    }

    res = child->resource[2];
    @@ -402,6 +407,7 @@ void __devinit pci_read_bridge_bases(str
    res->flags = (mem_base_lo & PCI_MEMORY_RANGE_TYPE_MASK) | IORESOURCE_MEM | IORESOURCE_PREFETCH;
    res->start = base;
    res->end = limit + 0xfffff;
    + 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);
    }
    }
    \
     
     \ /
      Last update: 2008-06-15 21:21    [W:0.028 / U:30.276 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site