qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/6] Support discontinuous PMU counters
@ 2023-10-11 14:45 Rob Bradford
  2023-10-11 14:45 ` [PATCH v2 1/6] target/riscv: Propagate error from PMU setup Rob Bradford
                   ` (5 more replies)
  0 siblings, 6 replies; 18+ messages in thread
From: Rob Bradford @ 2023-10-11 14:45 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-riscv, atishp, palmer, alistair.francis, bin.meng, liweiwei,
	dbarboza, zhiwei_liu, Rob Bradford

Currently the available PMU counters start at HPM3 and run through to
the number specified by the "pmu-num" property. There is no
requirement in the specification that the available counters be
continously numbered. This series add suppport for specifying a
discountinuous range of counters though a "pmu-mask" property.

v2:

* Use cfg.pmu_mask wherever cfg.pmu_num was used previously
* Deprecate pmu_num property (warning, comment & updated documentation)
* Override default pmu_mask value iff pmu_num changed from default

Rob Bradford (6):
  target/riscv: Propagate error from PMU setup
  target/riscv: Don't assume PMU counters are continuous
  target/riscv: Use existing PMU counter mask in FDT generation
  qemu/bitops.h: Add MAKE_32BIT_MASK macro
  target/riscv: Add "pmu-mask" property to replace "pmu-num"
  docs/about/deprecated: Document RISC-V "pmu-num" deprecation

 docs/about/deprecated.rst | 10 ++++++++++
 hw/riscv/virt.c           |  2 +-
 include/qemu/bitops.h     |  3 +++
 target/riscv/cpu.c        | 13 ++++++++++---
 target/riscv/cpu_cfg.h    |  3 ++-
 target/riscv/csr.c        |  5 +++--
 target/riscv/machine.c    |  2 +-
 target/riscv/pmu.c        | 35 +++++++++++++++++------------------
 target/riscv/pmu.h        |  5 +++--
 9 files changed, 50 insertions(+), 28 deletions(-)

-- 
2.41.0



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2023-10-16  3:50 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-11 14:45 [PATCH v2 0/6] Support discontinuous PMU counters Rob Bradford
2023-10-11 14:45 ` [PATCH v2 1/6] target/riscv: Propagate error from PMU setup Rob Bradford
2023-10-12  3:18   ` LIU Zhiwei
2023-10-11 14:45 ` [PATCH v2 2/6] target/riscv: Don't assume PMU counters are continuous Rob Bradford
2023-10-16  3:42   ` Alistair Francis
2023-10-11 14:45 ` [PATCH v2 3/6] target/riscv: Use existing PMU counter mask in FDT generation Rob Bradford
2023-10-12  8:43   ` LIU Zhiwei
2023-10-16  3:44   ` Alistair Francis
2023-10-11 14:45 ` [PATCH v2 4/6] qemu/bitops.h: Add MAKE_32BIT_MASK macro Rob Bradford
2023-10-12  8:51   ` LIU Zhiwei
2023-10-16  3:45     ` Alistair Francis
2023-10-11 14:45 ` [PATCH v2 5/6] target/riscv: Add "pmu-mask" property to replace "pmu-num" Rob Bradford
2023-10-12  9:05   ` LIU Zhiwei
2023-10-12 12:38     ` Rob Bradford
2023-10-13  1:41       ` LIU Zhiwei
2023-10-11 14:45 ` [PATCH v2 6/6] docs/about/deprecated: Document RISC-V "pmu-num" deprecation Rob Bradford
2023-10-12  9:09   ` LIU Zhiwei
2023-10-16  3:49   ` Alistair Francis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).