Skip to contentSkip to conversation

documentation-kho-add-memblock-bindings.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message May 13, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: Documentation: KHO: add memblock bindings
has been removed from the -mm tree. Its filename was
documentation-kho-add-memblock-bindings.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: "Mike Rapoport (Microsoft)" <[email protected]>
Subject: Documentation: KHO: add memblock bindings
Date: Fri, 9 May 2025 00:46:35 -0700

We introduced KHO into Linux: A framework that allows Linux to pass metadata and memory across kexec from Linux to Linux. KHO reuses fdt as file format and shares a lot of the same properties of firmware-to- Linux boot formats: It needs a stable, documented ABI that allows for forward and backward compatibility as well as versioning.

As first user of KHO, we introduced memblock which can now preserve memory ranges reserved with reserve_mem command line options contents across kexec, so you can use the post-kexec kernel to read traces from the pre-kexec kernel.

This patch adds memblock schemas similar to "device" device tree ones to a new kho bindings directory. This allows us to force contributors to document the data that moves across KHO kexecs and catch breaking change during review.

Cc Andy Lutomirski <[email protected]>
Cc Anthony Yznaga <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Ashish Kalra <[email protected]>
Cc Ben Herrenschmidt <[email protected]>
Cc Borislav Betkov <[email protected]>
Cc Catalin Marinas <[email protected]>
Cc Dave Hansen <[email protected]>
Cc David Woodhouse <[email protected]>
Cc Eric Biederman <[email protected]>
Cc "H. Peter Anvin" <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc James Gowans <[email protected]>
Cc Jason Gunthorpe <[email protected]>
Cc Jonathan Corbet <[email protected]>
Cc Krzysztof Kozlowski <[email protected]>
Cc Marc Rutland <[email protected]>
Cc Paolo Bonzini <[email protected]>
Cc Pasha Tatashin <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Pratyush Yadav <[email protected]>
Cc Rob Herring <[email protected]>
Cc Saravana Kannan <[email protected]>
Cc Stanislav Kinsburskii <[email protected]>
Cc Steven Rostedt <[email protected]>
Cc Thomas Gleinxer <[email protected]>
Cc Thomas Lendacky <[email protected]>
Cc Will Deacon <[email protected]>

---

 Documentation/core-api/kho/bindings/memblock/memblock.yaml    |   39 +++++++++
 Documentation/core-api/kho/bindings/memblock/reserve-mem.yaml |   40 ++++++++++
 MAINTAINERS                                                   |    1 
 3 files changed, 80 insertions(+)
Documentation/core-api/kho/bindings/memblock/memblock.yaml new file +39 -0
new file mode 100644
@@ -0,0 +1,39 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+title: Memblock reserved memory
+
+maintainers:
+  - Mike Rapoport <[email protected]>
+
+description: |
+  Memblock can serialize its current memory reservations created with
+  reserve_mem command line option across kexec through KHO.
+  The post-KHO kernel can then consume these reservations and they are
+  guaranteed to have the same physical address.
+
+properties:
+  compatible:
+    enum:
+      - reserve-mem-v1
+
+patternProperties:
+  "$[0-9a-f_]+^":
+    $ref: reserve-mem.yaml#
+    description: reserved memory regions
+
+required:
+  - compatible
+
+additionalProperties: false
+
+examples:
+  - |
+    memblock {
+      compatible = "memblock-v1";
+      n1 {
+        compatible = "reserve-mem-v1";
+        start = <0xc06b 0x4000000>;
+        size = <0x04 0x00>;
+      };
+    };
Documentation/core-api/kho/bindings/memblock/reserve-mem.yaml new file +40 -0
new file mode 100644
@@ -0,0 +1,40 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+title: Memblock reserved memory regions
+
+maintainers:
+  - Mike Rapoport <[email protected]>
+
+description: |
+  Memblock can serialize its current memory reservations created with
+  reserve_mem command line option across kexec through KHO.
+  This object describes each such region.
+
+properties:
+  compatible:
+    enum:
+      - reserve-mem-v1
+
+  start:
+    description: |
+      physical address (u64) of the reserved memory region.
+
+  size:
+    description: |
+      size (u64) of the reserved memory region.
+
+required:
+  - compatible
+  - start
+  - size
+
+additionalProperties: false
+
+examples:
+  - |
+    n1 {
+      compatible = "reserve-mem-v1";
+      start = <0xc06b 0x4000000>;
+      size = <0x04 0x00>;
+    };
MAINTAINERS renamed from MAINTAINERS~documentation-kho-add-memblock-bindings +1 -0
@@ -15448,6 +15448,7 @@ M:	Mike Rapoport <[email protected]>
 L:	[email protected]
 S:	Maintained
 F:	Documentation/core-api/boot-time-mm.rst
+F:	Documentation/core-api/kho/bindings/memblock/*
 F:	include/linux/memblock.h
 F:	mm/memblock.c
 F:	mm/mm_init.c

_

Patches currently in -mm which might be from [email protected] are