Re: [PATCH v9 5/8] perf/amd/iommu: Modify functions to query max banks and counters

2017-02-08 Thread Borislav Petkov
On Tue, Feb 07, 2017 at 02:40:33AM -0600, Suravee Suthikulpanit wrote: > Currently, amd_iommu_pc_get_max_[banks|counters]() use end-point > device ID to locate an IOMMU and check the reported max banks/counters. > The logic assumes that the IOMMU_BASE_DEVID belongs to the first IOMMU, > and uses it

[PATCH v9 5/8] perf/amd/iommu: Modify functions to query max banks and counters

2017-02-07 Thread Suravee Suthikulpanit
Currently, amd_iommu_pc_get_max_[banks|counters]() use end-point device ID to locate an IOMMU and check the reported max banks/counters. The logic assumes that the IOMMU_BASE_DEVID belongs to the first IOMMU, and uses it to acquire a reference to the first IOMMU, which does not work on certain syst