Received: by 10.223.176.5 with SMTP id f5csp264879wra; Thu, 1 Feb 2018 19:59:56 -0800 (PST) X-Google-Smtp-Source: AH8x227ygX9Ypa4snGc1jPBBzxMccqpSGZY11YcHHXSs5LHh62wvAS4batEafnDXBwcs0IQFtKZC X-Received: by 2002:a17:902:8491:: with SMTP id c17-v6mr34043757plo.105.1517543996057; Thu, 01 Feb 2018 19:59:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517543996; cv=none; d=google.com; s=arc-20160816; b=wOfqDchmQRgKfny/XsXglVutIqCtKX/EdlFZTn0ADJ6wGUX28ZIjsAujd5Z3hGj0hs Z1DUID7sdbXQdHCrHFd4JOdS3sulRhvyFIyiG9KQNzW61Tsq4mTZSqXHRwdZAR9AiFbn ctiG7NSW75zkvzoQah/e5vviRHVcN2iyg0tKK0G4DNDQJiW9M8pI6mmNbUoRCHCf9gbI 7+lnjY/CGmvB0Tzcg+IDXD0gBrAK1sUx2llaYuB3LUp+UbEYDZsxD0V2HoeuXgpjWV+l SztBwOC4neSq7gaG8VDSeQ8EbEvawBWZBhXcebXPMBjIp1GxHfkkA32wokLaKusxrkHQ Iijg== 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=lU2w3nYehV0zv+Sv60qr/y3RIklPpAyO9yrdHEVrk08=; b=sUdwfWXh3nZE2m7t9bF+8xOLdsXScg/vqYcbub4VA5eME4pHIA+Q9yaX9dDQq8QWfq 49Q9Y/1gpYlBBIcQrzeq4vf3CclrYyQt0YAV5UeZrftasTtPpZjQV7hVajbYD7X/STcl +1pnN/oEZhBAAw6uQzsQQoVoz99OhUB2QgvLZONoJP3TWh8SZ5hE/LrVyT8yvRHNXhco BhAtNF/ReeLWBBUotE5L5AmQda4y33PWKwv7//aokhWlk1r/tzXA8A+7c55qMlj3KIG2 SU9OyapdLJBXdIGrd1qI1D8qu3aJRby6EqxQFMQrz6ejxAiNOyeViR7h28b41QmtxMh5 ctQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=j78FfItV; 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 u22si965761pfh.162.2018.02.01.19.59.41; Thu, 01 Feb 2018 19:59:56 -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=j78FfItV; 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 S1752019AbeBBD50 (ORCPT + 99 others); Thu, 1 Feb 2018 22:57:26 -0500 Received: from mail-lf0-f66.google.com ([209.85.215.66]:36978 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751824AbeBBDzS (ORCPT ); Thu, 1 Feb 2018 22:55:18 -0500 Received: by mail-lf0-f66.google.com with SMTP id 63so29432786lfv.4 for ; Thu, 01 Feb 2018 19:55:17 -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=lU2w3nYehV0zv+Sv60qr/y3RIklPpAyO9yrdHEVrk08=; b=j78FfItVk82PF6wCKUyoAeWgWBVUnGXs5BDvHjnhp8GjsdHnHDPBLMUDkki3y0scuU TXYWQWoKOAzdcHhpmapA2r9UHNANZfjaT1sOjFf9gev6EcL8D94VyRwOR/GFTJZpTbwo B+PR/EIXoWnxBTSeBzM/wi1Xmkl6+Ti6rnMrtfW47yVihHeHYY7bAgFWtynL7zBVaVRT LeonjPVBFei0Q5z3z5uJy7ySxzlwCe7msuUTmUxCoGewLf5bbwmU6DfA82kGa4F9ZOhT hsgSCnbBzELK+avym3CB2JvpUiWQFaE8ldUDN4YbhBOzOEat/9JWFI5V14GTEQNhr4sY fvQg== 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=lU2w3nYehV0zv+Sv60qr/y3RIklPpAyO9yrdHEVrk08=; b=W78tV5Hd9pq164HxD4JOj8NUGVJEtnilCz4hZ6T6kEiMimAOGJy+nOJ3od17UjzEyr yPj6hQGhxclolD1M1z9wzHEtfFReQXVllb3e4nzuRvuirCcJwsRjP2Oc/1ZvJ6p6wGPl qoVfUecPP/e46p8SLE/oXlhwreB4L9XePucJjE/lT68KGguREDl0rRtBjMA/I1ekR3Jg mwUf3TTorpizIXaLnQi0aSAaS5oXbQzNkiKm6K2TjMzNHshCV3P36NTVeO7A94UiGqI1 eRO+bhkAYXfLlDw5QCNUomleVox5Q97sbK9S92PIkYDUHbOIklYd8B+phQnwfcOQcsL4 PtBA== X-Gm-Message-State: AKwxytduFJZH7yCAxyDAOKhGbzjbPLaD7VPm6YKliRoMW22UWXQ0Nsq3 +ld0u9I/89Py9H6gDjLh3zs= X-Received: by 10.46.67.147 with SMTP id z19mr17373611lje.28.1517543716669; Thu, 01 Feb 2018 19:55:16 -0800 (PST) Received: from linux.local ([95.79.164.146]) by smtp.gmail.com with ESMTPSA id f14sm190934lje.84.2018.02.01.19.55.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Feb 2018 19:55:16 -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 v2 10/15] MIPS: memblock: Allow memblock regions resize Date: Fri, 2 Feb 2018 06:54:53 +0300 Message-Id: <20180202035458.30456-11-fancer.lancer@gmail.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180202035458.30456-1-fancer.lancer@gmail.com> References: <20180117222312.14763-1-fancer.lancer@gmail.com> <20180202035458.30456-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 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) -- 2.12.0