arm-trusted-firmware/docs/components
Boyan Karatotev 2590e819eb perf(mpmm): greatly simplify MPMM enablement
MPMM is a core-specific microarchitectural feature. It has been present
in every Arm core since the Cortex-A510 and has been implemented in
exactly the same way. Despite that, it is enabled more like an
architectural feature with a top level enable flag. This utilised the
identical implementation.

This duality has left MPMM in an awkward place, where its enablement
should be generic, like an architectural feature, but since it is not,
it should also be core-specific if it ever changes. One choice to do
this has been through the device tree.

This has worked just fine so far, however, recent implementations expose
a weakness in that this is rather slow - the device tree has to be read,
there's a long call stack of functions with many branches, and system
registers are read. In the hot path of PSCI CPU powerdown, this has a
significant and measurable impact. Besides it being a rather large
amount of code that is difficult to understand.

Since MPMM is a microarchitectural feature, its correct placement is in
the reset function. The essence of the current enablement is to write
CPUPPMCR_EL3.MPMM_EN if CPUPPMCR_EL3.MPMMPINCTL == 0. Replacing the C
enablement with an assembly macro in each CPU's reset function achieves
the same effect with just a single close branch and a grand total of 6
instructions (versus the old 2 branches and 32 instructions).

Having done this, the device tree entry becomes redundant. Should a core
that doesn't support MPMM arise, this can cleanly be handled in the
reset function. As such, the whole ENABLE_MPMM_FCONF and platform hooks
mechanisms become obsolete and are removed.

Change-Id: I1d0475b21a1625bb3519f513ba109284f973ffdf
Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com>
2025-02-25 08:50:45 +00:00
..
fconf perf(mpmm): greatly simplify MPMM enablement 2025-02-25 08:50:45 +00:00
measured_boot feat(fvp): add Event Log maximum size property in DT 2023-04-18 17:13:17 +02:00
spd feat(optee): add loading OP-TEE image via an SMC 2023-01-31 10:38:16 -08:00
activity-monitors.rst refactor(amu): unify ENABLE_AMU and ENABLE_FEAT_AMUv1 2023-03-27 19:36:00 +01:00
arm-sip-service.rst refactor(docs): added versioning to smccc services 2024-05-06 09:42:11 -05:00
context-management-library.rst docs(context-mgmt): add Root-Context documentation 2024-11-15 10:44:39 +00:00
cot-binding.rst docs: fix typos in cot binding 2024-08-29 17:31:35 +01:00
debugfs-design.rst Fix broken links to various sections across docs 2020-08-03 09:55:04 -05:00
el3-spmc.rst docs(spm): add design documentation 2022-10-27 11:39:53 +01:00
exception-handling.rst Fix broken links in docs 2020-08-06 12:36:17 -05:00
ffa-manifest-binding.rst docs: fix ff-a manifest binding document 2024-09-18 15:10:13 -05:00
firmware-update.rst feat(fwu): update the URL links for the FWU specification 2024-03-01 14:19:56 +05:30
granule-protection-tables-design.rst feat(gpt): statically allocate bitlocks array 2025-02-11 15:10:49 +00:00
index.rst docs(context-mgmt): add documentation for context management library 2024-05-07 17:52:14 +01:00
mpmm.rst perf(mpmm): greatly simplify MPMM enablement 2025-02-25 08:50:45 +00:00
platform-interrupt-controller-API.rst fix(gic600): workaround for Part 1 of GIC600 erratum 2384374 2024-03-06 14:16:35 -06:00
ras.rst docs(ras): update RAS documentation 2023-11-01 17:46:47 +00:00
realm-management-extension.rst docs: change FVP argument in RME configuration 2024-02-06 11:00:54 +00:00
rmm-el3-comms-spec.rst feat(rmm): add PCIe IO info to Boot manifest 2025-02-11 15:10:49 +00:00
romlib-design.rst fix(romlib): wrap indirectly included functions 2024-08-15 10:49:07 -05:00
sdei.rst docs(sdei): provide security guidelines when using SDEI 2024-02-15 15:37:00 +00:00
secure-partition-manager-mm.rst docs(spm-mm): remove reference to SEL2 SPMC 2023-10-31 11:19:41 +01:00
secure-partition-manager.rst fix(mte): remove deprecated CTX_INCLUDE_MTE_REGS/FEAT_MTE 2024-10-24 10:00:19 -05:00
ven-el3-debugfs.rst refactor(smccc): move debugfs to vendor el3 calls 2024-05-06 09:42:11 -05:00
ven-el3-service.rst refactor(docs): added versioning to smccc services 2024-05-06 09:42:11 -05:00
xlat-tables-lib-v2-design.rst chore: fvp_r: Initial No-EL3 and MPU Implementation 2021-09-30 17:05:59 +01:00