Skip to contentSkip to conversation

lib: utils: fdt_domain: add root-regions-inheritance policy

PATCH Superseded Yu-Chien Peter Lin 1 participant 1 message May 15

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 lib: utils: fdt_domain: add root-regions-inheritance policy

Introduce root-regions-inheritance DT property to control copying of root domain memregions. Support 'all' and 'm-only' modes, always inheriting firmware and M-only regions; behavior matches existing policy when property is absent.

---
Changes v1->v2:
- Addressed feedback from Anup: https://lists.infradead.org/pipermail/opensbi/2026-May/009850.html

---
 docs/domain_support.md     |  7 ++++++
 lib/utils/fdt/fdt_domain.c | 49 ++++++++++++++++++++++++++++----------
 2 files changed, 43 insertions(+), 13 deletions(-)
docs/domain_support.md +7 -0
index c01e445f..e267a9f7 100644
@@ -159,6 +159,13 @@ The DT properties of a domain instance DT node are as follows:
 * **possible-harts** (Optional) - The list of CPU DT node phandles for the
   the domain instance. This list represents the possible HARTs of the
   domain instance.
+* **root-regions-inheritance** (Optional) - A string property controlling
+  how memory regions are inherited from **the ROOT domain**, which are then
+  overlaid with regions specified in the **regions** property for additional
+  restrictions. The allowed values are:
+  * "all" - inherit all memory regions from **the ROOT domain**
+  * "m-only" - inherit M-mode only memory regions from **the ROOT domain**
+  If this DT property is absent, behavior is the same as "m-only".
 * **regions** (Optional) - The list of domain memory region DT node phandle
   and access permissions for the domain instance. Each list entry is a pair
   of DT node phandle and access permissions. The access permissions are
lib/utils/fdt/fdt_domain.c +36 -13

81 lines not on this page · raw message

Signature · 7 lines
2.34.1


-- 
opensbi mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/opensbi