From: Ian Campbell <ian.campbell@citrix.com>
To: David Vrabel <david.vrabel@citrix.com>
Cc: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
"Chris (Christopher) Brand" <chris.brand@broadcom.com>
Subject: Re: Bug in devicetree_for_each_node() in xen/arch/arm/bootfdt.c ?
Date: Tue, 23 Jun 2015 11:10:09 +0100 [thread overview]
Message-ID: <1435054209.28264.196.camel@citrix.com> (raw)
In-Reply-To: <1435054080.28264.194.camel@citrix.com>
On Tue, 2015-06-23 at 11:08 +0100, Ian Campbell wrote:
> On Tue, 2015-06-23 at 10:57 +0100, Ian Campbell wrote:
> > On Tue, 2015-06-23 at 10:44 +0100, David Vrabel wrote:
> > > On 23/06/15 00:02, Chris (Christopher) Brand wrote:
> > > > I’ve been trying to figure out why Xen only reports 2GB on my ARM
> > > > platform that actually has 3GB, and I think I’ve found a bug, but I’m
> > > > not familiar enough with the Xen code to fix it.
> > > >
> > > > The relevant parts of my dts are:
> > > >
> > > > /dts-v1/;
> > > > / {
> > > >
> > > > model = "Broadcom STB (7445d0)";
> > > > compatible = "brcm,bcm7445d0", "brcm,brcmstb";
> > > > #address-cells = <0x2>;
> > > > #size-cells = <0x2>;
> > > > interrupt-parent = <0x1>;
> > > >
> > > > memory {
> > > > #address-cells = <0x1>;
> > > > #size-cells = <0x1>;
> > > > device_type = "memory";
> > > > reg = <0x0 0x0 0x0 0x40000000 0x0 0x40000000 0x0 0x40000000>;
> > >
> > > It's been a while since I've looked at device tree stuff but I think you
> > > need 64-bit values for this reg property because the parent node has
> > > #address-cells == 0x2 and #size-cells == 0x2.
> >
> > Yes, the prevailing sizes will be 0x2 here, since the 0x1 only apply to
> > _children_. However you still need to write the cells as separate 32-bit
> > entries, so the above encodes to memory regions from 0x0.0 to
> > 0x0.40000000 and 0x0.40000000 to 0x0.80000000 (using . to show where the
> > cell boundary lies).
And to further clarify an apparent misunderstanding in the first mail: A
reg property is a list of <address> <size> pairs, with each consuming
the appropriate #foo-cells (so 2 for both here, meaning each entry is 4
cells in total).
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2015-06-23 10:16 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-22 23:02 Bug in devicetree_for_each_node() in xen/arch/arm/bootfdt.c ? Chris (Christopher) Brand
2015-06-23 9:44 ` David Vrabel
2015-06-23 9:57 ` Ian Campbell
2015-06-23 10:08 ` Ian Campbell
2015-06-23 10:10 ` Ian Campbell [this message]
2015-06-23 10:01 ` Julien Grall
2015-06-23 10:08 ` Julien Grall
2015-06-23 10:27 ` Ian Campbell
2015-06-23 10:32 ` Julien Grall
2015-06-23 10:43 ` Ian Campbell
2015-06-24 18:57 ` Chris (Christopher) Brand
2015-07-15 23:35 ` Chris (Christopher) Brand
2015-07-16 8:50 ` [PATCH] xen: arm: bootfdt: Avoid reading off the front of *_cells array Ian Campbell
2015-07-16 12:06 ` Julien Grall
2015-07-16 12:45 ` Ian Campbell
2015-07-16 15:52 ` Ian Campbell
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=1435054209.28264.196.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=chris.brand@broadcom.com \
--cc=david.vrabel@citrix.com \
--cc=xen-devel@lists.xenproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.