devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] of: remove reserved regions count restriction
@ 2021-11-19  7:58 Calvin Zhang
  2021-11-19  7:58 ` [PATCH 1/2] of: Sort reserved_mem related code Calvin Zhang
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Calvin Zhang @ 2021-11-19  7:58 UTC (permalink / raw)
  To: Vineet Gupta, Russell King, Catalin Marinas, Will Deacon,
	Guo Ren, Yoshinori Sato, Thomas Bogendoerfer, Nick Hu,
	Greentime Hu, Vincent Chen, Dinh Nguyen, Jonas Bonn,
	Stefan Kristiansson, Stafford Horne, Michael Ellerman,
	Benjamin Herrenschmidt, Paul Mackerras, Paul Walmsley,
	Palmer Dabbelt, Albert Ou, Rich Felker, Chris Zankel,
	Max Filippov, Rob Herring, Frank Rowand, Mike Rapoport,
	Andrew Morton, David Hildenbrand, Arnd Bergmann, Kefeng Wang,
	Vladimir Isaev, Calvin Zhang, Russell King (Oracle),
	Kirill A. Shutemov, Guenter Roeck, Marc Zyngier, David Brazdil,
	Anshuman Khandual, Andrey Konovalov, Mark Rutland,
	Souptick Joarder, Jinyang He, Rafael J. Wysocki, Serge Semin,
	Tiezhu Yang, Geert Uytterhoeven, Randy Dunlap, Ley Foon Tan,
	Andreas Oetken, Christophe JAILLET, Christophe Leroy,
	Zhang Yunkai, Andy Shevchenko, Markus Elfring, Ganesh Goudar,
	Aneesh Kumar K.V, Atish Patra, Anup Patel, Nick Kossifidis,
	Alexandre Ghiti, Vitaly Wool
  Cc: Thierry Reding, Lee Jones, Guo Ren, Alexander Sverdlin,
	Greg Kroah-Hartman, Mauri Sandberg, Palmer Dabbelt,
	linux-snps-arc, linux-kernel, linux-arm-kernel, linux-csky,
	uclinux-h8-devel, linux-mips, openrisc, linuxppc-dev,
	linux-riscv, linux-sh, linux-xtensa, devicetree

The count of reserved regions in /reserved-memory was limited because
the struct reserved_mem array was defined statically. This series sorts
out reserved memory code and allocates that array from early allocator.

Note: reserved region with fixed location must be reserved before any
memory allocation. While struct reserved_mem array should be allocated
after allocator is activated. We make early_init_fdt_scan_reserved_mem()
do reservation only and add another call to initialize reserved memory.
So arch code have to change for it.

I'm only familiar with arm and arm64 architectures. Approvals from arch
maintainers are required. Thank you all.

Calvin Zhang (2):
  of: Sort reserved_mem related code
  of: reserved_mem: Remove reserved regions count restriction

 arch/arc/mm/init.c                 |   3 +
 arch/arm/kernel/setup.c            |   2 +
 arch/arm64/kernel/setup.c          |   3 +
 arch/csky/kernel/setup.c           |   3 +
 arch/h8300/kernel/setup.c          |   2 +
 arch/mips/kernel/setup.c           |   3 +
 arch/nds32/kernel/setup.c          |   3 +
 arch/nios2/kernel/setup.c          |   2 +
 arch/openrisc/kernel/setup.c       |   3 +
 arch/powerpc/kernel/setup-common.c |   3 +
 arch/riscv/kernel/setup.c          |   2 +
 arch/sh/kernel/setup.c             |   3 +
 arch/xtensa/kernel/setup.c         |   2 +
 drivers/of/fdt.c                   | 107 +---------------
 drivers/of/of_private.h            |  12 +-
 drivers/of/of_reserved_mem.c       | 189 ++++++++++++++++++++++++-----
 include/linux/of_reserved_mem.h    |   4 +
 17 files changed, 207 insertions(+), 139 deletions(-)

-- 
2.30.2


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

end of thread, other threads:[~2021-11-30 21:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-19  7:58 [PATCH 0/2] of: remove reserved regions count restriction Calvin Zhang
2021-11-19  7:58 ` [PATCH 1/2] of: Sort reserved_mem related code Calvin Zhang
2021-11-30  0:01   ` Rob Herring
2021-11-19  7:58 ` [PATCH 2/2] of: reserved_mem: Remove reserved regions count restriction Calvin Zhang
2021-11-19  9:56   ` Andy Shevchenko
2021-11-19 10:30     ` Calvin Zhang
2021-11-21  6:43 ` [PATCH 0/2] of: remove " Mike Rapoport
2021-11-21  9:01   ` Calvin Zhang
2021-11-30  0:08   ` Rob Herring
2021-11-30 21:07     ` Mike Rapoport

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