Received: by 10.223.185.116 with SMTP id b49csp3673521wrg; Tue, 13 Feb 2018 06:05:39 -0800 (PST) X-Google-Smtp-Source: AH8x224piRrdmRRP2iIkKHK8K3GweUWRl9GDzukUSLjy06nsNVxVwRlBJfrHmV+8WWDbh+vU+S5l X-Received: by 10.98.253.5 with SMTP id p5mr1381752pfh.132.1518530739270; Tue, 13 Feb 2018 06:05:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518530739; cv=none; d=google.com; s=arc-20160816; b=vkL2KDjTxSB2xBjI+5nInG1ctHL/8dGYiDYbBLi+Vj6eotp6mldO1OWaADRKl/LloB zHHKbD4c14fCuaKqcdYOBJnR7Z3h48+Mi0n1D8dfz86UBGu5aNJHnhd4oU9HVFCktWU9 m1CbjuXCZwfn3gGsTR97p/l1PkMxuELvOARCu+5FBtgPrNjYCDtSeGNlwzoKvXD3qYrq PCxRfaCCODi6UbTldGAd00mYHzM7Tyeu1U7lsSxRgOjPKHbKcnXxo/5wl7vtGuZAmz96 A3KXg7dPX2fmfM4nGqfFwFQ+2TMTSjFfOFgkMjXcvJ7AUXlzVcURpFYds7GPQD/zxzTh jJzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=DaIr5eOdvKjQB17A9angqdROxUoP04MF5Mym+OgdFC8=; b=n6lGUc7EhPVh3iMcOdxa+kNq953qsyPaBIkqF9i3db1jUNb1N1Fy4AVvItKGMM2407 vRUZp4MIQbj6QDfb9fTYHm2FHhOZHE4LvoBY8V1CdIlMbjJ0zpDemea5MD+NGo3yMJAP RdqwAKl2/IXaXAXwpd+4Jj6BQJO8CLGwHCYwjl+LeuFZIeNaCwcLuC8ZNTS+FaOsbNim Kaiux+WlfWjH68l59pxIL4/XRiPYZVsoqMkPrCK1ZRelnm4xbCGSDYpRz7cvlF4BmNbr QuhnSxIGNJKDD9dlDXyCkPHsSLPI82BfO0W203UnYOyKpkloPdXx+wlT1RWCfDfCz1e3 5Hlw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j3-v6si5430333plk.506.2018.02.13.06.05.18; Tue, 13 Feb 2018 06:05:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965074AbeBMODY (ORCPT + 99 others); Tue, 13 Feb 2018 09:03:24 -0500 Received: from 9pmail.ess.barracuda.com ([64.235.154.211]:43853 "EHLO 9pmail.ess.barracuda.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964859AbeBMODX (ORCPT ); Tue, 13 Feb 2018 09:03:23 -0500 Received: from MIPSMAIL01.mipstec.com (mailrelay.mips.com [12.201.5.28]) by mx1401.ess.rzc.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NO); Tue, 13 Feb 2018 14:01:05 +0000 Received: from [10.150.130.83] (10.150.130.83) by MIPSMAIL01.mipstec.com (10.20.43.31) with Microsoft SMTP Server (TLS) id 14.3.361.1; Tue, 13 Feb 2018 05:55:34 -0800 Subject: Re: [PATCH v2 10/15] MIPS: memblock: Allow memblock regions resize To: Serge Semin , , , , , , , , , CC: , , , , , , , References: <20180117222312.14763-1-fancer.lancer@gmail.com> <20180202035458.30456-1-fancer.lancer@gmail.com> <20180202035458.30456-11-fancer.lancer@gmail.com> From: Matt Redfearn Message-ID: <8a5a46fd-c103-ea78-88f9-35b1dcf6d181@mips.com> Date: Tue, 13 Feb 2018 13:55:29 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20180202035458.30456-11-fancer.lancer@gmail.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.150.130.83] X-BESS-ID: 1518530462-321457-26451-26452-9 X-BESS-VER: 2018.1-r1801291959 X-BESS-Apparent-Source-IP: 12.201.5.28 X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.189978 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS59374 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Serge, On 02/02/18 03:54, Serge Semin wrote: > When all the main reservations are done the memblock regions > can be dynamically resized. Additionally it would be useful to have > memblock regions dumped on debug at this point. > > Signed-off-by: Serge Semin Looks good to me. Reviewed-by: Matt Redfearn Thanks, Matt > --- > arch/mips/kernel/setup.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c > index 158a52c17e29..531a1471a2a4 100644 > --- a/arch/mips/kernel/setup.c > +++ b/arch/mips/kernel/setup.c > @@ -846,6 +846,10 @@ static void __init arch_mem_init(char **cmdline_p) > plat_swiotlb_setup(); > > dma_contiguous_reserve(PFN_PHYS(max_low_pfn)); > + > + memblock_allow_resize(); > + > + memblock_dump_all(); > } > > static void __init resource_init(void) >