Received: by 10.223.176.5 with SMTP id f5csp264928wra; Thu, 1 Feb 2018 19:59:59 -0800 (PST) X-Google-Smtp-Source: AH8x226zrMNWp24nGv4gHfwNm6pP0beKfSkY5VM9JtLMBkeiDQcZCWLF8TTDX15xJs8FNCSBR+su X-Received: by 2002:a17:902:481:: with SMTP id e1-v6mr31674556ple.228.1517543999575; Thu, 01 Feb 2018 19:59:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517543999; cv=none; d=google.com; s=arc-20160816; b=WYYEsOoiVMt1ee1A5pMTu8hheJY2bjb6PNzaNUr22YY71FgNjARs4Eis0dg1aa3P4q iG6iwsCLPz9AS5Nl3nEpG6ZQCecpv2IWiI8J2KkVl+5ACGihVzxqMtLs3k63DJfRGs2q QIaL5J5413Wv0rxNDaPDPERBKwypbY7dLwvUC2SwOvLHM3+PKVQMFnZloWuB+HKcDbMM bVTz5Z/CWoPmq6tr4QqjvmVDi+plADG6lI6n8jTwY54iPpT0ZGsUwDIg0ZPG3tnHs0Kv Oo0mj+1IOpv54UYUKjTsOeSzELrAqVzAD4YrurnTngiNvj1hMIHum/1PR98yiWFF7rGO lHQg== 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=4+NQJlS4hcQxkkwrnbKPaiD9+u8Tv9sM4QEVl9ruxHc=; b=spkvUWdFv0gS+1LeHbJC8tPZKj7YrniRW3fEQT/LyjOXtkDizR21MLRreOOt7X812z xrIQNLKt51vAoP1l59cq4ejuzXr1XKxzGw+/zD5Lah6txOc+zoKMLtIiaIoKbV45/9pU h5NYKML+g2gnj3CiKuHO97NI7UYa/zQ9JfRRAXwhgX/Q6369CGsTeQ9TpJcjrveFc6iI DrkSDCLJmNsJAwGFu4RDd+V4oD/3qVgbazUUMIfhI5/BCnC5UkHZRIMuKET2A6DURGWj noh2LaFYsioQdSP+4AAgTUeapz7eF7sTc6jzvEixh/M/lU834yUj6o4jl0yCTFIeGGO4 kvtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UFJwrhv/; 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 e4si766783pgn.428.2018.02.01.19.59.44; Thu, 01 Feb 2018 19:59:59 -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=UFJwrhv/; 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 S1752013AbeBBD6J (ORCPT + 99 others); Thu, 1 Feb 2018 22:58:09 -0500 Received: from mail-lf0-f67.google.com ([209.85.215.67]:42083 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751569AbeBBDzO (ORCPT ); Thu, 1 Feb 2018 22:55:14 -0500 Received: by mail-lf0-f67.google.com with SMTP id q17so29429815lfa.9 for ; Thu, 01 Feb 2018 19:55:14 -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=4+NQJlS4hcQxkkwrnbKPaiD9+u8Tv9sM4QEVl9ruxHc=; b=UFJwrhv/hHeV/Qx5Iv49reGFZVyjKughBZBMZVw0of5H5qhLODZnmRwjEqa1YSFdco pIVZRRNazNfia2o2u0g+uNOUzY0dt6R8IZ5T46KejRZ/Arix7q8IpGZBCg7rCs/ectif l+PF5NWjQHr+BVkT/9Mj/HqdYjo8ZdqlymEHSut/4aNYT2qo4toj4Tkw7kskstCDWEsP 6+xU+OfA3r4V9qtaPATVSr4UU9m4ZfXpEFDHrOrEru8XdfVIztQ3heGVPx31cKItBb4p nOIKIZu5uZ/ygLt3IHQJ6nNO2Bk6haLc32Kmnr03ByaTe3CYISZfhzptfLi4Sg0wJeXw 86ow== 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=4+NQJlS4hcQxkkwrnbKPaiD9+u8Tv9sM4QEVl9ruxHc=; b=UuP8hiyAtslvUhsuC5IV2vzzmkfPkeSfbJRVWhhTIgCwJ8sT1hF5RHc0Zya8Th7Ru9 fiR8mtsEKzettHfDqBwroAASjz8+XFrk/qMFDUL3bt9WO+OUYp+CESsRCSnm0vWJGQRJ KOI04dy9JX3jlfj2Vs6wm3v4oRVVoP+BbQuHko7jbGvaLxiiPq29La8sJRchrN49Yn9X Wgx8LOfbbmln2zkv1/1zaqJsvq3VMmRxgvU3rKNb7RcjLqs4bzoJMfMcX1PGH2/zKQm7 3V6+aZheflByzR4zSt4eIaP/UpUSUqUMt0iJLehFPU+XwDDisJPEUkngg4oC+9Ltho/u UXWw== X-Gm-Message-State: AKwxytd9nPnS8XSQJakoWhmRaWUFjotTx3g88cobLjgQtT+EYs9sqZCS EDAwMksOCVSW1FmNTpGmwWQ= X-Received: by 10.46.23.84 with SMTP id l81mr14679684lje.146.1517543712647; Thu, 01 Feb 2018 19:55:12 -0800 (PST) Received: from linux.local ([95.79.164.146]) by smtp.gmail.com with ESMTPSA id f14sm190934lje.84.2018.02.01.19.55.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Feb 2018 19:55:11 -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 07/15] MIPS: memblock: Reserve kdump/crash regions in memblock Date: Fri, 2 Feb 2018 06:54:50 +0300 Message-Id: <20180202035458.30456-8-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 Kdump/crashkernel memory regions should be reserved in the memblock allocator so they wouldn't be occupied by any further allocations. Signed-off-by: Serge Semin --- arch/mips/kernel/setup.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index 72853e94c2c7..b2a5b89ae6b2 100644 --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c @@ -826,17 +826,15 @@ static void __init arch_mem_init(char **cmdline_p) if (setup_elfcorehdr && setup_elfcorehdr_size) { printk(KERN_INFO "kdump reserved memory at %lx-%lx\n", setup_elfcorehdr, setup_elfcorehdr_size); - reserve_bootmem(setup_elfcorehdr, setup_elfcorehdr_size, - BOOTMEM_DEFAULT); + memblock_reserve(setup_elfcorehdr, setup_elfcorehdr_size); } #endif mips_parse_crashkernel(); #ifdef CONFIG_KEXEC if (crashk_res.start != crashk_res.end) - reserve_bootmem(crashk_res.start, - crashk_res.end - crashk_res.start + 1, - BOOTMEM_DEFAULT); + memblock_reserve(crashk_res.start, + crashk_res.end - crashk_res.start + 1); #endif device_tree_init(); sparse_init(); -- 2.12.0