Skip to content

Support Andes PMU extension

Yu Chien Peter Lin linux-devicetree linux-perf-users linux-renesas-soc linux-riscv linux-sunxi lkml 16 versions – Applied

Status from this message: The following commit has been merged into the irq/msi branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v9 Latest10 patches 9 repliesApplied 10/10
  2. v810 patches 4 repliesSuperseded
  3. v716 patches 19 repliesSuperseded
Earlier versions · 13
VersionPostedPatchesRepliesStatus
v616 patches2 repliesSuperseded
v4 posting 3/30 of 15 patches0 repliesSuperseded
v516 patches13 repliesSuperseded
v4 posting 2/315 patches0 repliesSuperseded
v3 posting 4/40 of 15 patches0 repliesSuperseded
v4 posting 1/313 patches35 repliesSuperseded
v3 posting 3/415 patches0 repliesSuperseded
v2 posting 3/30 of 11 patches0 repliesSuperseded
v3 posting 2/413 patches12 repliesSuperseded
v3 posting 1/45 of 13 patches2 repliesSuperseded
v2 posting 2/310 patches22 repliesSuperseded
v2 posting 1/311 patches0 repliesSuperseded
v10 of 6 patches0 repliesSuperseded

Patches in v9 All 10 applied

#Subject and filesSizeRepliesApplied
1/10riscv: 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 repliesApplied
2/10irqchip/riscv-intc: Allow large non-standard interrupt numberdrivers/irqchip/irq-riscv-intc.c+19 -71 replyApplied
3/10irqchip/riscv-intc: Introduce Andes hart-level interrupt controllerdrivers/irqchip/irq-riscv-intc.c include/linux/soc/andes/irq.h+69 -76 repliesApplied
4/10dt-bindings: riscv: Add Andes interrupt controller compatible stringDocumentation/devicetree/bindings/riscv/cpus.yaml+5 -10 repliesApplied
5/10riscv: dts: renesas: r9a07g043f: Update compatible string to use Andes INTCarch/riscv/boot/dts/renesas/r9a07g043f.dtsi+1 -11 replyApplied
6/10perf: RISC-V: Eliminate redundant interrupt enable/disable operationsdrivers/perf/riscv_pmu_sbi.c+0 -20 repliesApplied
7/10perf: RISC-V: Introduce Andes PMU to support perf event samplingarch/riscv/include/asm/errata_list.h arch/riscv/include/asm/hwcap.h arch/riscv/kernel/cpufeature.c +2 more+48 -120 repliesApplied
8/10dt-bindings: riscv: Add Andes PMU extension descriptionDocumentation/devicetree/bindings/riscv/extensions.yaml+7 -00 repliesApplied
9/10riscv: dts: renesas: Add Andes PMU extension for r9a07g043farch/riscv/boot/dts/renesas/r9a07g043f.dtsi+1 -11 replyApplied
10/10riscv: andes: Support specifying symbolic firmware and hardware 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 repliesApplied

Reviews trailers per patch

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

PatchCharles Ci-Jyun WuLeo Yu-Chi LiangConor DooleyLad PrabhakarRandolphAnup PatelAtish PatraGeert UytterhoevenYu Chien Peter LinIan RogersThomas Gleixner
1/10R-b R-b A-b R-b
2/10R-b R-b R-b R-b
3/10R-b R-b R-b
4/10A-b R-b
5/10R-b T-b R-b A-b
6/10R-b
7/10R-b R-b R-b T-b
8/10A-b R-b
9/10A-b R-b T-b R-b A-b
10/10R-b R-b T-b A-b R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 11 reviewers.

Read the v9 thread

Cover letter [PATCH v9 00/10] Support Andes PMU extension

Hi All,

This patch series introduces the Andes PMU extension, which serves the same purpose as Sscofpmf and Smcntrpmf. Its non-standard local interrupt is assigned to bit 18 in the custom S-mode local interrupt enable and pending registers (slie/slip), while the interrupt cause is (256 + 18).

The series can be found on Andes Technology GitHub:
- https://github.com/andestech/linux/commits/andes-pmu-support-v9

The PMU device tree node used on AX45MP:
- https://github.com/riscv-software-src/opensbi/blob/master/docs/pmu_support.md#example-3

Locus Wei-Han Chen (1):
riscv: andes: Support specifying symbolic firmware and hardware raw
events

Yu Chien Peter Lin (9):
riscv: errata: Rename defines for Andes irqchip/riscv-intc: Allow large non-standard interrupt number irqchip/riscv-intc: Introduce Andes hart-level interrupt controller
dt-bindings: riscv: Add Andes interrupt controller compatible string
riscv: dts: renesas: r9a07g043f: Update compatible string to use Andes
INTC
perf: RISC-V: Eliminate redundant interrupt enable/disable operations
perf: RISC-V: Introduce Andes PMU to support perf event sampling
dt-bindings: riscv: Add Andes PMU extension description
riscv: dts: renesas: Add Andes PMU extension for r9a07g043f

 .../devicetree/bindings/riscv/cpus.yaml       |   6 +-
 .../devicetree/bindings/riscv/extensions.yaml |   7 +
 arch/riscv/boot/dts/renesas/r9a07g043f.dtsi   |   4 +-
 arch/riscv/errata/andes/errata.c              |  10 +-
 arch/riscv/include/asm/errata_list.h          |  13 +-
 arch/riscv/include/asm/hwcap.h                |   1 +
 arch/riscv/include/asm/vendorid_list.h        |   2 +-
 arch/riscv/kernel/alternative.c               |   2 +-
 arch/riscv/kernel/cpufeature.c                |   1 +
 drivers/irqchip/irq-riscv-intc.c              |  82 +++++++++--
 drivers/perf/Kconfig                          |  14 ++
 drivers/perf/riscv_pmu_sbi.c                  |  37 ++++-
 include/linux/soc/andes/irq.h                 |  18 +++
 .../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 +
 18 files changed, 488 insertions(+), 39 deletions(-)
 create mode 100644 include/linux/soc/andes/irq.h
 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 · 1 line
2.34.1