Re: Re: [PATCH v1 1/3] iommu/riscv: Add iommu perf driver

Will Deacon
2025-09-17T12:11:03Z

[nit: your email client has made a big mess of the thread here]

On Tue, Sep 16, 2025 at 06:27:23PM +0800, guoyaxing@bosc.ac.cn wrote:
> > PMU drivers are better placed under drivers/perf/
>
> I did a quick reading of SMMU pmu driver in drivers/perf/. However, If
> the RISC-V IOMMU PMU driver is placed under drivers/perf/ as the SMMU did,
> it would cause an overlap in the iomem resource region between the two
> devices(iommu & iommu pmu), because it needs to share interrupt-related
> registers (such as the IPSR register) with the main IOMMU driver.

Is that not something you can resolve with IRQF_SHARED?

Will