Re: Sunfire V880 and 480R 2.6.27.x startup hangs

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

 



From: Hermann Lauer <Hermann.Lauer@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 22 Jan 2009 14:29:34 +0100

> Compiled 2.6.27.12 today without the CON_BOOT flag and booted with the
> options above. The hang seems to be in of_bus_driver_init, see
> console output below.

I wonder what's getting tripped up in there :-)

Please add this patch and get the new console output, thanks!

diff --git a/arch/sparc64/kernel/of_device.c b/arch/sparc64/kernel/of_device.c
index 100ebd5..fefd415 100644
--- a/arch/sparc64/kernel/of_device.c
+++ b/arch/sparc64/kernel/of_device.c
@@ -818,10 +818,16 @@ static struct of_device * __init scan_one_device(struct device_node *dp,
 static void __init scan_tree(struct device_node *dp, struct device *parent)
 {
 	while (dp) {
-		struct of_device *op = scan_one_device(dp, parent);
-
-		if (op)
+		struct of_device *op;
+
+		printk(KERN_ERR "scan_tree: Scanning device %p:[%s]\n",
+		       dp, (dp ? dp->full_name : "<NULL>"));
+		op = scan_one_device(dp, parent);
+		if (op) {
+			printk(KERN_ERR "scan_tree: Recursing to child %p\n",
+			       dp->child);
 			scan_tree(dp->child, &op->dev);
+		}
 
 		dp = dp->sibling;
 	}
@@ -832,10 +838,12 @@ static void __init scan_of_devices(void)
 	struct device_node *root = of_find_node_by_path("/");
 	struct of_device *parent;
 
+	printk(KERN_ERR "Building root from %p\n", root);
 	parent = scan_one_device(root, NULL);
 	if (!parent)
 		return;
 
+	printk(KERN_ERR "Scanning tree...\n");
 	scan_tree(root->child, &parent->dev);
 }
 
@@ -843,18 +851,26 @@ static int __init of_bus_driver_init(void)
 {
 	int err;
 
+	printk(KERN_ERR "Setting up of bus\n");
 	err = of_bus_type_init(&of_platform_bus_type, "of");
 #ifdef CONFIG_PCI
-	if (!err)
+	if (!err) {
+		printk(KERN_ERR "Setting up ebus bus\n");
 		err = of_bus_type_init(&ebus_bus_type, "ebus");
+	}
 #endif
 #ifdef CONFIG_SBUS
-	if (!err)
+	if (!err) {
+		printk(KERN_ERR "Setting up sbus bus\n");
 		err = of_bus_type_init(&sbus_bus_type, "sbus");
+	}
 #endif
 
-	if (!err)
+	if (!err) {
+		printk(KERN_ERR "scan_of_devices()\n");
 		scan_of_devices();
+		printk(KERN_ERR "Done with scan_of_devices()\n");
+	}
 
 	return err;
 }
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux