From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DEDF6C433EF for ; Sat, 20 Nov 2021 06:02:15 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4Hx2xK6RS2z3c6j for ; Sat, 20 Nov 2021 17:02:13 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=linux.intel.com (client-ip=134.134.136.24; helo=mga09.intel.com; envelope-from=andriy.shevchenko@linux.intel.com; receiver=) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4HwXFy62gbz2yPZ for ; Fri, 19 Nov 2021 20:59:49 +1100 (AEDT) X-IronPort-AV: E=McAfee;i="6200,9189,10172"; a="234221220" X-IronPort-AV: E=Sophos;i="5.87,247,1631602800"; d="scan'208";a="234221220" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Nov 2021 01:58:47 -0800 X-IronPort-AV: E=Sophos;i="5.87,247,1631602800"; d="scan'208";a="568845492" Received: from smile.fi.intel.com ([10.237.72.184]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Nov 2021 01:58:31 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1mo0cr-008Uqj-60; Fri, 19 Nov 2021 11:56:09 +0200 Date: Fri, 19 Nov 2021 11:56:08 +0200 From: Andy Shevchenko To: Calvin Zhang Subject: Re: [PATCH 2/2] of: reserved_mem: Remove reserved regions count restriction Message-ID: References: <20211119075844.2902592-1-calvinzhang.cool@gmail.com> <20211119075844.2902592-3-calvinzhang.cool@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211119075844.2902592-3-calvinzhang.cool@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Mailman-Approved-At: Sat, 20 Nov 2021 17:01:52 +1100 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Kefeng Wang , Rich Felker , Jinyang He , David Hildenbrand , Lee Jones , linux-kernel@vger.kernel.org, openrisc@lists.librecores.org, Max Filippov , Anup Patel , Guo Ren , Guo Ren , linux-csky@vger.kernel.org, Nick Kossifidis , Vladimir Isaev , Tiezhu Yang , Vincent Chen , Will Deacon , Markus Elfring , Vitaly Wool , Jonas Bonn , Rob Herring , devicetree@vger.kernel.org, linux-snps-arc@lists.infradead.org, Yoshinori Sato , Palmer Dabbelt , linux-sh@vger.kernel.org, "Rafael J. Wysocki" , Christophe JAILLET , Russell King , Ley Foon Tan , Geert Uytterhoeven , "Aneesh Kumar K.V" , Catalin Marinas , Ganesh Goudar , David Brazdil , linux-riscv@lists.infradead.org, Guenter Roeck , uclinux-h8-devel@lists.sourceforge.jp, linux-xtensa@linux-xtensa.org, Albert Ou , Arnd Bergmann , Anshuman Khandual , Vineet Gupta , Wolfram Sang , Andreas Oetken , Stefan Kristiansson , "Russell King \(Oracle\)" , Rob Herring , Alexander Sverdlin , Greentime Hu , Paul Walmsley , Stafford Horne , linux-arm-kernel@lists.infradead.org, Andrey Konovalov , Christophe Leroy , Chris Zankel , Thomas Bogendoerfer , Alexandre Ghiti , Nick Hu , Atish Patra , linux-mips@vger.kernel.org, Randy Dunlap , Frank Rowand , Serge Semin , Dinh Nguyen , Zhang Yunkai , Palmer Dabbelt , Souptick Joarder , Marc Zyngier , Mauri Sandberg , Paul Mackerras , Andrew Morton , linuxppc-dev@lists.ozlabs.org, Mike Rapoport Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" 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