X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=coreboot.git;a=blobdiff_plain;f=src%2Fdevices%2Fhypertransport.c;h=2a733867e6a38cbada563b1f57f25f52c478aeef;hp=926729177eb0d9d4d2ffa751df37a2e83855177a;hb=e16bee4a7c7723b45d72de29aea496a23fa32028;hpb=563b38efe2089e1699ff7f7166b365f69bd3434c diff --git a/src/devices/hypertransport.c b/src/devices/hypertransport.c index 926729177..2a733867e 100644 --- a/src/devices/hypertransport.c +++ b/src/devices/hypertransport.c @@ -436,8 +436,10 @@ unsigned int hypertransport_scan_chain(struct bus *bus, unsigned min_devfn, device_t real_last_dev = NULL; #endif + printk(BIOS_INFO, "%s: before ht_collapse_early_enumeration\n", __func__); /* Restore the hypertransport chain to it's unitialized state. */ ht_collapse_early_enumeration(bus, offset_unitid); + printk(BIOS_INFO, "%s: after ht_collapse_early_enumeration\n", __func__); /* See which static device nodes I have. */ old_devices = bus->children; @@ -492,16 +494,22 @@ unsigned int hypertransport_scan_chain(struct bus *bus, unsigned min_devfn, } while ((ctrl & (1 << 5)) == 0); + printk(BIOS_INFO, "%s: before ht_scan_get_devs\n", __func__); /* Get and setup the device_structure. */ dev = ht_scan_get_devs(&old_devices); + printk(BIOS_INFO, "%s: after ht_scan_get_devs\n", __func__); /* See if a device is present and setup the device structure. */ + printk(BIOS_INFO, "%s: before pci_probe_dev\n", __func__); dev = pci_probe_dev(dev, bus, 0); + printk(BIOS_INFO, "%s: after pci_probe_dev\n", __func__); if (!dev || !dev->enabled) break; /* Find the hypertransport link capability. */ + printk(BIOS_INFO, "%s: before ht_lookup_slave_capability\n", __func__); pos = ht_lookup_slave_capability(dev); + printk(BIOS_INFO, "%s: after ht_lookup_slave_capability\n", __func__); if (pos == 0) { printk(BIOS_ERR, "%s Hypertransport link capability " "not found", dev_path(dev)); @@ -572,7 +580,9 @@ unsigned int hypertransport_scan_chain(struct bus *bus, unsigned min_devfn, max_unitid = next_unitid; /* Setup the hypetransport link. */ + printk(BIOS_INFO, "%s: before ht_setup_link\n", __func__); bus->reset_needed |= ht_setup_link(&prev, dev, pos); + printk(BIOS_INFO, "%s: after ht_setup_link\n", __func__); printk(BIOS_DEBUG, "%s [%04x/%04x] %s next_unitid: %04x\n", dev_path(dev), dev->vendor, dev->device, @@ -582,6 +592,7 @@ unsigned int hypertransport_scan_chain(struct bus *bus, unsigned min_devfn, end_of_chain: + printk(BIOS_INFO, "%s: end_of_chain. w00t!\n", __func__); #if OPT_HT_LINK == 1 if (bus->reset_needed) printk(BIOS_INFO, "HyperT reset needed\n"); @@ -642,8 +653,10 @@ end_of_chain: last_func->sibling = old_devices; } + printk(BIOS_INFO, "%s: before pci_scan_bus!\n", __func__); /* Now that nothing is overlapping it is safe to scan the children. */ max = pci_scan_bus(bus, 0x00, ((next_unitid - 1) << 3) | 7, max); + printk(BIOS_INFO, "%s: after pci_scan_bus!\n", __func__); return max; }