From: Thierry Reding <treding@nvidia.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Revert "fdt: Fix fdtdec_get_addr_size() for 64-bit"
Date: Tue, 4 Aug 2015 17:27:56 +0200 [thread overview]
Message-ID: <20150804152755.GE3812@ulmo.nvidia.com> (raw)
In-Reply-To: <1438560830-31221-1-git-send-email-sjg@chromium.org>
On Sun, Aug 02, 2015 at 06:13:50PM -0600, Simon Glass wrote:
> This reverts commit 5b34436035fc862b5e8d0d2c3eab74ba36f1a7f4.
>
> This function has a few problems. It calls fdt_parent_offset() which as
> mentioned in code review is very slow.
>
> https://patchwork.ozlabs.org/patch/499482/
> https://patchwork.ozlabs.org/patch/452604/
>
> It also happens to break SPI flash on Minnowboard max which is how I noticed
> that this was applied. I can send a patch to tidy that up, but in any case
> I think we should consider a revert until the function is better implemented.
I suspect that what breaks is when you try to parse the "memory-map"
property from this (taken from arch/x86/dts/minnowmax.dts):
spi {
#address-cells = <1>;
#size-cells = <0>;
compatible = "intel,ich-spi";
spi-flash at 0 {
reg = <0>;
compatible = "stmicro,n25q064a", "spi-flash";
memory-map = <0xff800000 0x00800000>;
};
};
That's obviously not going to work because as Stephen and I have pointed
out it specifies an address range in a different address space than that
of the SPI flash. The spi parent node defines #address-cells and
#size-cells, both of which define the layout of the "reg" property (and
some others like "ranges"). I don't see a way around this other than to
read two individual cells from the "memory-map" property. I don't know
of a concept in DT that would allow you to translate from memory-map in
the spi-flash at 0 node to the address space in the parent node of the spi
node (the root node).
Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150804/7d1f3bf2/attachment.sig>
prev parent reply other threads:[~2015-08-04 15:27 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-03 0:13 [U-Boot] [PATCH] Revert "fdt: Fix fdtdec_get_addr_size() for 64-bit" Simon Glass
2015-08-03 15:12 ` Stephen Warren
2015-08-03 15:52 ` Simon Glass
2015-08-03 17:25 ` Tom Rini
2015-08-03 17:27 ` Simon Glass
2015-08-03 18:20 ` Stephen Warren
2015-08-05 4:08 ` Simon Glass
2015-08-05 18:22 ` Stephen Warren
2015-08-05 23:45 ` Simon Glass
2015-08-06 7:09 ` Michal Suchanek
2015-08-06 18:43 ` Stephen Warren
2015-08-06 19:03 ` Stephen Warren
2015-08-09 15:08 ` Simon Glass
2015-08-14 8:10 ` Bin Meng
2015-08-14 8:32 ` Thierry Reding
2015-08-14 8:44 ` Bin Meng
2015-08-14 14:06 ` Thierry Reding
2015-08-14 14:29 ` Bin Meng
2015-08-14 9:01 ` Michal Suchanek
2015-08-14 9:08 ` Bin Meng
2015-08-14 10:04 ` Simon Glass
2015-09-02 16:52 ` Tom Warren
2015-09-02 16:58 ` Simon Glass
2015-09-02 20:04 ` Stephen Warren
2015-09-02 20:39 ` Tom Warren
2015-09-02 20:54 ` Stephen Warren
2015-09-02 23:43 ` Stephen Warren
2015-09-03 2:02 ` Tom Warren
2015-09-16 21:46 ` Tom Warren
2015-09-17 1:10 ` Simon Glass
2015-09-17 1:58 ` Tom Warren
2015-08-14 16:50 ` Simon Glass
2015-08-03 15:40 ` Bin Meng
2015-08-04 15:27 ` Thierry Reding [this message]
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=20150804152755.GE3812@ulmo.nvidia.com \
--to=treding@nvidia.com \
--cc=u-boot@lists.denx.de \
/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.