Thread (3 messages) 3 messages, 3 authors, 2016-05-16

Re: [PATCH v7 45/50] drivers/of: Avoid recursively calling unflatten_dt_node()

From: Geert Uytterhoeven <hidden>
Date: 2016-05-13 07:16:47
Also in: linux-pci, linuxppc-dev

Possibly related (same subject, not in this thread)

On Wed, Nov 4, 2015 at 5:07 PM, Rob Herring [off-list ref] wrote:
On Wed, Nov 4, 2015 at 7:12 AM, Gavin Shan [off-list ref] wrote:
quoted
In current implementation, unflatten_dt_node() is called recursively
to unflatten device nodes in FDT blob. It's stress to limited stack
capacity.
Did you actually hit a problem?

Now we have a max depth of 64. Seems like that should be plenty... Any
idea how this compares to when we run out of stack space?
FWIW, on arm64:

drivers/of/fdt.c:443:1: warning: the frame size of 1136 bytes is
larger than 1024 bytes [-Wframe-larger-than=]

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help