diff options
| author | Yu Chien Peter Lin <[email protected]> | 2023-11-30 20:42:05 +0800 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2023-12-06 17:53:45 +0530 |
| commit | 1b9e743c3d5de93e2422c0a0a6db269d862aab9a (patch) | |
| tree | 67bc0b8a7171590147664799accefc7a528dd429 /lib/utils | |
| parent | effd89aa055c7cc6a167f55d333c2b7ba035614b (diff) | |
platform: andes: Add Andes custom PMU support
Before the ratification of Sscofpmf, the Andes PMU extension
was designed to support the sampling and filtering with hardware
performance counters (zihpm), it works with the current SBI PMU
extension and Linux SBI PMU driver.
We implement 1) the PMU device callbacks that update the
corresponding bits on custom CSRs, 2) extentions_init() to detect
the hardware support of Andes PMU and initialize the per-hart
PMU related CSR, and 3) pmu_init() to register PMU device and
populate event mappings.
Also define a andes_pmu_setup() function which is in preparation
for adding default PMU mappings in andes_hpm.h
Signed-off-by: Yu Chien Peter Lin <[email protected]>
Reviewed-by: Leo Yu-Chi Liang <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib/utils')
0 files changed, 0 insertions, 0 deletions
