[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YZd8sc6E0bgNA9ag@debian>
Date: Fri, 19 Nov 2021 18:30:09 +0800
From: Calvin Zhang <calvinzhang.cool@...il.com>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Cc: Calvin Zhang <calvinzhang.cool@...il.com>,
Vineet Gupta <vgupta@...nel.org>,
Russell King <linux@...linux.org.uk>,
Catalin Marinas <catalin.marinas@....com>,
Will Deacon <will@...nel.org>, Guo Ren <guoren@...nel.org>,
Yoshinori Sato <ysato@...rs.sourceforge.jp>,
Thomas Bogendoerfer <tsbogend@...ha.franken.de>,
Nick Hu <nickhu@...estech.com>,
Greentime Hu <green.hu@...il.com>,
Vincent Chen <deanbo422@...il.com>,
Dinh Nguyen <dinguyen@...nel.org>,
Jonas Bonn <jonas@...thpole.se>,
Stefan Kristiansson <stefan.kristiansson@...nalahti.fi>,
Stafford Horne <shorne@...il.com>,
Michael Ellerman <mpe@...erman.id.au>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
Paul Mackerras <paulus@...ba.org>,
Paul Walmsley <paul.walmsley@...ive.com>,
Palmer Dabbelt <palmer@...belt.com>,
Albert Ou <aou@...s.berkeley.edu>,
Rich Felker <dalias@...c.org>, Chris Zankel <chris@...kel.net>,
Max Filippov <jcmvbkbc@...il.com>,
Rob Herring <robh+dt@...nel.org>,
Frank Rowand <frowand.list@...il.com>,
Mike Rapoport <rppt@...nel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
David Hildenbrand <david@...hat.com>,
Kefeng Wang <wangkefeng.wang@...wei.com>,
Vladimir Isaev <isaev@...opsys.com>,
Arnd Bergmann <arnd@...db.de>,
"Russell King (Oracle)" <rmk+kernel@...linux.org.uk>,
"Rafael J. Wysocki" <rafael.j.wysocki@...el.com>,
Guenter Roeck <linux@...ck-us.net>,
Marc Zyngier <maz@...nel.org>,
David Brazdil <dbrazdil@...gle.com>,
Mark Rutland <mark.rutland@....com>,
Andrey Konovalov <andreyknvl@...il.com>,
Anshuman Khandual <anshuman.khandual@....com>,
Souptick Joarder <jrdr.linux@...il.com>,
Jinyang He <hejinyang@...ngson.cn>,
Mauri Sandberg <sandberg@...lfence.com>,
Tiezhu Yang <yangtiezhu@...ngson.cn>,
Serge Semin <Sergey.Semin@...kalelectronics.ru>,
Alexander Sverdlin <alexander.sverdlin@...ia.com>,
Geert Uytterhoeven <geert@...ux-m68k.org>,
Randy Dunlap <rdunlap@...radead.org>,
Ley Foon Tan <ley.foon.tan@...el.com>,
Andreas Oetken <andreas.oetken@...mens.com>,
Christophe JAILLET <christophe.jaillet@...adoo.fr>,
Christophe Leroy <christophe.leroy@....fr>,
Ganesh Goudar <ganeshgr@...ux.ibm.com>,
Markus Elfring <elfring@...rs.sourceforge.net>,
"Aneesh Kumar K.V" <aneesh.kumar@...ux.ibm.com>,
Atish Patra <atish.patra@....com>,
Anup Patel <anup.patel@....com>,
Nick Kossifidis <mick@....forth.gr>,
Alexandre Ghiti <alex@...ti.fr>,
Vitaly Wool <vitaly.wool@...sulko.com>,
Wolfram Sang <wsa+renesas@...g-engineering.com>,
Lee Jones <lee.jones@...aro.org>,
Guo Ren <guoren@...ux.alibaba.com>,
Rob Herring <robh@...nel.org>,
Zhang Yunkai <zhang.yunkai@....com.cn>,
Palmer Dabbelt <palmerdabbelt@...gle.com>,
linux-snps-arc@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-csky@...r.kernel.org,
uclinux-h8-devel@...ts.sourceforge.jp, linux-mips@...r.kernel.org,
openrisc@...ts.librecores.org, linuxppc-dev@...ts.ozlabs.org,
linux-riscv@...ts.infradead.org, linux-sh@...r.kernel.org,
linux-xtensa@...ux-xtensa.org, devicetree@...r.kernel.org
Subject: Re: [PATCH 2/2] of: reserved_mem: Remove reserved regions count
restriction
On Fri, Nov 19, 2021 at 11:56:08AM +0200, Andy Shevchenko wrote:
>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.
AFAIK, x86 doesn't reserve memory through "/reserved-memory" node until now.
Actually, I got the arch list from callers of
early_init_fdt_scan_reserved_mem().
>
>--
>With Best Regards,
>Andy Shevchenko
>
>
>
Thanks,
Calvin
Powered by blists - more mailing lists