From: fangyu.yu@linux.alibaba.com
To: zong.li@sifive.com
Cc: alex@ghiti.fr, andrew.jones@oss.qualcomm.com,
aou@eecs.berkeley.edu, david.laight.linux@gmail.com,
guoren@kernel.org, iommu@lists.linux.dev, joro@8bytes.org,
linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org,
linux-riscv@lists.infradead.org, mark.rutland@arm.com,
palmer@dabbelt.com, pjw@kernel.org, robin.murphy@arm.com,
tjeznach@rivosinc.com, will@kernel.org,
zhangzhanpeng.jasper@bytedance.com,
Fangyu Yu <fangyu.yu@linux.alibaba.com>
Subject: Re: [PATCH v4 0/2] RISC-V IOMMU HPM support
Date: Tue, 14 Jul 2026 21:13:05 +0800 [thread overview]
Message-ID: <20260714131305.55950-1-fangyu.yu@linux.alibaba.com> (raw)
In-Reply-To: <20260714083625.1083606-1-zong.li@sifive.com>
>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.
>
Hi Zong,
I tested this series on a riscv64 QEMU with a QEMU NVMe device.
The NVMe device was enumerated correctly, and the RISC-V IOMMU PMU
events could be counted successfully while running I/O to the NVMe disk.
The following command completed successfully:
perf stat -a \
-e riscv_iommu_pmu_3010000.iommu/tlb_miss/ \
-e riscv_iommu_pmu_3010000.iommu/cycle/ \
-e riscv_iommu_pmu_3010000.iommu/untranslated_req/ \
-e riscv_iommu_pmu_3010000.iommu/s_vs_pt_walks/ \
dd if=/dev/nvme0n1 of=/dev/null bs=1M count=100
100+0 records in
100+0 records out
104857600 bytes (105 MB, 100 MiB) copied, 1.43612 s, 73.0 MB/s
Performance counter stats for 'system wide':
26449 riscv_iommu_pmu_3010000.iommu/tlb_miss/
256659 riscv_iommu_pmu_3010000.iommu/cycle/
32063 riscv_iommu_pmu_3010000.iommu/untranslated_req/
132245 riscv_iommu_pmu_3010000.iommu/s_vs_pt_walks/
1.464510700 seconds time elapsed
Tested-by: Fangyu Yu <fangyu.yu@linux.alibaba.com>
prev parent reply other threads:[~2026-07-14 13:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-14 8:36 [PATCH v4 0/2] RISC-V IOMMU HPM support Zong Li
2026-07-14 8:36 ` [PATCH v4 1/2] drivers/perf: riscv-iommu: add risc-v iommu pmu driver Zong Li
2026-07-14 8:53 ` sashiko-bot
2026-07-14 11:22 ` Guo Ren
2026-07-14 8:36 ` [PATCH v4 2/2] iommu/riscv: create a auxiliary device for HPM Zong Li
2026-07-14 9:03 ` sashiko-bot
2026-07-14 12:50 ` [PATCH v4 0/2] RISC-V IOMMU HPM support Chen Pei
2026-07-14 13:13 ` fangyu.yu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260714131305.55950-1-fangyu.yu@linux.alibaba.com \
--to=fangyu.yu@linux.alibaba.com \
--cc=alex@ghiti.fr \
--cc=andrew.jones@oss.qualcomm.com \
--cc=aou@eecs.berkeley.edu \
--cc=david.laight.linux@gmail.com \
--cc=guoren@kernel.org \
--cc=iommu@lists.linux.dev \
--cc=joro@8bytes.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=mark.rutland@arm.com \
--cc=palmer@dabbelt.com \
--cc=pjw@kernel.org \
--cc=robin.murphy@arm.com \
--cc=tjeznach@rivosinc.com \
--cc=will@kernel.org \
--cc=zhangzhanpeng.jasper@bytedance.com \
--cc=zong.li@sifive.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox