diff options
author | Andrew Jones <ajones@ventanamicro.com> | 2023-02-27 13:31:03 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2023-02-27 17:15:28 +0300 |
commit | c9917b610871e4f9a0142e5c37c2b698177c3291 (patch) | |
tree | 5685156890cc43ed70304ed61080e251a299fd87 /docs | |
parent | 73623a0acac7f62646757cdd5a03b325eba3e0c9 (diff) | |
download | opensbi-c9917b610871e4f9a0142e5c37c2b698177c3291.tar.xz |
lib: sbi: Add system_suspend_allowed domain property
Only privileged domains should be allowed to suspend the entire
system. Give the root domain this property by default and allow
other domains to be given the property by specifying it in the
DT.
Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/domain_support.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/domain_support.md b/docs/domain_support.md index 2a9ca3d..039f262 100644 --- a/docs/domain_support.md +++ b/docs/domain_support.md @@ -52,6 +52,7 @@ has following details: * **next_mode** - Privilege mode of the next booting stage for this domain. This can be either S-mode or U-mode. * **system_reset_allowed** - Is domain allowed to reset the system? +* **system_suspend_allowed** - Is domain allowed to suspend the system? The memory regions represented by **regions** in **struct sbi_domain** have following additional constraints to align with RISC-V PMP requirements: @@ -91,6 +92,7 @@ following manner: * **next_mode** - Next booting stage mode in coldboot HART scratch space is the next mode for the ROOT domain * **system_reset_allowed** - The ROOT domain is allowed to reset the system +* **system_suspend_allowed** - The ROOT domain is allowed to suspend the system Domain Effects -------------- @@ -195,6 +197,8 @@ The DT properties of a domain instance DT node are as follows: stage mode of coldboot HART** is used as default value. * **system-reset-allowed** (Optional) - A boolean flag representing whether the domain instance is allowed to do system reset. +* **system-suspend-allowed** (Optional) - A boolean flag representing + whether the domain instance is allowed to do system suspend. ### Assigning HART To Domain Instance @@ -260,6 +264,7 @@ be done: next-addr = <0x0 0x80100000>; next-mode = <0x0>; system-reset-allowed; + system-suspend-allowed; }; udomain: untrusted-domain { |