arm-trusted-firmware/plat/arm/board/tc
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
..
fdts feat(tc): move flash device to own node 2024-10-11 09:45:36 +02:00
include refactor(tc): add plat_rse_comms_init 2025-02-12 10:11:49 +01:00
nv_counter_test.c refactor(tc): add plat_rse_comms_init 2025-02-12 10:11:49 +01:00
plat_def_fip_uuid.h refactor(tc): change all occurrences of RSS to RSE 2024-04-22 15:44:38 +02:00
plat_tc_mbedtls_config.h refactor(mbedtls): rename default mbedtls confs 2024-12-09 15:59:45 +00:00
platform.mk perf(mpmm): greatly simplify MPMM enablement 2025-02-25 08:50:45 +00:00
platform_test.mk refactor(tc): add plat_rse_comms_init 2025-02-12 10:11:49 +01:00
region_defs.h fix(tc): rename macro to match PSA spec 2023-07-05 10:37:13 -05:00
rotpk_test.c refactor(tc): add plat_rse_comms_init 2025-02-12 10:11:49 +01:00
rse_ap_test_stubs.c refactor(tc): change all occurrences of RSS to RSE 2024-04-22 15:44:38 +02:00
rse_ap_tests.c refactor(tc): add plat_rse_comms_init 2025-02-12 10:11:49 +01:00
rse_ap_testsuites.c refactor(tc): change all occurrences of RSS to RSE 2024-04-22 15:44:38 +02:00
rse_ap_testsuites.h refactor(tc): change all occurrences of RSS to RSE 2024-04-22 15:44:38 +02:00
tc_bl1_dpe.c refactor(tc): add plat_rse_comms_init 2025-02-12 10:11:49 +01:00
tc_bl1_measured_boot.c refactor(tc): add plat_rse_comms_init 2025-02-12 10:11:49 +01:00
tc_bl1_setup.c fix(tc): add stubs for soc_css_init functions 2024-07-03 12:09:11 +01:00
tc_bl2_dpe.c refactor(tc): add plat_rse_comms_init 2025-02-12 10:11:49 +01:00
tc_bl2_measured_boot.c refactor(tc): add plat_rse_comms_init 2025-02-12 10:11:49 +01:00
tc_bl2_setup.c feat(tc): populate HW_CONFIG in BL31 2021-09-07 14:37:53 +01:00
tc_bl31_setup.c refactor(tc): add plat_rse_comms_init 2025-02-12 10:11:49 +01:00
tc_common_dpe.c refactor(tc): change all occurrences of RSS to RSE 2024-04-22 15:44:38 +02:00
tc_common_measured_boot.c refactor(tc): change all occurrences of RSS to RSE 2024-04-22 15:44:38 +02:00
tc_dpe.h feat(tc): provide target_locality info of AP FW components 2024-07-03 15:03:20 +02:00
tc_err.c feat(plat/arm): Introduce TC1 platform 2021-08-11 11:36:50 +01:00
tc_interconnect.c feat(plat/arm): Introduce TC1 platform 2021-08-11 11:36:50 +01:00
tc_plat.c fix(tc): map mem_protect flash region 2024-12-11 10:55:20 +00:00
tc_rng_trap.c feat(tc): enable trng 2025-02-04 10:26:00 +00:00
tc_rse_comms.c refactor(arm): switch to rse_mbx_init 2025-02-12 10:11:49 +01:00
tc_security.c fix(tc): don't enable TZC on TC3 2024-07-04 14:35:04 +01:00
tc_stack_protector.c feat(tc): enable stack protector 2025-01-31 13:45:28 +01:00
tc_topology.c feat(plat): add platform API that gets cluster ID 2024-05-09 10:00:16 -05:00
tc_trng.c feat(tc): get entropy with PSA Crypto API 2025-02-04 10:28:18 +00:00
tc_trusted_boot.c feat(plat/arm): Introduce TC1 platform 2021-08-11 11:36:50 +01:00