Add Andes PMU extension support
cover Add Andes PMU extension support
This patch series enables perf tool to utilize Andes PMU extension via PMU SBI calls, provides PMU device callbacks for event sampling and mode filtering.
We also provide a PMU node example of AX45MP in the last patch.
The OpenSBI and Linux patches can be found on Andes Technology GitHub
- https://github.com/andestech/opensbi/commits/andes-pmu-support
- https://github.com/andestech/linux/commits/andes-pmu-support
Yu Chien Peter Lin (6):
sbi: sbi_pmu: Add hw_counter_filter_mode() to pmu device
platform: include: andes45: Add PMU related CSR defines
platform: andes: Add Andes custom PMU support
platform: andes: Enable Andes PMU for AE350
platform: rzfive: Enable Andes PMU for RZ/Five
docs: pmu: Add Andes PMU node example
docs/pmu_support.md | 87 ++++++++++++++++++++++ include/sbi/sbi_pmu.h | 6 ++ lib/sbi/sbi_pmu.c | 5 +- platform/generic/Kconfig | 2 + platform/generic/andes/Kconfig | 4 + platform/generic/andes/ae350.c | 2 + platform/generic/andes/andes_pmu.c | 85 +++++++++++++++++++++ platform/generic/andes/objects.mk | 1 + platform/generic/include/andes/andes45.h | 26 +++++++ platform/generic/include/andes/andes_pmu.h | 12 +++ platform/generic/renesas/rzfive/rzfive.c | 2 + 11 files changed, 231 insertions(+), 1 deletion(-) create mode 100644 platform/generic/andes/andes_pmu.c create mode 100644 platform/generic/include/andes/andes_pmu.h
Signature · 1 line
2.34.1
Lad
cover Add Andes PMU extension support
Hi Lin-san,
Quoted 20 lines · On Wed, Sep 6, 2023 at 12:17?PM Yu Chien Peter Lin <[email protected]>…
This patch series enables perf tool to utilize Andes PMU extension via PMU SBI calls, provides PMU device callbacks for event sampling and mode filtering.
We also provide a PMU node example of AX45MP in the last patch.
The OpenSBI and Linux patches can be found on Andes Technology GitHub
- https://github.com/andestech/opensbi/commits/andes-pmu-support
- https://github.com/andestech/linux/commits/andes-pmu-supportYu Chien Peter Lin (6):
sbi:sbi_pmu: Addhw_counter_filter_mode()to pmu device
platform: include: andes45: Add PMU related CSR defines
platform: andes: Add Andes custom PMU support
platform: andes: Enable Andes PMU for AE350
platform: rzfive: Enable Andes PMU for RZ/Five
docs: pmu: Add Andes PMU node example
Quoted 15 lines
docs/pmu_support.md | 87 ++++++++++++++++++++++ include/sbi/sbi_pmu.h | 6 ++ lib/sbi/sbi_pmu.c | 5 +- platform/generic/Kconfig | 2 + platform/generic/andes/Kconfig | 4 + platform/generic/andes/ae350.c | 2 + platform/generic/andes/andes_pmu.c | 85 +++++++++++++++++++++ platform/generic/andes/objects.mk | 1 + platform/generic/include/andes/andes45.h | 26 +++++++ platform/generic/include/andes/andes_pmu.h | 12 +++ platform/generic/renesas/rzfive/rzfive.c | 2 + 11 files changed, 231 insertions(+), 1 deletion(-) create mode 100644 platform/generic/andes/andes_pmu.c create mode 100644 platform/generic/include/andes/andes_pmu.h
I tried these patches on the RZ/Five SMARC EVK and I am seeing kernel freeze when trying to quit perf.
Cheers,
Prabhakar
cover Add Andes PMU extension support
Quoted 39 lines · Prabhakar
Hi Lin-san,
Quoted 20 lines · On Wed, Sep 6, 2023 at 12:17?PM Yu Chien Peter Lin <[email protected]>…
This patch series enables perf tool to utilize Andes PMU extension via PMU SBI calls, provides PMU device callbacks for event sampling and mode filtering.
We also provide a PMU node example of AX45MP in the last patch.
The OpenSBI and Linux patches can be found on Andes Technology GitHub
- https://github.com/andestech/opensbi/commits/andes-pmu-support
- https://github.com/andestech/linux/commits/andes-pmu-supportYu Chien Peter Lin (6):
sbi:sbi_pmu: Addhw_counter_filter_mode()to pmu device
platform: include: andes45: Add PMU related CSR defines
platform: andes: Add Andes custom PMU support
platform: andes: Enable Andes PMU for AE350
platform: rzfive: Enable Andes PMU for RZ/Five
docs: pmu: Add Andes PMU node exampleQuoted 15 lines
docs/pmu_support.md | 87 ++++++++++++++++++++++ include/sbi/sbi_pmu.h | 6 ++ lib/sbi/sbi_pmu.c | 5 +- platform/generic/Kconfig | 2 + platform/generic/andes/Kconfig | 4 + platform/generic/andes/ae350.c | 2 + platform/generic/andes/andes_pmu.c | 85 +++++++++++++++++++++ platform/generic/andes/objects.mk | 1 + platform/generic/include/andes/andes45.h | 26 +++++++ platform/generic/include/andes/andes_pmu.h | 12 +++ platform/generic/renesas/rzfive/rzfive.c | 2 + 11 files changed, 231 insertions(+), 1 deletion(-) create mode 100644 platform/generic/andes/andes_pmu.c create mode 100644 platform/generic/include/andes/andes_pmu.h
Quoted 2 lines
I tried these patches on the RZ/Five SMARC EVK and I am seeing kernel freeze when trying to quit perf.
Thanks for reporting, this happens on my Tinker-V board as well. I will look into this issue.
Thanks,
Peter Lin
Quoted 2 lines
Cheers,
Prabhakar