arm-trusted-firmware/lib/extensions
Boyan Karatotev c73686a11c feat(pmu): introduce pmuv3 lib/extensions folder
The enablement code for the PMU is scattered and difficult to track
down. Factor out the feature into its own lib/extensions folder and
consolidate the implementation. Treat it is as an architecturally
mandatory feature as it is currently.

Additionally, do some cleanup on AArch64. Setting overflow bits in
PMCR_EL0 is irrelevant for firmware so don't do it. Then delay the PMU
initialisation until the context management stage which simplifies the
early environment assembly. One side effect is that the PMU might count
before this happens so reset all counters to 0 to prevent any leakage.

Finally, add an enable to manage_extensions_realm() as realm world uses
the pmu. This introduces the HPMN fixup to realm world.

Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com>
Change-Id: Ie13a8625820ecc5fbfa467dc6ca18025bf6a9cd3
2023-06-29 09:59:06 +01:00
..
amu refactor(amu): use new AMU feature check routines 2023-03-27 19:36:15 +01:00
brbe refactor(brbe): enable FEAT_BRBE for FEAT_STATE_CHECKED 2023-02-27 18:04:14 +00:00
mpam refactor(mpam): enable FEAT_MPAM for FEAT_STATE_CHECKED 2023-03-20 13:37:36 +00:00
mtpmu Add support for FEAT_MTPMU for Armv8.6 2020-12-11 12:49:20 +00:00
pauth chore(pauth): remove redundant pauth_disable_el3() call 2023-04-28 08:09:14 +01:00
pmuv3 feat(pmu): introduce pmuv3 lib/extensions folder 2023-06-29 09:59:06 +01:00
ras lib/extensions/ras: fix bug of binary search 2021-01-14 09:27:16 +08:00
sme refactor(cm): make SVE and SME build dependencies logical 2023-05-05 13:16:18 +01:00
spe refactor(spe): enable FEAT_SPE for FEAT_STATE_CHECKED 2023-03-20 13:37:36 +00:00
sve feat(cpufeat): enable FEAT_SVE for FEAT_STATE_CHECKED 2023-03-28 17:19:13 +02:00
sys_reg_trace refactor(cpufeat): enable SYS_REG_TRACE for FEAT_STATE_CHECKED 2023-03-22 13:33:22 +00:00
trbe refactor(trbe): enable FEAT_TRBE for FEAT_STATE_CHECKED 2023-02-27 18:04:14 +00:00
trf refactor(trf): enable FEAT_TRF for FEAT_STATE_CHECKED 2023-02-27 18:04:14 +00:00