arm-trusted-firmware/lib
Chris Kay 742ca2307f feat(amu): enable per-core AMU auxiliary counters
This change makes AMU auxiliary counters configurable on a per-core
basis, controlled by `ENABLE_AMU_AUXILIARY_COUNTERS`.

Auxiliary counters can be described via the `HW_CONFIG` device tree if
the `ENABLE_AMU_FCONF` build option is enabled, or the platform must
otherwise implement the `plat_amu_topology` function.

A new phandle property for `cpu` nodes (`amu`) has been introduced to
the `HW_CONFIG` specification to allow CPUs to describe the view of
their own AMU:

```
cpu0: cpu@0 {
    ...

    amu = <&cpu0_amu>;
};
```

Multiple cores may share an `amu` handle if they implement the
same set of auxiliary counters.

AMU counters are described for one or more AMUs through the use of a new
`amus` node:

```
amus {
    cpu0_amu: amu-0 {
        #address-cells = <1>;
        #size-cells = <0>;

        counter@0 {
            reg = <0>;

            enable-at-el3;
        };

        counter@n {
            reg = <n>;

            ...
        };
    };
};
```

This structure describes the **auxiliary** (group 1) AMU counters.
Architected counters have architecturally-defined behaviour, and as
such do not require DTB entries.

These `counter` nodes support two properties:

- The `reg` property represents the counter register index.
- The presence of the `enable-at-el3` property determines whether
  the firmware should enable the counter prior to exiting EL3.

Change-Id: Ie43aee010518c5725a3b338a4899b0857caf4c28
Signed-off-by: Chris Kay <chris.kay@arm.com>
2021-10-26 12:15:33 +01:00
..
aarch32 Add PIE support for AARCH32 2021-04-21 15:05:57 +02:00
aarch64 feat(rme): run BL2 in root world when FEAT_RME is enabled 2021-10-04 21:13:20 +02:00
bl_aux_params Introduce lightweight BL platform parameter library 2019-07-18 16:42:40 -07:00
compiler-rt compiler_rt: Import popcountdi2.c and popcountsi2.c files 2020-01-20 11:32:59 +01:00
coreboot Update in coreboot_get_memory_type API to include size as well 2020-10-16 02:23:35 +05:30
cpus fix(cpu): correct Demeter CPU name 2021-10-21 20:12:28 +02:00
debugfs DebugFS: Check channel index before calling clone function 2021-01-21 15:25:23 +00:00
el3_runtime feat(rme): add context management changes for FEAT_RME 2021-10-05 18:41:35 +02:00
extensions feat(amu): enable per-core AMU auxiliary counters 2021-10-26 12:15:33 +01:00
fconf feat(amu): enable per-core AMU auxiliary counters 2021-10-26 12:15:33 +01:00
gpt_rme refactor(gpt): productize and refactor GPT library 2021-10-05 16:24:57 -05:00
libc libc: memset: Fix MISRA issues 2021-02-24 09:33:59 +00:00
libfdt libfdt: Upgrade libfdt source files 2020-10-02 12:15:48 +00:00
locks locks: bakery: use is_dcache_enabled() helper 2020-04-07 09:33:13 +02:00
optee fix(lib/optee): correct signedness comparison 2021-10-07 18:08:01 +02:00
pmf Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
psci feat(psci): require validate_power_state to expose CPU_SUSPEND 2021-10-15 14:13:54 +02:00
romlib Use abspath to dereference $BUILD_BASE 2020-08-04 18:02:02 +01:00
semihosting MISRA cleanup in mem_region and semihosting files 2020-08-07 19:11:23 -05:00
stack_protector Disable stack protection explicitly 2019-10-20 14:59:09 -04:00
utils MISRA cleanup in mem_region and semihosting files 2020-08-07 19:11:23 -05:00
xlat_mpu fvp_r: load, auth, and transfer from BL1 to BL33 2021-09-30 17:07:11 +01:00
xlat_tables chore: fvp_r: Initial No-EL3 and MPU Implementation 2021-09-30 17:05:59 +01:00
xlat_tables_v2 Merge changes from topic "za/feat_rme" into integration 2021-10-06 19:44:28 +02:00
zlib feat(sw_crc32): add software CRC32 support 2021-08-02 17:15:41 +01:00