Re: [PATCH V4 5/6] perf/amd/iommu: Enable support for multiple IOMMUs

2016-02-22 Thread Alex Williamson
On Tue, 23 Feb 2016 12:12:42 +0700 Suravee Suthikulpanit wrote: > Hi > > On 02/22/2016 09:07 PM, Peter Zijlstra wrote: > > On Mon, Feb 22, 2016 at 03:00:31PM +0700, Suravee Suthikulpanit wrote: > >>> So I really don't have time to review new muck while I'm hunting perf > >>> core fail, but Bor

Re: [PATCH V4 5/6] perf/amd/iommu: Enable support for multiple IOMMUs

2016-02-22 Thread Suravee Suthikulpanit
Hi On 02/22/2016 09:07 PM, Peter Zijlstra wrote: On Mon, Feb 22, 2016 at 03:00:31PM +0700, Suravee Suthikulpanit wrote: So I really don't have time to review new muck while I'm hunting perf core fail, but Boris made me look at this. This is crazy, if you have multiple IOMMUs then create an eve

Re: Warning from AMD IOMMU performance counters

2016-02-22 Thread Laura Abbott
On 02/21/2016 05:52 PM, Wan Zongshun wrote: Original Message Hi, Since about 4.4, we've been seeing reports of this warning on every boot from some users: WARNING: CPU: 2 PID: 1 at drivers/iommu/amd_iommu_init.c:2301 amd_iommu_pc_get_set_reg_val+0xa8/0xe0() Modules linked i

[PATCH v10 4/5] iommu/mediatek: Add mt8173 IOMMU driver

2016-02-22 Thread Yong Wu
This patch adds support for mediatek m4u (MultiMedia Memory Management Unit). Signed-off-by: Yong Wu Reviewed-by: Robin Murphy --- drivers/iommu/Kconfig | 16 + drivers/iommu/Makefile| 1 + drivers/iommu/mtk_iommu.c | 737 ++ 3 files change

[PATCH v10 2/5] dt-bindings: mediatek: Add smi dts binding

2016-02-22 Thread Yong Wu
This patch add smi binding document and smi local arbiter header file. Signed-off-by: Yong Wu Acked-by: Rob Herring --- .../memory-controllers/mediatek,smi-common.txt | 24 + .../memory-controllers/mediatek,smi-larb.txt | 25 + include/dt-bindings/memory/mt8173-larb-port.h

[PATCH v10 5/5] dts: mt8173: Add iommu/smi nodes for mt8173

2016-02-22 Thread Yong Wu
This patch add the iommu/larbs nodes for mt8173 Signed-off-by: Yong Wu Reviewed-by: Daniel Kurtz --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 81 1 file changed, 81 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/med

[PATCH v10 3/5] memory: mediatek: Add SMI driver

2016-02-22 Thread Yong Wu
This patch add SMI(Smart Multimedia Interface) driver. This driver is responsible to enable/disable iommu and control the power domain and clocks of each local arbiter. Signed-off-by: Yong Wu Tested-by: Philipp Zabel Reviewed-by: Daniel Kurtz Tested-by: Daniel Kurtz Signed-off-by: Matthias Bru

[PATCH v10 1/5] dt-bindings: iommu: Add binding for mediatek IOMMU

2016-02-22 Thread Yong Wu
This patch add mediatek iommu dts binding document. Signed-off-by: Yong Wu Acked-by: Rob Herring --- .../devicetree/bindings/iommu/mediatek,iommu.txt | 68 ++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/iommu/mediatek,iommu.txt d

[PATCH v10 0/5] MT8173 IOMMU SUPPORT

2016-02-22 Thread Yong Wu
This patch set adds support for m4u(Multimedia Memory Management Unit), Currently it only support the m4u with 2 levels of pagetable on mt8173. It's based on Robin Murphy's Short-descriptor v3[1]. Please check the hardware block diagram of Mediatek IOMMU. m4u (Multimedia Me

Re: [PATCH] iommu: ipmmu-vmsa: Use ARCH_RENESAS

2016-02-22 Thread Laurent Pinchart
Hi Simon, Thank you for the patch. On Monday 22 February 2016 10:41:35 Simon Horman wrote: > Make use of ARCH_RENESAS in place of ARCH_SHMOBILE. > > This is part of an ongoing process to migrate from ARCH_SHMOBILE to > ARCH_RENESAS the motivation for which being that RENESAS seems to be a more >

Re: [PATCH V4 5/6] perf/amd/iommu: Enable support for multiple IOMMUs

2016-02-22 Thread Peter Zijlstra
On Mon, Feb 22, 2016 at 03:00:31PM +0700, Suravee Suthikulpanit wrote: > >So I really don't have time to review new muck while I'm hunting perf > >core fail, but Boris made me look at this. > > > >This is crazy, if you have multiple IOMMUs then create an event per > >IOMMU, do _NOT_ fold them all i

Re: [PATCH] iommu: ipmmu-vmsa: Use ARCH_RENESAS

2016-02-22 Thread Geert Uytterhoeven
On Mon, Feb 22, 2016 at 2:41 AM, Simon Horman wrote: > Make use of ARCH_RENESAS in place of ARCH_SHMOBILE. > > This is part of an ongoing process to migrate from ARCH_SHMOBILE to > ARCH_RENESAS the motivation for which being that RENESAS seems to be a more > appropriate name than SHMOBILE for the

Re: [PATCH V4 5/6] perf/amd/iommu: Enable support for multiple IOMMUs

2016-02-22 Thread Suravee Suthikulpanit
Hi Peter, On 02/18/2016 08:18 PM, Peter Zijlstra wrote: On Thu, Feb 11, 2016 at 04:15:26PM +0700, Suravee Suthikulpanit wrote: static void perf_iommu_read(struct perf_event *event) { + int i; u64 delta = 0ULL; struct hw_perf_event *hwc = &event->hw; + struct perf