From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.227.129 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792652658; b=Gn0Wp0Sl11DMc+fMtelU4tkTZQaxyCXpiL5vuxyhutcCc5hFT6WqJ57tcqJLNdncmWMp bezqQpl+rgw7tpkSnCtFBRuZU5Flt15uSX7QjwuV4yGwPcA8uiOwb4voCjRxqX6TZZYX1 mLSv66ZoeQczgjeKaQ9d1ZlrZYg8/TOFMmIW3pEI1RE1JRDE6eQIF7o8QKGVscDV+zbS/ gf42N/0fHr1Z0m6AIOUCjZO6V9zY/hbCl2TWFG7bCynXBTUSP3e+6dQ0vmWhbBrdhtXI6 iqrjPJvpRxLhMz4ZqgP3s4Xv4cQaOLZjfndGbHRR4zEVDjVtAitaJeX8VV6r4O1zTIw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792652658; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Message-ID:Date:MIME-Version:User-Agent:Subject:To:Cc:References: Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=+ByBpVD7FPTufElpNoOF6mqXMOL+Kv6Ik0YaJGkEPtg=; b=IR+7MkREIQlI1gpMKw0wbq3NFJ/ZG5MRHzUNwi3r4DXker/KycZK9iSfOWnXJXUDzu3N LwVIedLZQoDjkTH/iYP62cg4T8qpEmS8poe7Qj0lP8KO/yA0T9yCiuHSj2szQaeveaZbQ cVb9U9A5xs2ukQsCfz8b5Uo2JDmamluY4txN/M1zanF+4h84y+ufKBRWZTRxaO0hjCXZA anE7rCjTszqt9KjTffQ3AMj/YkdU6SwerwNYWgosse50ovc/YrQHdvap9Wo05+LT0fxn4 3B3MC0lYiPJrzi+N+cqQR7fTVnUGWdwJEU6hC3ebfQmWGYIMZ9cViUYD2PnEJeax/XA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b=FXvXvPnR; arc=none smtp.remote-ip=74.125.227.129 Received: from mail-pj2-f1.google.com (mail-pj2-f1.google.com [74.125.227.129]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 13500606A31E for ; Thu, 22 Oct 2026 07:04:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 13500606A31E Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b=FXvXvPnR Received: by mail-pj2-f1.google.com with SMTP id d9443c01a7336-2e876f468e5so5077655ad.1 for ; Thu, 22 Oct 2026 00:04:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1792652657; x=1793257457; darn=lists.linux.dev; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=+ByBpVD7FPTufElpNoOF6mqXMOL+Kv6Ik0YaJGkEPtg=; b=FXvXvPnRT//Eez+eRJgLfA5dQOSUYhDdm0Eov737/emH3/jcCMM6Ox6g2eBMo+hEGQ x9W8Qb7yAKG61G+EA4QnMZL6G2lCffBfncaq3EJTz1Ps7b7QvkUil6eHC8uWa80FrZr3 WEcRIIpCizY9WD3HEnsIfQjkLH+2VLuKQlgDA63AtdRsxGbcm3Y66NF8FNVCqRuIsR9K ALA02jDdNYg1C+mSppmcLEwhT9VdpUrxMrU4ZvlPNvoWk0W6SoWFlBg/nZzbejy/enGZ 0yLmnURqkftY1kU5UN21HWzraUlnHpILMCv2gqHehdNDiEvwSJgpLMWn7V7fCIuIJbVn vmeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792652657; x=1793257457; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=+ByBpVD7FPTufElpNoOF6mqXMOL+Kv6Ik0YaJGkEPtg=; b=UNIWQNJvVlMW9i/0BCDM0GhQJ3I//9NZmqHv3HSdVFectExYbBfuJeYIPA1+uHgRAa AQjxqG4KmoNHTgbN1NgWXkR6o4Z0z9+0eRqBYImCfp2r1f4anMvGeDalWzWJ9pz9dOGX cV+XAqrzaLb4NHLarDfVRrB4RrW0xWzBvYXOv2o6UIsFruK7y3mBjNC/oXGJI/kUwK7u q6rEl1hQUrRIViQU1X/AqTNdNbBoXxEBl1MgItJz40Fz+ER4Wra6jDhsSc4bTbtX5hzl DGUfkpB5DowHOr8WJach5hb+9Jd8eXSd2Q5Wn2eliyakYgULf/1Yw+ZSqFbT0swVbQX5 ww9A== X-Forwarded-Encrypted: i=1; AKwUvBwCR2fxXtgd6DQYiMKI+jgebWNYKInbSx/Qb2upOff8eJN5AfbhNQJZ+wzvnrnGIj0MKYVXc9FxCEQ=@lists.linux.dev X-Gm-Message-State: AFq9FYK/+6WzjUgc9E97scYl9dR2QmQDuR70XR2icN5Jo/YfFs/B1UBn 5i5I65T5SfZBx3FHsh0xumQ2+EUwap9KG1GaEGAjv4d5ClVbuBeJV4VU X-Gm-Gg: AYBFou2idEBtitBraJb9iaWQwgZ/qILoRaSncjJAfPYXCSbLduGhCNMNu+kz3HZ8N1f JXf9Bm7JdnT4507ib5grl0UYik47Z2EVc4NuRULKKDtBLLKx7RSNKZnpk4BTH48zhE3sr4mm+KS Q86KCc2mo8uwoy418frORCYy8DB+HsfYhH8rDZdSp+Ql+O8mj5U1PeYoz0rbTi8qhJl0w67ndqk j9qVfCQD21XBNlJCjyvxGpClhN26wP6L0WGNYerP3U1mQTlnFYYLV0YF/TtMiXx7K7yMF6T+2Uk 2dDyRtzxVuUs3oItYqsiQNSkRoV0n9Xo+4UDZkzXiwq+cCB7uicqkrvW/UtbBbSCeQt47Kq7Cc+ 2CQA4GDq7VuwGeoEKklWOb0dmcKIi83bp7IQGbVSWn8RFz5113VrebF2ZSpzQNL+LJmn0T56gpa yj3bodZOMt6TfXSwUZhDAlTrD2XloQHWRv7CeEslDQs2PuRV1B0MN8d8Aqv6tou9yUNmMgcs2KC K6zEJ20LXR/szFYjpEh4xWLFvLgfTfhZDP5kCSe5dpwXDXCwaDo0x1E7pzfZKk= X-Received: by 2002:a17:902:e947:b0:2e9:9bac:2e84 with SMTP id d9443c01a7336-2ea43d3a8e5mr34417885ad.66.1792652657298; Thu, 22 Oct 2026 00:04:17 -0700 (PDT) Received: from [10.125.112.22] ([122.11.210.25]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2ea3b43478csm19901295ad.28.2026.10.22.00.04.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Oct 2026 00:04:16 -0700 (PDT) Message-ID: <95f18ef2-8fda-447e-bc64-1732febea363@gmail.com> Date: Thu, 22 Oct 2026 15:04:02 +0800 X-Mailing-List: loongarch@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v9 0/8] kdump: reduce vmcore size and capture time To: Rob Herring , "rppt@kernel.org" Cc: baoquan.he@linux.dev, m.szyprowski@samsung.com, catalin.marinas@arm.com, will@kernel.org, mark.rutland@arm.com, chenhuacai@kernel.org, kernel@xen0n.name, pjw@kernel.org, palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr, tglx@kernel.org, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, saravanak@kernel.org, akpm@linux-foundation.org, pasha.tatashin@soleen.com, pratyush@kernel.org, ruirui.yang@linux.dev, robin.murphy@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, kexec@lists.infradead.org, linux-mm@kvack.org, iommu@lists.linux.dev References: <20261021083011.2170525-1-chenwandun1@gmail.com> <20261021132308.GB3667411-robh@kernel.org> Content-Language: en-US From: Wandun In-Reply-To: <20261021132308.GB3667411-robh@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 10/21/26 21:23, Rob Herring wrote: > On Wed, Oct 21, 2026 at 04:30:03PM +0800, Wandun Chen wrote: >> From: Wandun Chen >> >> On SoCs that carve out large firmware-owned reserved memory (GPU, >> camera ISP, ...), kdump currently dumps those carveouts as part of >> system RAM even though their contents are firmware state that is not >> useful for kernel crash analysis. >> >> ACPI systems already filter reserved memory out of the vmcore through >> their existing path: firmware reports those carveouts as unusable in >> the EFI memory map, they get MEMBLOCK_NOMAP set in memblock.memory >> (is_usable_memory(), efi-init.c), and the ELF header builder has >> always skipped nomap regions; only DT-based systems currently fail >> to filter these regions, which is what this series addresses. >> >> This series introduces a MEMBLOCK_NODUMP flag (suggested by Rob) in >> memblock to filter reserved memory on DT-based architectures. A new >> flag is needed because MEMBLOCK_NOMAP can only express regions without >> a linear mapping, while MEMBLOCK_NODUMP can filter regions that are >> linearly mapped. Reserved regions are marked MEMBLOCK_NODUMP by default >> so kdump omits them; reusable CMA regions are different because their >> pages are handed back to the buddy allocator and may carry crash-relevant >> data. > > There is little point in continuing to send new versions until Mike > agrees with MEMBLOCK_NODUMP being added. You didn't answer him on v7. Hi Rob, Thanks for the reminder. On v7 your reply to Mike stated exactly what I wanted to say, after a week without further objections, so I assumed the question was settled and went ahead with next version. That was a mistake on my part: I should have gotten Mike's agreement on the flag before sending a new version. I'll hold off further versions until then. Hi Mike, Sorry for not following up on your v7 question. The reason a new flag is needed is described in the v9 cover letter: A new flag is needed because MEMBLOCK_NOMAP can only express regions without a linear mapping, while MEMBLOCK_NODUMP can filter regions that are linearly mapped. Put differently: today, whether a region ends up in the vmcore is a side effect of how it is mapped, mapped regions are always dumped, nomap regions never are. Nothing can express "mapped, but not useful in a crash dump". MEMBLOCK_NODUMP decouples the two, and DT is simply the first user. > > Also, I intend to apply this[1] before any further reserved memory > changes which will greatly simplify the code. Understood, and it makes sense. It removes the two-pass reserved_mem initialization and indeed simplify the code, I'll rebase on top of it once it lands; Best regards, Wandun > > Rob > > [1] https://lore.kernel.org/all/20261015082315.56876-1-m.szyprowski@samsung.com/