LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Device Tree Corrupted after unflatten_device_tree()
@ 2009-10-20 16:10 Lixin Yao
  2009-10-20 23:01 ` Michael Ellerman
  0 siblings, 1 reply; 5+ messages in thread
From: Lixin Yao @ 2009-10-20 16:10 UTC (permalink / raw)
  To: linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 848 bytes --]

I use a board with MPC866T and 2.6.28 Linux Kernel.  Occasionally, the
unflattened device is corrupted after "unflatten_device_tree()" which
causes crash of kernel when device tree is traversed later on.

I looked at the fixes in lib/lmb.c, arch/powerpc/mm, arch/powerpc/kernel
etc since 2.6.28 to 2.6.32-r4 (the most recent version) and could not
fix my problem.

I have had a hard time trying to determine the cause. 

arch/powerpc/kernel/setup_32.c
void __init setup_arch(char **cmdline_p)
{
	*cmdline_p = cmd_line;

	/* so udelay does something sensible, assume <= 1000 bogomips */
	loops_per_jiffy = 500000000 / HZ;

	unflatten_device_tree();
	/* UNFLATTENED DEVICE TREE IS CORRUPTED SOMETIMES HERE */
	check_for_initrd();

   	......
}

Any ideas?

Thanks.

Lixin Yao
Harris Startex Networks Inc.
RTP, NC, USA

[-- Attachment #2: Type: text/html, Size: 4135 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-10-22 18:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-20 16:10 Device Tree Corrupted after unflatten_device_tree() Lixin Yao
2009-10-20 23:01 ` Michael Ellerman
2009-10-21 17:43   ` Lixin Yao
2009-10-21 22:10     ` David Gibson
2009-10-22 18:14       ` Lixin Yao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox