From patchwork Thu Apr 22 02:24:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Youling Tang X-Patchwork-Id: 12217381 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 59ADBC43460 for ; Thu, 22 Apr 2021 02:25:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 32DC461452 for ; Thu, 22 Apr 2021 02:25:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234078AbhDVCZi (ORCPT ); Wed, 21 Apr 2021 22:25:38 -0400 Received: from mail.loongson.cn ([114.242.206.163]:44218 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230259AbhDVCZh (ORCPT ); Wed, 21 Apr 2021 22:25:37 -0400 Received: from bogon.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9DxT+5n3oBgwxoMAA--.4114S2; Thu, 22 Apr 2021 10:24:40 +0800 (CST) From: Youling Tang To: Thomas Bogendoerfer Cc: Jiaxun Yang , Baoquan He , Huacai Chen , Jinyang He , kexec@lists.infradead.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/4] mips: Fix related problems in kdump operation Date: Thu, 22 Apr 2021 10:24:30 +0800 Message-Id: <1619058274-6996-1-git-send-email-tangyouling@loongson.cn> X-Mailer: git-send-email 2.1.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FxhVjvjDU0xZFpf9x0JUCg4hUUU UU= X-CM-SenderInfo: 5wdqw5prxox03j6o00pqjv00gofq/ Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org 1. Fix the "mem=" parameter parsing problem. 2. Solve the problem that panic may be triggered due to insufficient memory when entering the capture kernel. 3. Fix the problem that the captured production kernel data may be destroyed. Youling Tang (4): MIPS: Fix cmdline "mem=" parameter parsing mips: kdump: Capture kernel should be able to see old memories mips: kdump: Reserve extra memory for crash dump mips: kdump: Reserve old memory to avoid the destruction of production kernel data arch/mips/kernel/setup.c | 82 ++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 79 insertions(+), 3 deletions(-)