[PATCH] Re: 2.6.22-git hangs during boot on PowerBook G3 in 0.0 seconds

Rutger Nijlunsing rutger at nospam.com
Sun Jul 22 07:28:45 EST 2007


On Sat, Jul 21, 2007 at 09:21:43PM +0200, Rutger Nijlunsing wrote:
> Hi,
> 
> I'm trying to boot a new git kernel (2.6.22-g589f1e81), but it hangs
> very early (the timestamp is still on 0.000000).

After hours bisecting, I found the one-liner which results in the
hang. Now it takes someone else to find out _why_ it causes a hang :)


>From 6c13e1b55c1f87ed19f3c4623de3df881779edd7 Mon Sep 17 00:00:00 2001
From: Rutger Nijlunsing <git-commit at tux.tmfweb.nl>
Date: Sat, 21 Jul 2007 23:01:22 +0200
Subject: [PATCH] Revert "[POWERPC] Don't complain if size-cells == 0 in prom_parse()"
Status: RO
Content-Length: 866
Lines: 24

After hours of fun git bisecting, finally found the commit to revert
to make my PowerBook G3 Lombard boot again. This does not result in
the complains the reverted commit was revering to.

This reverts commit fd6e9d3945ee122eb513ada8b17296d243c1ce5e.
---
 arch/powerpc/kernel/prom_parse.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/kernel/prom_parse.c b/arch/powerpc/kernel/prom_parse.c
index 3786dcc..b5c96af 100644
--- a/arch/powerpc/kernel/prom_parse.c
+++ b/arch/powerpc/kernel/prom_parse.c
@@ -24,7 +24,7 @@
 /* Max address size we deal with */
 #define OF_MAX_ADDR_CELLS	4
 #define OF_CHECK_COUNTS(na, ns)	((na) > 0 && (na) <= OF_MAX_ADDR_CELLS && \
-			(ns) >= 0)
+			(ns) > 0)
 
 static struct of_bus *of_match_bus(struct device_node *np);
 static int __of_address_to_resource(struct device_node *dev,
-- 
1.5.2.2



-- 
Rutger Nijlunsing ---------------------------------- eludias ed dse.nl
never attribute to a conspiracy which can be explained by incompetence
----------------------------------------------------------------------



More information about the Linuxppc-dev mailing list