Received: by 10.223.148.5 with SMTP id 5csp6481571wrq; Wed, 17 Jan 2018 14:25:58 -0800 (PST) X-Google-Smtp-Source: ACJfBosaPgBglit0JpImOg5lmPx8BbWDZ7517OfiA2Vt2DrbP5JKgz1JEgkR9moq3i+17UFrvrHK X-Received: by 10.84.234.137 with SMTP id n9mr12867961plk.212.1516227958402; Wed, 17 Jan 2018 14:25:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516227958; cv=none; d=google.com; s=arc-20160816; b=T+KiTfq1w+qQ+0FSrCDvER4Wd0ZV1GgJ+/HTkq6XFABXHePC+4a7hK5TlCeJ+6qdW2 gZpogVo8p2nS0T1/f8PpZvoilaWwaVfGNDjIUcfbIyVcBfmh8FgYSX9HLwkykOq/aHNY 98QbJ0ptjIrIgp7llln6Wf4gX8Ek5GjHqwNTg+6DRUCUPWOJ2lhr4qBTSaB0MAFbn1y0 MbhQM+KSYeW/VA1cg9ZxxO1XtceLOp2bsiFHO/OTJXyZuybwAPG6qel+5nWsvM23agUR kslyJC2vmxkeUzfDiDVySFk3HiRkmPCBdWGYsi0qKOOIu3MWckITWVXbfB2wbJo7w51J yyHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=PjQmpoL4LcnxXx4VdXrwOEUjzy3XazCV4rZU/XP3kzA=; b=LJ21WuAhkWfNZV4aruuzVuOjrit6nGrKSMWsuvMCqloAXjvZykWoXKyjLtZr3Wv1Ie 9t1isX2izzMP3xx22G2hKXiH96dow7j4cRb7SDbfALcRDQzFB66A+FRTVOBToYrVZptU K9oC9bxg3ITkPikktbSM6KrxOoG6iwcGKpIBC3rF6plhrWaU5maUFVloJZG+MJxB1Lf7 f1YVtwriNR2+SNTSXbZuVPZW7SqXc+qSUNzM74PeBnRnCV1g6a/2U4ATMaVEP9/P3pc9 ScVV4JFnnV7hq+dI3AU6kVgqfT8/MFpfLlEuguUgdMbuQhlTG4g7U87zqTv/koYpHJzm 4T/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pMemN6Fa; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si5388072plz.396.2018.01.17.14.25.44; Wed, 17 Jan 2018 14:25:58 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pMemN6Fa; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932081AbeAQWXf (ORCPT + 99 others); Wed, 17 Jan 2018 17:23:35 -0500 Received: from mail-lf0-f67.google.com ([209.85.215.67]:40438 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754009AbeAQWXc (ORCPT ); Wed, 17 Jan 2018 17:23:32 -0500 Received: by mail-lf0-f67.google.com with SMTP id h92so13662439lfi.7 for ; Wed, 17 Jan 2018 14:23:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=PjQmpoL4LcnxXx4VdXrwOEUjzy3XazCV4rZU/XP3kzA=; b=pMemN6FasuaBJAjlm8U1LxdBW8oFGCVdLjAdtsce/YF6liUsnY2VqaGDaWAh5KMF25 N3VmuREELKpStd9aOrNV2LB1lz4TYwCH1n8ny3F/j2kp6Xd764RE/JCB4iqw0Nl+bRP6 fDncGCqdcEg33RbsDkrMNCxMF4TrtQiGTvrPFM0BC2pryZmsVal/nN4BFhYolW9K6Ye6 woxj2Vdw0RKPuIDFE9qOLasYj7EvvMOo2FBk+Foxj9KLEZ4FXiZf0YPcUa056g5pgCii CTLjgD4ostLIwV2DD5UfLQ5KUysG0Xhg7BbMFF/OhFVEQxjc2RLNQbxX3hCqSxLIUdXu AbKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=PjQmpoL4LcnxXx4VdXrwOEUjzy3XazCV4rZU/XP3kzA=; b=uYsqbUq0nAInEXnKhrDkmCg7RIMsHrV2edFgJ22nmGb5/2oIUjUhGmdhyJyOggjTZY P6Ok+MtdGzQpYXhvHWe01KUx7qRfdqYpXp77kyXr9udhWmcpGQefJzxQqG1+uEA/s48t x7OXBTCt9zB7jyZMn72J3G+7Yot9Aanab4/M50NbI4IlDKdhH2EKqEGt2rSUekT4WHEC Wf99iYRUmk8phRJg1YsRnDhLuJva75E84AheRUdUgneyzPGMnj6M/elSWxUvW5v0q7G4 WVVBl1Nig7eL+UojzagRl3t+8zmDN/5S40L8BFnubnSOv0W0iHHP4oMOGmNRFGo3sT1g hmTQ== X-Gm-Message-State: AKGB3mK1KOuMlZKu/UWJGJsluhVntVYAP7U4+nqel/Vb0n18VOT0lhng XCKH5qfOjMJiOpYcZ9+HXPI= X-Received: by 10.46.69.84 with SMTP id s81mr28107331lja.96.1516227811256; Wed, 17 Jan 2018 14:23:31 -0800 (PST) Received: from linux.local ([95.79.164.146]) by smtp.gmail.com with ESMTPSA id l203sm953867lfb.59.2018.01.17.14.23.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 Jan 2018 14:23:30 -0800 (PST) From: Serge Semin To: ralf@linux-mips.org, miodrag.dinic@mips.com, jhogan@kernel.org, goran.ferenc@mips.com, david.daney@cavium.com, paul.gortmaker@windriver.com, paul.burton@mips.com, alex.belits@cavium.com, Steven.Hill@cavium.com Cc: alexander.sverdlin@nokia.com, matt.redfearn@mips.com, kumba@gentoo.org, marcin.nowakowski@mips.com, James.hogan@mips.com, Peter.Wotton@mips.com, Sergey.Semin@t-platforms.ru, linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, Serge Semin Subject: [PATCH 09/14] MIPS: memblock: Allow memblock regions resize Date: Thu, 18 Jan 2018 01:23:07 +0300 Message-Id: <20180117222312.14763-10-fancer.lancer@gmail.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180117222312.14763-1-fancer.lancer@gmail.com> References: <20180117222312.14763-1-fancer.lancer@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 e0ca0d2bc..82c6b77f6 100644 --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c @@ -869,6 +869,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) -- 2.12.0