Re: [PATCH v7 4/7] perf/amd/iommu: Declare pr_fmt and remove unnecessary pr_debug

2017-01-12 Thread Borislav Petkov
On Mon, Jan 09, 2017 at 09:33:44PM -0600, Suravee Suthikulpanit wrote: > This patch declare pr_fmt for perf/amd_iommu and remove unnecessary There's that "This patch" again. > pr_debug. > > Cc: Peter Zijlstra > Cc: Borislav Petkov > Signed-off-by: Suravee Suthikulpanit > --- > arch/x86/event

Re: [PATCH v7 5/7] perf/amd/iommu: Clean up perf_iommu_enable_event

2017-01-12 Thread Borislav Petkov
On Mon, Jan 09, 2017 at 09:33:45PM -0600, Suravee Suthikulpanit wrote: > This patch cleans up: > * Various bitwise operations in perf_iommu_enable_event > * Make use macros BIT(x) > > This should not affect logic and functionality. > > Cc: Peter Zijlstra > Cc: Borislav Petkov > Signed-off-b

Re: [PATCH v7 6/7] iommu/amd: Introduce amd_iommu_get_num_iommus()

2017-01-12 Thread Borislav Petkov
On Mon, Jan 09, 2017 at 09:33:46PM -0600, Suravee Suthikulpanit wrote: > This patch introduces amd_iommu_get_num_iommus(). This is intended for There's that "This patch" again... but you get the idea :) > Perf AMD IOMMU driver. > > Cc: Joerg Roedel > Signed-off-by: Suravee Suthikulpanit > ---

Re: [RFC 1/3] iommu/arm-smmu: Add support to opt-in to stalling

2017-01-12 Thread Will Deacon
On Wed, Jan 11, 2017 at 03:59:30PM -0500, Rob Clark wrote: > On Wed, Jan 11, 2017 at 4:36 AM, Will Deacon wrote: > > On Tue, Jan 10, 2017 at 02:20:13PM -0500, Rob Clark wrote: > >> On Tue, Jan 10, 2017 at 12:52 PM, Will Deacon wrote: > >> > On Fri, Jan 06, 2017 at 11:26:49AM -0500, Rob Clark wrot

Re: [PATCH] iommu/arm-smmu-v3: limit use of 2-level stream tables

2017-01-12 Thread Will Deacon
On Tue, Jan 10, 2017 at 02:47:13PM -0500, Nate Watterson wrote: > In the current arm-smmu-v3 driver, all smmus that support 2-level > stream tables are being forced to use them. This is suboptimal for > smmus that support fewer stream id bits than would fill in a single > second level table. This p

Re: [PATCH v7 7/7] perf/amd/iommu: Enable support for multiple IOMMUs

2017-01-12 Thread Borislav Petkov
On Mon, Jan 09, 2017 at 09:33:47PM -0600, Suravee Suthikulpanit wrote: > This patch adds multi-IOMMU support for perf by exposing > an AMD IOMMU PMU for each IOMMU found in the system via: > > /sys/device/amd_iommu_x /* where x is the IOMMU index. */ Straight into the top-level devices hier