arm-trusted-firmware/docs/getting_started
Wing Li 606b743007 feat(psci): add support for OS-initiated mode
This patch adds a `psci_validate_state_coordination` function that is
called by `psci_cpu_suspend_start` in OS-initiated mode.

This function validates the request per sections 4.2.3.2, 5.4.5, and 6.3
of the PSCI spec (DEN0022D.b):
- The requested power states are consistent with the system's state
- The calling core is the last running core at the requested power level

This function differs from `psci_do_state_coordination` in that:
- The `psci_req_local_pwr_states` map is not modified if the request
  were to be denied
- The `state_info` argument is never modified since it contains the
  power states requested by the calling OS

This is conditionally compiled into the build depending on the value of
the `PSCI_OS_INIT_MODE` build option.

Change-Id: I667041c842d2856e9d128c98db4d5ae4e4552df3
Signed-off-by: Wing Li <wingers@google.com>
2023-03-20 22:20:35 -07:00
..
build-internals.rst build: restrict usage of CTX_INCLUDE_EL2_REGS 2022-12-01 12:04:40 +02:00
build-options.rst build(psci): add build option for OS-initiated mode 2023-03-20 22:20:35 -07:00
docs-build.rst Merge changes If90a18ee,I02e88f8c,Iea447fb5,Ie0570481,Ieeb14cfc into integration 2022-11-16 16:18:54 +01:00
image-terminology.rst docs(build): clarify getting started section 2022-11-16 14:06:48 +00:00
index.rst build: restrict usage of CTX_INCLUDE_EL2_REGS 2022-12-01 12:04:40 +02:00
initial-build.rst docs(build): clarify getting started section 2022-11-16 14:06:48 +00:00
porting-guide.rst feat(psci): add support for OS-initiated mode 2023-03-20 22:20:35 -07:00
prerequisites.rst fix(docs): make required compiler version == rather than >= 2023-02-13 15:57:25 +00:00
psci-lib-integration-guide.rst docs: document do_panic() and panic() helper functions 2022-11-08 14:09:33 +00:00
rt-svc-writers-guide.rst docs(rme): add description of TF-A changes for RME 2021-11-15 22:20:07 +01:00
tools-build.rst docs(build): clarify getting started section 2022-11-16 14:06:48 +00:00