Re: [PATCH 2/3] AMD IOMMUv2 PC resource management hooks

2013-01-21 Thread Cyrill Gorcunov
On Mon, Jan 21, 2013 at 09:47:30PM +, Kinney, Steven wrote: > Hi Cyrill, > Agree, will clean this up. Yeah, but no rush. Lets wait for other opinions as well. ___ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/m

Re: [PATCH 2/3] AMD IOMMUv2 PC resource management hooks

2013-01-21 Thread Cyrill Gorcunov
On Mon, Jan 21, 2013 at 02:20:57PM -0600, Steven L. Kinney wrote: > +u8 amd_iommu_v2_get_max_pc_banks(u16 devid) > +{ > + struct amd_iommu *iommu; > + > + /* locate the iommu governing the devid */ > + iommu = amd_iommu_rlookup_table[devid]; > + > + if (iommu) > + return

RE: [PATCH 2/3] AMD IOMMUv2 PC resource management hooks

2013-01-21 Thread Kinney, Steven
Subject: Re: [PATCH 2/3] AMD IOMMUv2 PC resource management hooks On Mon, Jan 21, 2013 at 02:20:57PM -0600, Steven L. Kinney wrote: > +u8 amd_iommu_v2_get_max_pc_banks(u16 devid) { > + struct amd_iommu *iommu; > + > + /* locate the iommu governing the devid */ &

[PATCH 2/3] AMD IOMMUv2 PC resource management hooks

2013-01-21 Thread Steven L. Kinney
From: "Steven L. Kinney" Add functionality to check the availability of the AMD IOMMUv2 Performance Counters and export this functionality to other core drivers, such as in this case, a perf IOMMUv2 PMU. This feature is not bound to any specific AMD family/model other than the presence of the IO