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 m-only policy when property is absent.

Signed-off-by: Yu-Chien Peter Lin <peter.lin@sifive.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20260516072906.1427203-1-peter.lin@sifive.com
Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
Yu-Chien Peter Lin
2026-05-16 15:29:06 +08:00
committed by Anup Patel
parent 22d7e99ed2
commit f36acaeb80
2 changed files with 47 additions and 13 deletions
+7
View File
@@ -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