Received: by 10.223.148.5 with SMTP id 5csp6483435wrq; Wed, 17 Jan 2018 14:27:25 -0800 (PST) X-Google-Smtp-Source: ACJfBos/Z7nc7Dos6eaUZ9WF4xmADKtzDKXnewsHjDQSu7hh5ceDmC4dJYRsH2ccZgoGLEJO1EzX X-Received: by 10.159.198.11 with SMTP id f11mr15368412plo.135.1516228044893; Wed, 17 Jan 2018 14:27:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516228044; cv=none; d=google.com; s=arc-20160816; b=HJbTV9Wlk8aCtLidlAOjUim7Yauy9bkF4q+El/UG3BujqcsqXFEi3tsR1M2xX6s69d u836+Orbbuj4h1ELvmlKLmt5fsY24DUO0fKJ7pDJ3Yuysec4HeW1dyayCNHRwjZV3dRR hy9dplFZbJYArynI0KSR8ahMlw6Ds9FqaftBsg42pGPtFPaVDNW3nOxnK0CfBEV93iWt OxqmGyPlrXeIyPY7OtiFxktwXhcFPvjbOuiTSImN1pvOwUM5qOyTQ9N8xDRZQEE3OnHL 4Ne9kE0ueCnMFxNetSyQpJBlqOLiM7LVCBibLbHbUx8sn/gqrzTK3Hz8wlPz2Xb1Ad3R CuLw== 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=E/0flwQqlo8Ga7Z3uhWMtp+lF0st8GiFoGDX1KCpXWc=; b=CqcfV0wsEZfoyIwfGolC4TnibcYmgu7lxo1EFhIunb031hvK9gEkG2U4cYeWZCB8F9 wy4yTSrV7Hcfin34qbICrHCHLEr/Kw/8VBVjBBpdoz5563yOP+uOqbXLCnPVmPgT12SH 4VAUoar9gRBs5kyiDrJ6UOWGnIlHZoer5/PeEm/LjOYTY5gIsDV4uNkqoBCSinbCmYtt oKP3jVbUFKsDzwJGL2v5Qs5UpMPC6kIR5VZQ3rrSAIS03mWkI1T7+FC+Z/1MDpZnryFA aZl4OJjyHwbMQw9+oufJ/QTxZerIEhiqPMP2a09DLFHkWdahhQzS7Kwr3AVlt08fYzk0 3jqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=c5OlaxI0; 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 s13si5332261plq.623.2018.01.17.14.27.11; Wed, 17 Jan 2018 14:27:24 -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=c5OlaxI0; 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 S1753970AbeAQWXb (ORCPT + 99 others); Wed, 17 Jan 2018 17:23:31 -0500 Received: from mail-lf0-f68.google.com ([209.85.215.68]:40429 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753714AbeAQWX2 (ORCPT ); Wed, 17 Jan 2018 17:23:28 -0500 Received: by mail-lf0-f68.google.com with SMTP id h92so13662249lfi.7 for ; Wed, 17 Jan 2018 14:23:27 -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=E/0flwQqlo8Ga7Z3uhWMtp+lF0st8GiFoGDX1KCpXWc=; b=c5OlaxI0U64aYO4uw5UZGyJPJ65NKebaP49TMfXsoxBkkoYZ6EoxWl2cxDBco1Bq1E oq2mrt1bTVKbTrGFsKus53utT2cbXUKc6ZngJA3GVcpY+vPXevyle4o8n6hJ/ohkPI5s xSx+f8ecICNEVqYQT0Bl7mF4Jt6ABDyUtD6EFzBw9zLBX91rMj85FomU+ug4zEfeTDkp YhoQwtI7P+0GmhrGFm5qst+TI7pPfK9t40UkHczaV8REMYhltrv8nD0QnSfl+pZeX5eh m0+KrQW4HgPhP4WCmJZuHSQX/cWMn1mcFQNdJtaGqvC95afKsfoB0ILnCe6AR4gtBvtj CW4g== 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=E/0flwQqlo8Ga7Z3uhWMtp+lF0st8GiFoGDX1KCpXWc=; b=pmp9t4dWgwu7JypiUh+/iTSYZy1epDJdl1xhEuhidQWG8gTVouXPm5StqnaQRiQbwA 9Yf2Cud49CqeYRbfV0z1+iCJ8EI3GCFZPfSDL/K0rqyq47x6blXaTm5FLDdEITB8HXxH 0ctQKN4AT19Iq4C2SUql03eQG1TSVEPqnbuidH1M1p/OcSSDx11cQDCgJnYhuGU2cU/A DEg1bvgSOqyBs2Ubx93pO3sioOd1NJ2hhrSJTV5brMaAJ673z8/lXjZu2IV1/x6oqG0H sVm1iVlWDw4dFR/Ibx0x8pGzxTK+Y5hkvGUXI24urzsBTBcpJrg9UcLc66Su5S6dKNiX CwFw== X-Gm-Message-State: AKwxytcD4jg/yEM4KA/budohLgNKRNW0ctzRBr2mm9C6jYV+dzSVgE01 KbZApLBPXJg3sp64lxfL/Dg= X-Received: by 10.46.51.24 with SMTP id d24mr8690686ljc.78.1516227807135; Wed, 17 Jan 2018 14:23:27 -0800 (PST) Received: from linux.local ([95.79.164.146]) by smtp.gmail.com with ESMTPSA id l203sm953867lfb.59.2018.01.17.14.23.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 Jan 2018 14:23:26 -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 06/14] MIPS: memblock: Reserve kdump/crash regions in memblock Date: Thu, 18 Jan 2018 01:23:04 +0300 Message-Id: <20180117222312.14763-7-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 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 9e14d9833..b121fa702 100644 --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c @@ -849,17 +849,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