Skip to content

Support Andes PMU extension

Yu Chien Peter Lin linux-arm-kernel linux-perf-users linux-riscv lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4riscv: errata: Rename defines for Andesarch/riscv/errata/andes/errata.c arch/riscv/include/asm/errata_list.h arch/riscv/include/asm/vendorid_list.h +1 more+9 -90 replies
2/4irqchip/riscv-intc: Support large non-standard hwirq numberdrivers/irqchip/irq-riscv-intc.c+4 -64 replies
3/4riscv: errata: Add Andes PMU errataarch/riscv/Kconfig.errata arch/riscv/errata/andes/errata.c arch/riscv/include/asm/errata_list.h +1 more+111 -106 replies
4/4riscv: andes: Support symbolic FW and HW raw eventstools/perf/pmu-events/arch/riscv/andes/ax45/firmware.json tools/perf/pmu-events/arch/riscv/andes/ax45/instructions.json tools/perf/pmu-events/arch/riscv/andes/ax45/memory.json +2 more+330 -00 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchCharles Ci-Jyun WuLeo Yu-Chi Liang
1/4R-b R-b
2/4R-b R-b
3/4R-b R-b
4/4R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] Support Andes PMU extension

This patch series introduces the Andes PMU errata, which adds support for perf sampling and mode filtering with the Andes PMU extension.

The custom PMU extension serves the same purpose as Sscofpmf. Its non-standard local interrupt is assigned to bit 18 in the custom S-mode local interrupt pending CSR (slip), while the interrupt cause is (256 + 18).

This series is dependent on the series from Prabhakar,
- https://patchwork.kernel.org/project/linux-riscv/cover/[email protected]/

The feature needs the PMU device callbacks in OpenSBI.
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

The PMU device tree node of AX45MP:
- https://github.com/andestech/opensbi/blob/andes-pmu-support/docs/pmu_support.md#example-3

Tested hardware:
- ASUS Tinker-V (RZ/Five, AX45MP single core)
- Andes AE350 (AX45MP quad core)

Locus Wei-Han Chen (1):
riscv: andes: Support symbolic FW and HW raw events

Yu Chien Peter Lin (3):
riscv: errata: Rename defines for Andes irqchip/riscv-intc: Support large non-standard hwirq number
riscv: errata: Add Andes PMU errata

 arch/riscv/Kconfig.errata                     |  13 ++
 arch/riscv/errata/andes/errata.c              |  55 +++++++-
 arch/riscv/include/asm/errata_list.h          |  45 ++++++-
 arch/riscv/include/asm/vendorid_list.h        |   2 +-
 arch/riscv/kernel/alternative.c               |   2 +-
 drivers/irqchip/irq-riscv-intc.c              |  10 +-
 drivers/perf/riscv_pmu_sbi.c                  |  20 ++-
 .../arch/riscv/andes/ax45/firmware.json       |  68 ++++++++++
 .../arch/riscv/andes/ax45/instructions.json   | 127 ++++++++++++++++++
 .../arch/riscv/andes/ax45/memory.json         |  57 ++++++++
 .../arch/riscv/andes/ax45/microarch.json      |  77 +++++++++++
 tools/perf/pmu-events/arch/riscv/mapfile.csv  |   1 +
 12 files changed, 453 insertions(+), 24 deletions(-)
 create mode 100644 tools/perf/pmu-events/arch/riscv/andes/ax45/firmware.json
 create mode 100644 tools/perf/pmu-events/arch/riscv/andes/ax45/instructions.json
 create mode 100644 tools/perf/pmu-events/arch/riscv/andes/ax45/memory.json
 create mode 100644 tools/perf/pmu-events/arch/riscv/andes/ax45/microarch.json
Signature · 7 lines
2.34.1


_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv