Received: by 10.223.185.116 with SMTP id b49csp3659858wrg; Tue, 13 Feb 2018 05:54:01 -0800 (PST) X-Google-Smtp-Source: AH8x225gVHd40HmodYDsKfzNVVzxlX/XyE+FRMb6SK8ZqQZhOrhcFT9upryPGU6yOzKYs3CocrSJ X-Received: by 10.99.127.90 with SMTP id p26mr1075716pgn.268.1518530041730; Tue, 13 Feb 2018 05:54:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518530041; cv=none; d=google.com; s=arc-20160816; b=HV1ywZj/zkf8JTX5PIxLgy2JvNqHJPORa/g0nKq7cUzVXbjDzDBEq1qhyzc0LcHpi3 RS0AnCftf+OCxBD5jxgcf0A+qviy0YS3rOLNp2qDGeFC4zbW7DdUvBilNsh2VEi0D4Az e8dUjBra/pWU9qT4Ay60CwXWGWRaigh8wZ4onYo/dM+WJLmu86jzsHQeAp2O/DhZwMPq ZuzYixJ27HdTP3oJFYasVLsBoUqUbpolzzo4sAbYBwtxbrAywU4n/9w3XB7k1W7YIYDD MhrgbDiAvxihw7/Zvcbc59XFbTSZUnRvBoo3GSIung7AbS/sGrYB/NSpDuqIetpAUB5d bq6A== 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=9r39cKWcoPcwI27ISumRO05kYLMcmY/aSnCkn4eh8M4=; b=DDjwYFjaVjolcUVwyiCpGdB1V5qBjyiQH4xIwGzK6x7NFfL6/hGn+HzWpHcbE9blLm 7NOn+z2LAJqw1M7srEqbIW79tVEskttVhFfdWOGXKGvDP+TkxgdHpawrVRMQgm5o6nc/ xdyiS6cYNdL8Yu73ZaUo/PkMjnoFzwq3hWYJd8w5F1HFIs7XWRk/9F1SIjpL9KYCvtM+ Tv9/ch6KBCbSGGHy5RcRg6+ElJUApzICzNGSeAZpHyuGihZL9iTDauAXVHIG7BmHb+hG UHVLmYNguQX5fFFuwRNUWfIKZCLsYuCx9x+rkpTECaud+LryJWD1DwkBSXUEA6WHMpLl tD8A== 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 101-v6si2278129ple.263.2018.02.13.05.53.46; Tue, 13 Feb 2018 05:54:01 -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 S965029AbeBMNxM (ORCPT + 99 others); Tue, 13 Feb 2018 08:53:12 -0500 Received: from 9pmail.ess.barracuda.com ([64.235.150.224]:38272 "EHLO 9pmail.ess.barracuda.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964846AbeBMNxJ (ORCPT ); Tue, 13 Feb 2018 08:53:09 -0500 Received: from MIPSMAIL01.mipstec.com (mailrelay.mips.com [12.201.5.28]) by mx4.ess.sfj.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NO); Tue, 13 Feb 2018 13:51:40 +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:46:02 -0800 Subject: Re: [PATCH v2 07/15] MIPS: memblock: Reserve kdump/crash regions in memblock To: Serge Semin , , , , , , , , , CC: , , , , , , , References: <20180117222312.14763-1-fancer.lancer@gmail.com> <20180202035458.30456-1-fancer.lancer@gmail.com> <20180202035458.30456-8-fancer.lancer@gmail.com> From: Matt Redfearn Message-ID: <7046eb2c-8d53-bac9-3dd5-0f35816dfe0e@mips.com> Date: Tue, 13 Feb 2018 13:45:57 +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-8-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: 1518529899-298555-24840-62852-6 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: > 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 This looks good to me Reviewed-by: Matt Redfearn Thanks, Matt > --- > 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(); >