From: Michael Ellerman <michael@ellerman.id.au>
To: Lixin Yao <Lixin.Yao@HSTX.com>
Cc: linuxppc-dev@lists.ozlabs.org
Subject: Re: Device Tree Corrupted after unflatten_device_tree()
Date: Wed, 21 Oct 2009 10:01:31 +1100 [thread overview]
Message-ID: <1256079691.8902.3.camel@concordia> (raw)
In-Reply-To: <03D77CA4AC7F4D48A6AB5DA3F1001B3FB5BB88@exchtxus2.HSTX.global.vpn>
[-- Attachment #1: Type: text/plain, Size: 986 bytes --]
On Tue, 2009-10-20 at 09:10 -0700, Lixin Yao wrote:
> 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 */
_In what way_ is it corrupted? Bad tree structure? Bogus node/property
values, names etc.
cheers
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2009-10-20 23:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-20 16:10 Device Tree Corrupted after unflatten_device_tree() Lixin Yao
2009-10-20 23:01 ` Michael Ellerman [this message]
2009-10-21 17:43 ` Lixin Yao
2009-10-21 22:10 ` David Gibson
2009-10-22 18:14 ` Lixin Yao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1256079691.8902.3.camel@concordia \
--to=michael@ellerman.id.au \
--cc=Lixin.Yao@HSTX.com \
--cc=linuxppc-dev@lists.ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).