Re: [PATCH v7 3/7] perf/amd/iommu: Modify IOMMU API to allow specifying IOMMU index

2017-01-11 Thread Borislav Petkov
On Mon, Jan 09, 2017 at 09:33:43PM -0600, Suravee Suthikulpanit wrote: > The current amd_iommu_pc_get_set_reg_val() cannot support multi-IOMMU. multiple IOMMUs. > It is also confusing since it is trying to support set and get in > one functi

[PATCH v7 3/7] perf/amd/iommu: Modify IOMMU API to allow specifying IOMMU index

2017-01-09 Thread Suravee Suthikulpanit
The current amd_iommu_pc_get_set_reg_val() cannot support multi-IOMMU. It is also confusing since it is trying to support set and get in one function. So, this patch breaks it down to amd_iommu_pc_[get|set]_counter(), and modifies them to allow callers to specify IOMMU index. This prepares the dri