Show a cover letter.

GET /api/covers/2217368/?format=api
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2217368,
    "url": "http://patchwork.ozlabs.org/api/covers/2217368/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/cover/20260328074013.3589544-1-ruanjinjie@huawei.com/",
    "project": {
        "id": 2,
        "url": "http://patchwork.ozlabs.org/api/projects/2/?format=api",
        "name": "Linux PPC development",
        "link_name": "linuxppc-dev",
        "list_id": "linuxppc-dev.lists.ozlabs.org",
        "list_email": "linuxppc-dev@lists.ozlabs.org",
        "web_url": "https://github.com/linuxppc/wiki/wiki",
        "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git",
        "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/",
        "list_archive_url": "https://lore.kernel.org/linuxppc-dev/",
        "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/",
        "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}"
    },
    "msgid": "<20260328074013.3589544-1-ruanjinjie@huawei.com>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20260328074013.3589544-1-ruanjinjie@huawei.com/",
    "date": "2026-03-28T07:40:02",
    "name": "[v11,00/11] arm64/riscv: Add support for crashkernel CMA reservation",
    "submitter": {
        "id": 84791,
        "url": "http://patchwork.ozlabs.org/api/people/84791/?format=api",
        "name": "Jinjie Ruan",
        "email": "ruanjinjie@huawei.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/cover/20260328074013.3589544-1-ruanjinjie@huawei.com/mbox/",
    "series": [
        {
            "id": 497856,
            "url": "http://patchwork.ozlabs.org/api/series/497856/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=497856",
            "date": "2026-03-28T07:40:03",
            "name": "arm64/riscv: Add support for crashkernel CMA reservation",
            "version": 11,
            "mbox": "http://patchwork.ozlabs.org/series/497856/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/covers/2217368/comments/",
    "headers": {
        "Return-Path": "\n <linuxppc-dev+bounces-18951-incoming=patchwork.ozlabs.org@lists.ozlabs.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linuxppc-dev@lists.ozlabs.org"
        ],
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=huawei.com header.i=@huawei.com header.a=rsa-sha256\n header.s=dkim header.b=uvotX97y;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=2404:9400:21b9:f100::1; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-18951-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)",
            "lists.ozlabs.org;\n arc=none smtp.remote-ip=113.46.200.223",
            "lists.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=huawei.com",
            "lists.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=huawei.com header.i=@huawei.com header.a=rsa-sha256\n header.s=dkim header.b=uvotX97y;\n\tdkim-atps=neutral",
            "lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=huawei.com\n (client-ip=113.46.200.223; helo=canpmsgout08.his.huawei.com;\n envelope-from=ruanjinjie@huawei.com; receiver=lists.ozlabs.org)"
        ],
        "Received": [
            "from lists.ozlabs.org (lists.ozlabs.org\n [IPv6:2404:9400:21b9:f100::1])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1 raw public key)\n server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fjTwb09VDz1xy1\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 28 Mar 2026 18:41:35 +1100 (AEDT)",
            "from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4fjTwS0VWBz2yjp;\n\tSat, 28 Mar 2026 18:41:28 +1100 (AEDT)",
            "from canpmsgout08.his.huawei.com (canpmsgout08.his.huawei.com\n [113.46.200.223])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 4fjTwN2HbGz2yfK\n\tfor <linuxppc-dev@lists.ozlabs.org>; Sat, 28 Mar 2026 18:41:22 +1100 (AEDT)",
            "from mail.maildlp.com (unknown [172.19.163.127])\n\tby canpmsgout08.his.huawei.com (SkyGuard) with ESMTPS id 4fjTn767Z5zmV79;\n\tSat, 28 Mar 2026 15:35:07 +0800 (CST)",
            "from dggpemf500011.china.huawei.com (unknown [7.185.36.131])\n\tby mail.maildlp.com (Postfix) with ESMTPS id 9CAE440363;\n\tSat, 28 Mar 2026 15:41:16 +0800 (CST)",
            "from huawei.com (10.90.53.73) by dggpemf500011.china.huawei.com\n (7.185.36.131) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Sat, 28 Mar\n 2026 15:41:13 +0800"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1774683687;\n\tcv=none;\n b=P3ziA4/kjxT6xr9aOZL4K2gn2hqfQ3Oz9CpaTCg/8bM5jQODfdf9ecOU0C14lOFG6MMcr+9RbuDHh6XyNkKt0Gyeu9OXfi67KuPpFNV9Rj8FLX88poEt9gue5Q6LRgWLW7aVfdGOzthOhVN/ShRHUeVtFO4f++USy0NopTMHBPrx39QePFXumP6xBhAv/9PJmGtqiK/yMp2DEh+O354DFP1qsj2i0bcIGIif0Zwb3ZenuTWReENoyPFoJc/cKVnif6BsM3TBnKRIYD8CgdmjZ3NG/GwDjXbFBRgPRIdYXuwmR86dNkp3lN6FCXRmVBpKQSA/ofz6INMBovamK1vPkQ==",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1774683687; c=relaxed/relaxed;\n\tbh=ipRmD0/2OdKsTaPJkmq5XYbzQlr05HqxdeagwMOmVUI=;\n\th=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type;\n b=ogQUmGHfbBqBgdKoeopvsagwdWQQDQVhxEAOQeN/1SHxv0hTCC5JJBpr/AFEE6OzNMlewytsXelsTqOLJ3NTmvnw3aFMA2/r8ZRyAciGJez31g1ZRH0gdcxmomyNhipSDivSIkg5eHpRjSdfohmj+hHhj7HfVqTJyOONbffS5tgnjLfMEMyRmcIFybiSr6XNRduCisLJwUU99TdYPqDgwf1r+WdtcEmjMycn9akpu3vQvGIF8MW3tObwYEPInmfHce0EAaTRmn8c2PEUAZP4HZP7EYf4C7eq5g8z1+HLEAEbSB3QYEnLKkIBBn1SavinxOlgXFiTNvh2pBHNzHvTZw==",
        "ARC-Authentication-Results": "i=1; lists.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=huawei.com;\n dkim=pass (1024-bit key;\n unprotected) header.d=huawei.com header.i=@huawei.com header.a=rsa-sha256\n header.s=dkim header.b=uvotX97y; dkim-atps=neutral;\n spf=pass (client-ip=113.46.200.223; helo=canpmsgout08.his.huawei.com;\n envelope-from=ruanjinjie@huawei.com;\n receiver=lists.ozlabs.org) smtp.mailfrom=huawei.com",
        "dkim-signature": "v=1; a=rsa-sha256; d=huawei.com; s=dkim;\n\tc=relaxed/relaxed; q=dns/txt;\n\th=From;\n\tbh=ipRmD0/2OdKsTaPJkmq5XYbzQlr05HqxdeagwMOmVUI=;\n\tb=uvotX97yDNtH1amJpIj2s4O197fY2nMqoozQvJt0womhY4365jCUitbUFDPvBhpuA8STynNi/\n\tZU7ilNRpKFmtww5v2wwSEX29aCu+HIF3+GAuZ/Llme4Gqgl8ZAUxTkZxDkHCNv0fWU90Gupbsjx\n\tMVXXqh9Hj2VDeQ9DmNh3DMw=",
        "From": "Jinjie Ruan <ruanjinjie@huawei.com>",
        "To": "<corbet@lwn.net>, <skhan@linuxfoundation.org>, <catalin.marinas@arm.com>,\n\t<will@kernel.org>, <chenhuacai@kernel.org>, <kernel@xen0n.name>,\n\t<maddy@linux.ibm.com>, <mpe@ellerman.id.au>, <npiggin@gmail.com>,\n\t<chleroy@kernel.org>, <pjw@kernel.org>, <palmer@dabbelt.com>,\n\t<aou@eecs.berkeley.edu>, <alex@ghiti.fr>, <tglx@kernel.org>,\n\t<mingo@redhat.com>, <bp@alien8.de>, <dave.hansen@linux.intel.com>,\n\t<hpa@zytor.com>, <robh@kernel.org>, <saravanak@kernel.org>,\n\t<akpm@linux-foundation.org>, <bhe@redhat.com>, <vgoyal@redhat.com>,\n\t<dyoung@redhat.com>, <rdunlap@infradead.org>, <peterz@infradead.org>,\n\t<feng.tang@linux.alibaba.com>, <pawan.kumar.gupta@linux.intel.com>,\n\t<dapeng1.mi@linux.intel.com>, <kees@kernel.org>, <elver@google.com>,\n\t<paulmck@kernel.org>, <lirongqing@baidu.com>, <rppt@kernel.org>,\n\t<leitao@debian.org>, <ardb@kernel.org>, <cfsworks@gmail.com>,\n\t<osandov@fb.com>, <jbohac@suse.cz>, <tangyouling@kylinos.cn>,\n\t<sourabhjain@linux.ibm.com>, <ritesh.list@gmail.com>,\n\t<eajames@linux.ibm.com>, <songshuaishuai@tinylab.org>,\n\t<kevin.brodsky@arm.com>, <vishal.moola@gmail.com>,\n\t<junhui.liu@pigmoral.tech>, <coxu@redhat.com>, <fuqiang.wang@easystack.cn>,\n\t<liaoyuanhong@vivo.com>, <guoren@kernel.org>, <chenjiahao16@huawei.com>,\n\t<hbathini@linux.ibm.com>, <takahiro.akashi@linaro.org>,\n\t<james.morse@arm.com>, <lizhengyu3@huawei.com>, <x86@kernel.org>,\n\t<linux-doc@vger.kernel.org>, <linux-kernel@vger.kernel.org>,\n\t<linux-arm-kernel@lists.infradead.org>, <loongarch@lists.linux.dev>,\n\t<linuxppc-dev@lists.ozlabs.org>, <linux-riscv@lists.infradead.org>,\n\t<devicetree@vger.kernel.org>, <kexec@lists.infradead.org>",
        "CC": "<ruanjinjie@huawei.com>",
        "Subject": "[PATCH v11 00/11] arm64/riscv: Add support for crashkernel CMA\n reservation",
        "Date": "Sat, 28 Mar 2026 15:40:02 +0800",
        "Message-ID": "<20260328074013.3589544-1-ruanjinjie@huawei.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "X-Mailing-List": "linuxppc-dev@lists.ozlabs.org",
        "List-Id": "<linuxppc-dev.lists.ozlabs.org>",
        "List-Help": "<mailto:linuxppc-dev+help@lists.ozlabs.org>",
        "List-Owner": "<mailto:linuxppc-dev+owner@lists.ozlabs.org>",
        "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>",
        "List-Archive": "<https://lore.kernel.org/linuxppc-dev/>,\n  <https://lists.ozlabs.org/pipermail/linuxppc-dev/>",
        "List-Subscribe": "<mailto:linuxppc-dev+subscribe@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-digest@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-nomail@lists.ozlabs.org>",
        "List-Unsubscribe": "<mailto:linuxppc-dev+unsubscribe@lists.ozlabs.org>",
        "Precedence": "list",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"UTF-8\"",
        "Content-Transfer-Encoding": "8bit",
        "X-Originating-IP": "[10.90.53.73]",
        "X-ClientProxiedBy": "kwepems100001.china.huawei.com (7.221.188.238) To\n dggpemf500011.china.huawei.com (7.185.36.131)",
        "X-Spam-Status": "No, score=-0.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID,\n\tDKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=disabled\n\tversion=4.0.1 OzLabs 8",
        "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org"
    },
    "content": "The crash memory allocation, and the exclude of crashk_res, crashk_low_res\nand crashk_cma memory are almost identical across different architectures,\nThis patch set handle them in crash core in a general way, which eliminate\na lot of duplication code.\n\nAnd add support for crashkernel CMA reservation for arm64 and riscv.\n\nRebased on v7.0-rc1.\n\nBasic second kernel boot test were performed on QEMU platforms for x86,\nARM64, and RISC-V architectures with the following parameters:\n\n>-------\"cma=256M crashkernel=256M crashkernel=64M,cma\"\n\nChanges in v11:\n- Avoid silently drop crash memory if the crash kernel is built without\n  CONFIG_CMA.\n- Remove unnecessary \"cmem->nr_ranges = 0\" for arch_crash_populate_cmem()\n  as we use kvzalloc().\n- Provide a separate patch for each architecture to fix the existing\n  buffer overflow issue.\n- Add Acked-bys for arm64.\n\nChanges in v10:\n- Fix crashk_low_res not excluded bug in the existing\n  RISC-V code.\n- Fix an existing memory leak issue in the existing PowerPC code.\n- Fix the ordering issue of adding CMA ranges to\n  \"linux,usable-memory-range\".\n- Fix an existing concurrency issue. A Concurrent memory hotplug may occur\n  between reading memblock and attempting to fill cmem during kexec_load()\n  for almost all existing architectures.\n- Link to v9: https://lore.kernel.org/all/20260323072745.2481719-1-ruanjinjie@huawei.com/\n\nChanges in v9:\n- Collect Reviewed-by and Acked-by, and prepare for Sashiko AI review.\n- Link to v8: https://lore.kernel.org/all/20260302035315.3892241-1-ruanjinjie@huawei.com/\n\nChanges in v8:\n- Fix the build issues reported by kernel test robot and Sourabh.\n- Link to v7: https://lore.kernel.org/all/20260226130437.1867658-1-ruanjinjie@huawei.com/\n\nChanges in v7:\n- Correct the inclusion of CMA-reserved ranges for kdump kernel in of/kexec\n  for arm64 and riscv.\n- Add Acked-by.\n- Link to v6: https://lore.kernel.org/all/20260224085342.387996-1-ruanjinjie@huawei.com/\n\nChanges in v6:\n- Update the crash core exclude code as Mike suggested.\n- Rebased on v7.0-rc1.\n- Add acked-by.\n- Link to v5: https://lore.kernel.org/all/20260212101001.343158-1-ruanjinjie@huawei.com/\n\nChanges in v5:\n- Fix the kernel test robot build warnings.\n- Sort crash memory ranges before preparing elfcorehdr for powerpc\n- Link to v4: https://lore.kernel.org/all/20260209095931.2813152-1-ruanjinjie@huawei.com/\n\nChanges in v4:\n- Move the size calculation (and the realloc if needed) into the\n  generic crash.\n- Link to v3: https://lore.kernel.org/all/20260204093728.1447527-1-ruanjinjie@huawei.com/\n\nJinjie Ruan (10):\n  riscv: kexec_file: Fix crashk_low_res not exclude bug\n  powerpc/crash: Fix possible memory leak in update_crash_elfcorehdr()\n  x86/kexec: Fix potential buffer overflow in prepare_elf_headers()\n  arm64: kexec_file: Fix potential buffer overflow in\n    prepare_elf_headers()\n  riscv: kexec_file: Fix potential buffer overflow in\n    prepare_elf_headers()\n  LoongArch: kexec: Fix potential buffer overflow in\n    prepare_elf_headers()\n  crash: Exclude crash kernel memory in crash core\n  crash: Use crash_exclude_core_ranges() on powerpc\n  arm64: kexec: Add support for crashkernel CMA reservation\n  riscv: kexec: Add support for crashkernel CMA reservation\n\nSourabh Jain (1):\n  powerpc/crash: sort crash memory ranges before preparing elfcorehdr\n\n .../admin-guide/kernel-parameters.txt         |  16 +--\n arch/arm64/kernel/machine_kexec_file.c        |  43 +++-----\n arch/arm64/mm/init.c                          |   5 +-\n arch/loongarch/kernel/machine_kexec_file.c    |  43 +++-----\n arch/powerpc/include/asm/kexec_ranges.h       |   1 -\n arch/powerpc/kexec/crash.c                    |   7 +-\n arch/powerpc/kexec/ranges.c                   | 101 +-----------------\n arch/riscv/kernel/machine_kexec_file.c        |  42 +++-----\n arch/riscv/mm/init.c                          |   5 +-\n arch/x86/kernel/crash.c                       |  92 +++-------------\n drivers/of/fdt.c                              |   9 +-\n drivers/of/kexec.c                            |   9 ++\n include/linux/crash_core.h                    |   9 ++\n include/linux/crash_reserve.h                 |   4 +-\n kernel/crash_core.c                           |  89 ++++++++++++++-\n 15 files changed, 194 insertions(+), 281 deletions(-)"
}