All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] RISC-V IOMMU HPM support
@ 2026-06-30  8:38 ` Zong Li
  0 siblings, 0 replies; 28+ messages in thread
From: Zong Li @ 2026-06-30  8:38 UTC (permalink / raw)
  To: tjeznach, joro, will, robin.murphy, pjw, palmer, aou, alex,
	mark.rutland, andrew.jones, guoren, david.laight.linux, iommu,
	linux-riscv, linux-kernel, linux-perf-users
  Cc: Zong Li

This series implements support for the RISC-V IOMMU hardware performance
monitor.

The RISC-V IOMMU PMU driver is implemented as an auxiliary device driver
created by the parent RISC-V IOMMU driver. Therefore, the child driver
can obtain resources and information from the parent device, such as
the MMIO base address and IRQ number.

Changed in v2:
- Rebased onto v7.2-rc1
- Use hi-lo-hi mechanism to read counter.
  Suggested by Guo Ren and David Laight

Changed in v1:
- Rebased onto v6.19-rc8
- Pick all suggestions and feedbacks from v1 series
- Add cpu hotplug implementation to avoid race enablement
- Move PMU-related definition from header to c file
- Change PMU driver to auxiliary device driver

Changed in RFC:
- Rebase onto v6.13-rc7
- Clear interrupt pending before handling interrupt
- Fix the counter value issue caused by OF bit in the cycle counter.
- Invoke riscv_iommu_hpm_disable() instead of riscv_iommu_pmu_uninit()
  in riscv_iommu_remove()

Zong Li (2):
  drivers/perf: riscv-iommu: add risc-v iommu pmu driver
  iommu/riscv: create a auxiliary device for HPM

 drivers/iommu/riscv/iommu-bits.h |  61 ---
 drivers/iommu/riscv/iommu.c      |  19 +
 drivers/perf/Kconfig             |  12 +
 drivers/perf/Makefile            |   1 +
 drivers/perf/riscv_iommu_pmu.c   | 703 +++++++++++++++++++++++++++++++
 5 files changed, 735 insertions(+), 61 deletions(-)
 create mode 100644 drivers/perf/riscv_iommu_pmu.c

-- 
2.43.7


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

end of thread, other threads:[~2026-07-07  6:34 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-30  8:38 [PATCH v3 0/2] RISC-V IOMMU HPM support Zong Li
2026-06-30  8:38 ` Zong Li
2026-06-30  8:38 ` [PATCH v3 1/2] drivers/perf: riscv-iommu: add risc-v iommu pmu driver Zong Li
2026-06-30  8:38   ` Zong Li
2026-06-30  8:56   ` sashiko-bot
2026-06-30 13:17   ` Guo Ren
2026-06-30 13:17     ` Guo Ren
2026-07-03  1:36     ` Zong Li
2026-07-03  1:36       ` Zong Li
2026-07-07  2:01       ` Zong Li
2026-07-07  2:01         ` Zong Li
2026-07-07  2:58         ` Guo Ren
2026-07-07  2:58           ` Guo Ren
2026-07-07  3:49           ` Zong Li
2026-07-07  3:49             ` Zong Li
2026-07-07  5:51             ` Guo Ren
2026-07-07  5:51               ` Guo Ren
2026-07-07  6:03         ` Guo Ren
2026-07-07  6:03           ` Guo Ren
2026-07-07  6:34           ` Zong Li
2026-07-07  6:34             ` Zong Li
2026-07-03  3:18     ` Zhanpeng Zhang
2026-07-03  3:18       ` Zhanpeng Zhang
2026-06-30  8:38 ` [PATCH v3 2/2] iommu/riscv: create a auxiliary device for HPM Zong Li
2026-06-30  8:38   ` Zong Li
2026-06-30  8:55   ` sashiko-bot
2026-07-01  1:43   ` Guo Ren
2026-07-01  1:43     ` Guo Ren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.