Re: [PATCH] iommu/arm-smmu-v3: Don't reserve implementation defined register space

2020-05-08 Thread Tuan Phan
eserved by the PMU driver. > + */ > + smmu->base = arm_smmu_ioremap(dev, ioaddr, ARM_SMMU_PAGE0_REG_SZ); > if (IS_ERR(smmu->base)) > return PTR_ERR(smmu->base); > > + if (arm_smmu_resource_size(smmu) > SZ_64K) { > +

Re: [PATCH] perf/smmuv3: Allow sharing MMIO registers with the SMMU driver

2020-04-29 Thread Tuan Phan
> On Apr 29, 2020, at 12:21 AM, Jean-Philippe Brucker > wrote: > > On Tue, Apr 28, 2020 at 11:10:09AM -0700, Tuan Phan wrote: >> I tested this patch on HW, however I need to add one more following change >> to make it works > > Thanks for testing. I don't

Re: [PATCH] perf/smmuv3: Allow sharing MMIO registers with the SMMU driver

2020-04-29 Thread Tuan Phan
> On Apr 21, 2020, at 8:57 AM, Jean-Philippe Brucker > wrote: > > Some Arm SMMUv3 implementations, for example Arm CoreLink MMU-600, embed > the PMCG registers into the SMMU MMIO regions. It currently causes probe > failure because the PMU and SMMU drivers request overlapping resources. > > A