public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Andy Shevchenko <andriy.shevchenko@linux•intel.com>
To: Calvin Zhang <calvinzhang.cool@gmail•com>
Cc: Mark Rutland <mark.rutland@arm•com>,
	Kefeng Wang <wangkefeng.wang@huawei•com>,
	Rich Felker <dalias@libc•org>, Jinyang He <hejinyang@loongson•cn>,
	David Hildenbrand <david@redhat•com>,
	Lee Jones <lee.jones@linaro•org>,
	linux-kernel@vger•kernel.org, openrisc@lists•librecores.org,
	Max Filippov <jcmvbkbc@gmail•com>,
	Anup Patel <anup.patel@wdc•com>,
	Guo Ren <guoren@linux•alibaba.com>, Guo Ren <guoren@kernel•org>,
	linux-csky@vger•kernel.org, Nick Kossifidis <mick@ics•forth.gr>,
	Vladimir Isaev <isaev@synopsys•com>,
	Tiezhu Yang <yangtiezhu@loongson•cn>,
	Vincent Chen <deanbo422@gmail•com>, Will Deacon <will@kernel•org>,
	Markus Elfring <elfring@users•sourceforge.net>,
	Vitaly Wool <vitaly.wool@konsulko•com>,
	Jonas Bonn <jonas@southpole•se>, Rob Herring <robh@kernel•org>,
	devicetree@vger•kernel.org, linux-snps-arc@lists•infradead.org,
	Yoshinori Sato <ysato@users•sourceforge.jp>,
	Palmer Dabbelt <palmerdabbelt@google•com>,
	linux-sh@vger•kernel.org,
	"Rafael J. Wysocki" <rafael.j.wysocki@intel•com>,
	Christophe JAILLET <christophe.jaillet@wanadoo•fr>,
	Russell King <linux@armlinux•org.uk>,
	Ley Foon Tan <ley.foon.tan@intel•com>,
	Geert Uytterhoeven <geert@linux-m68k•org>,
	"Aneesh Kumar K.V" <aneesh.kumar@linux•ibm.com>,
	Catalin Marinas <catalin.marinas@arm•com>,
	Ganesh Goudar <ganeshgr@linux•ibm.com>,
	David Brazdil <dbrazdil@google•com>,
	linux-riscv@lists•infradead.org,
	Guenter Roeck <linux@roeck-us•net>,
	uclinux-h8-devel@lists•sourceforge.jp,
	linux-xtensa@linux-xtensa•org, Albert Ou <aou@eecs•berkeley.edu>,
	Arnd Bergmann <arnd@arndb•de>,
	Anshuman Khandual <anshuman.khandual@arm•com>,
	Vineet Gupta <vgupta@kernel•org>,
	Wolfram Sang <wsa+renesas@sang-engineering•com>,
	Andreas Oetken <andreas.oetken@siemens•com>,
	Stefan Kristiansson <stefan.kristiansson@saunalahti•fi>,
	"Russell King \(Oracle\)" <rmk+kernel@armlinux•org.uk>,
	Rob Herring <robh+dt@kernel•org>,
	Alexander Sverdlin <alexander.sverdlin@nokia•com>,
	Greentime Hu <green.hu@gmail•com>,
	Paul Walmsley <paul.walmsley@sifive•com>,
	Stafford Horne <shorne@gmail•com>,
	linux-arm-kernel@lists•infradead.org,
	Andrey Konovalov <andreyknvl@gmail•com>,
	Christophe Leroy <christophe.leroy@c-s•fr>,
	Chris Zankel <chris@zankel•net>,
	Thomas Bogendoerfer <tsbogend@alpha•franken.de>,
	Alexandre Ghiti <alex@ghiti•fr>, Nick Hu <nickhu@andestech•com>,
	Atish Patra <atish.patra@wdc•com>,
	linux-mips@vger•kernel.org, Randy Dunlap <rdunlap@infradead•org>,
	Frank Rowand <frowand.list@gmail•com>,
	Serge Semin <Sergey.Semin@baikalelectronics•ru>,
	Dinh Nguyen <dinguyen@kernel•org>,
	Zhang Yunkai <zhang.yunkai@zte•com.cn>,
	Palmer Dabbelt <palmer@dabbelt•com>,
	Souptick Joarder <jrdr.linux@gmail•com>,
	Marc Zyngier <maz@kernel•org>,
	Mauri Sandberg <sandberg@mailfence•com>,
	Paul Mackerras <paulus@samba•org>,
	Andrew Morton <akpm@linux-foundation•org>,
	linuxppc-dev@lists•ozlabs.org, Mike Rapoport <rppt@kernel•org>
Subject: Re: [PATCH 2/2] of: reserved_mem: Remove reserved regions count restriction
Date: Fri, 19 Nov 2021 11:56:08 +0200	[thread overview]
Message-ID: <YZd0uEWNH6Def3+8@smile.fi.intel.com> (raw)
In-Reply-To: <20211119075844.2902592-3-calvinzhang.cool@gmail.com>

On Fri, Nov 19, 2021 at 03:58:19PM +0800, Calvin Zhang wrote:
> Change to allocate reserved_mems dynamically. Static reserved regions
> must be reserved before any memblock allocations. The reserved_mems
> array couldn't be allocated until memblock and linear mapping are ready.
> 
> So move the allocation and initialization of records and reserved memory
> from early_init_fdt_scan_reserved_mem() to of_reserved_mem_init().

>  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 +

Isn't x86 missed? Is it on purpose?
Would be nice to have this in the commit message or fixed accordingly.

-- 
With Best Regards,
Andy Shevchenko



  reply	other threads:[~2021-11-20  6:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2021-11-19 10:27     ` Calvin Zhang
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

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=YZd0uEWNH6Def3+8@smile.fi.intel.com \
    --to=andriy.shevchenko@linux$(echo .)intel.com \
    --cc=Sergey.Semin@baikalelectronics$(echo .)ru \
    --cc=akpm@linux-foundation$(echo .)org \
    --cc=alex@ghiti$(echo .)fr \
    --cc=alexander.sverdlin@nokia$(echo .)com \
    --cc=andreas.oetken@siemens$(echo .)com \
    --cc=andreyknvl@gmail$(echo .)com \
    --cc=aneesh.kumar@linux$(echo .)ibm.com \
    --cc=anshuman.khandual@arm$(echo .)com \
    --cc=anup.patel@wdc$(echo .)com \
    --cc=aou@eecs$(echo .)berkeley.edu \
    --cc=arnd@arndb$(echo .)de \
    --cc=atish.patra@wdc$(echo .)com \
    --cc=calvinzhang.cool@gmail$(echo .)com \
    --cc=catalin.marinas@arm$(echo .)com \
    --cc=chris@zankel$(echo .)net \
    --cc=christophe.jaillet@wanadoo$(echo .)fr \
    --cc=christophe.leroy@c-s$(echo .)fr \
    --cc=dalias@libc$(echo .)org \
    --cc=david@redhat$(echo .)com \
    --cc=dbrazdil@google$(echo .)com \
    --cc=deanbo422@gmail$(echo .)com \
    --cc=devicetree@vger$(echo .)kernel.org \
    --cc=dinguyen@kernel$(echo .)org \
    --cc=elfring@users$(echo .)sourceforge.net \
    --cc=frowand.list@gmail$(echo .)com \
    --cc=ganeshgr@linux$(echo .)ibm.com \
    --cc=geert@linux-m68k$(echo .)org \
    --cc=green.hu@gmail$(echo .)com \
    --cc=guoren@kernel$(echo .)org \
    --cc=guoren@linux$(echo .)alibaba.com \
    --cc=hejinyang@loongson$(echo .)cn \
    --cc=isaev@synopsys$(echo .)com \
    --cc=jcmvbkbc@gmail$(echo .)com \
    --cc=jonas@southpole$(echo .)se \
    --cc=jrdr.linux@gmail$(echo .)com \
    --cc=lee.jones@linaro$(echo .)org \
    --cc=ley.foon.tan@intel$(echo .)com \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    --cc=linux-csky@vger$(echo .)kernel.org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-mips@vger$(echo .)kernel.org \
    --cc=linux-riscv@lists$(echo .)infradead.org \
    --cc=linux-sh@vger$(echo .)kernel.org \
    --cc=linux-snps-arc@lists$(echo .)infradead.org \
    --cc=linux-xtensa@linux-xtensa$(echo .)org \
    --cc=linux@armlinux$(echo .)org.uk \
    --cc=linux@roeck-us$(echo .)net \
    --cc=linuxppc-dev@lists$(echo .)ozlabs.org \
    --cc=mark.rutland@arm$(echo .)com \
    --cc=maz@kernel$(echo .)org \
    --cc=mick@ics$(echo .)forth.gr \
    --cc=nickhu@andestech$(echo .)com \
    --cc=openrisc@lists$(echo .)librecores.org \
    --cc=palmer@dabbelt$(echo .)com \
    --cc=palmerdabbelt@google$(echo .)com \
    --cc=paul.walmsley@sifive$(echo .)com \
    --cc=paulus@samba$(echo .)org \
    --cc=rafael.j.wysocki@intel$(echo .)com \
    --cc=rdunlap@infradead$(echo .)org \
    --cc=rmk+kernel@armlinux$(echo .)org.uk \
    --cc=robh+dt@kernel$(echo .)org \
    --cc=robh@kernel$(echo .)org \
    --cc=rppt@kernel$(echo .)org \
    --cc=sandberg@mailfence$(echo .)com \
    --cc=shorne@gmail$(echo .)com \
    --cc=stefan.kristiansson@saunalahti$(echo .)fi \
    --cc=tsbogend@alpha$(echo .)franken.de \
    --cc=uclinux-h8-devel@lists$(echo .)sourceforge.jp \
    --cc=vgupta@kernel$(echo .)org \
    --cc=vitaly.wool@konsulko$(echo .)com \
    --cc=wangkefeng.wang@huawei$(echo .)com \
    --cc=will@kernel$(echo .)org \
    --cc=wsa+renesas@sang-engineering$(echo .)com \
    --cc=yangtiezhu@loongson$(echo .)cn \
    --cc=ysato@users$(echo .)sourceforge.jp \
    --cc=zhang.yunkai@zte$(echo .)com.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox