devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] MAX_RESERVED_REGIONS hard-coded value
@ 2020-01-06 18:05 Daniele Alessandrelli
  2020-01-07 21:13 ` Rob Herring
  0 siblings, 1 reply; 4+ messages in thread
From: Daniele Alessandrelli @ 2020-01-06 18:05 UTC (permalink / raw)
  To: Miles Chen, Rob Herring, Frank Rowand, devicetree

Hi,

I'm using a Device Tree with more then 32 reserved memory regions and
I'm seeing the following error while booting the Kernel:
[    0.000000] OF: reserved mem: not enough space all defined regions.

My understanding is that this is due to the hard-coded value of
MAX_RESERVED_REGIONS in drivers/of/of_reserved_mem.c

Googling around, I found this old discussion [1] in which Miles
suggests to add a CONFIG_MAX_OF_RESERVED_REGIONS kconfig option to
configure MAX_RESERVED_REGIONS. Rob replied to Miles' email saying
that he would prefer MAX_RESERVED_REGIONS to be dynamic. However,
later in the thread, it looks like making MAX_RESERVED_REGIONS dynamic
poses some implementation issues [2]. At that point the discussion
seemed to have stopped.

Is there any chance for the patch proposed by Miles to be reconsidered?

Regards,
Daniele

[1] https://lkml.org/lkml/2018/11/21/423
[2] https://lkml.org/lkml/2018/11/28/275

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

end of thread, other threads:[~2020-01-08 16:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-06 18:05 [RFC] MAX_RESERVED_REGIONS hard-coded value Daniele Alessandrelli
2020-01-07 21:13 ` Rob Herring
2020-01-08  6:45   ` Miles Chen
2020-01-08 16:15     ` Daniele Alessandrelli

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).