Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3122149imw; Mon, 11 Jul 2022 02:13:20 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uPCPCiFtRSo82ryjEAZkPVXmciN5nWAmAIgeztdzWw8eVFtwuluz8UKwO/sEZ8fgRUAdsV X-Received: by 2002:a17:906:4fd4:b0:722:f223:8d86 with SMTP id i20-20020a1709064fd400b00722f2238d86mr17713398ejw.558.1657530800542; Mon, 11 Jul 2022 02:13:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657530800; cv=none; d=google.com; s=arc-20160816; b=P3phgoHCY6b4ZJKKnZ+vlzZtC80N/2bfd/fapuzwdZ2nVJT48FFa5rg+ctKKQqX1fw TBqFYMcoz5pKRBBaUh44EViSM5RL2EjD5AoP/GkF0kBLOc01rG7y11rix+bRDjusZJ+n qg25vTgGxWE5swbi7Dvc5P2SbBqyhiytgfQ/kYeDkQ6/PpSRqZAoPzT4J6IMAYsqRUwg WY98iEUB2JyTy+eC5NHYwTVM1V/srSdifrnqPYlk4MBzSX8/UuRNJ8OR9ufO77eV4FVa 3d/SQj9BThRj0ETm3TT8EJzg/VCD0Z4wdjQyNzoPLQKUyzPuqU9nV2tzjKHXyTTGxCEA M6FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=IKjMd67A+Dv4qavZJO3HENd+yzarDdpC4oC1JSVqnIg=; b=vG5rPnNy7ET7V8jcYRwLxBJuNABQT7zBGEa+l/pivvjiXMD066lXO6jE7PlfXg1guF rxDvP3ECj6QAuXLGhAMA7YKN8DZ2m1GaloNgifjK+FIIVPi7B1ONV7H/a7zN1D219vTf Zt5L8FJsaJmz3Xit6i+RX9RDpAvYLY4pea9Uq4hiidganjmnn5tktZ2mUYc7Eu+l4nIx aT9SIsxahBZKbaxa3tjwF5Bkg6WjHiO21twKiFSpEzAOpF/x5anGWePwz//EQztPjkma zDimXb+QKB9hYL42hc/VZY1ps5uES3U/QtI9iRZPQSTWBTJCl97xWWo9nYwmhdNpFyZn EEoA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b14-20020a056402350e00b0043ac55ccf10si9605619edd.620.2022.07.11.02.12.55; Mon, 11 Jul 2022 02:13:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230242AbiGKJEu (ORCPT + 99 others); Mon, 11 Jul 2022 05:04:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229501AbiGKJEr (ORCPT ); Mon, 11 Jul 2022 05:04:47 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56D01C36; Mon, 11 Jul 2022 02:04:46 -0700 (PDT) Received: from dggpemm500020.china.huawei.com (unknown [172.30.72.55]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4LhHvQ09VNz1L926; Mon, 11 Jul 2022 17:02:10 +0800 (CST) Received: from dggpemm500006.china.huawei.com (7.185.36.236) by dggpemm500020.china.huawei.com (7.185.36.49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Mon, 11 Jul 2022 17:04:41 +0800 Received: from thunder-town.china.huawei.com (10.174.178.55) by dggpemm500006.china.huawei.com (7.185.36.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Mon, 11 Jul 2022 17:04:41 +0800 From: Zhen Lei To: Dave Young , Baoquan He , Vivek Goyal , , , Catalin Marinas , Will Deacon , , Jonathan Corbet , CC: Zhen Lei , "Eric W . Biederman" , Randy Dunlap , Feng Zhou , Kefeng Wang , "Chen Zhou" , John Donnelly , Dave Kleikamp Subject: [PATCH v3 0/2] arm64: kdump: Function supplement and performance optimization Date: Mon, 11 Jul 2022 17:03:17 +0800 Message-ID: <20220711090319.1604-1-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.174.178.55] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm500006.china.huawei.com (7.185.36.236) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v2 --> v3: 1. Discard patch 3 in v2, a cleanup patch. v1 --> v2: 1. Update the commit message of Patch 1, explicitly indicates that "crashkernel=X,high" is specified but "crashkernel=Y,low" is not specified. 2. Drop Patch 4-5. Currently, focus on function integrity, performance optimization will be considered in later versions. 3. Patch 3 is not mandatory, it's just a cleanup now, although it is a must for patch 4-5. But to avoid subsequent duplication of effort, I'm glad it was accepted. v1: After the basic functions of "support reserving crashkernel above 4G on arm64 kdump"(see https://lkml.org/lkml/2022/5/6/428) are implemented, we still have three features to be improved. 1. When crashkernel=X,high is specified but crashkernel=Y,low is not specified, the default crash low memory size is provided. 2. For crashkernel=X without '@offset', if the low memory fails to be allocated, fall back to reserve region from high memory(above DMA zones). 3. If crashkernel=X,high is used, page mapping is performed only for the crash high memory, and block mapping is still used for other linear address spaces. Compared to the previous version: (1) For crashkernel=X[@offset], the memory above 4G is not changed to block mapping, leave it to the next time. (2) The implementation method is modified. Now the implementation is simpler and clearer. Zhen Lei (2): arm64: kdump: Provide default size when crashkernel=Y,low is not specified arm64: kdump: Support crashkernel=X fall back to reserve region above DMA zones .../admin-guide/kernel-parameters.txt | 10 ++----- arch/arm64/mm/init.c | 28 +++++++++++++++++-- 2 files changed, 28 insertions(+), 10 deletions(-) -- 2.25.1