Re: [PATCH v5 01/14] drivers: iommu: add FWNODE_IOMMU fwnode type

2016-09-29 Thread Rafael J. Wysocki
On Thursday, September 29, 2016 03:15:20 PM Lorenzo Pieralisi wrote: > Hi Rafael, > > On Fri, Sep 09, 2016 at 03:23:30PM +0100, Lorenzo Pieralisi wrote: > > On systems booting with a device tree, every struct device is > > associated with a struct device_node, that represents its DT > > representa

[PATCH] dma-debug: fix ia64 build, use PHYS_PFN

2016-09-29 Thread Niklas Söderlund
kbuild test robot reports: lib/dma-debug.c: In function 'debug_dma_map_resource': >> lib/dma-debug.c:1541:16: error: implicit declaration of function >> '__phys_to_pfn' [-Werror=implicit-function-declaration] entry->pfn = __phys_to_pfn(addr); ^ ia64 does n

Re: [PATCH 1/1] arch/x86: Add CONFIG_IOMMU_DEFAULT_PT for iommu=pt

2016-09-29 Thread Alex Williamson
On Thu, 29 Sep 2016 11:41:53 -0700 Glenn Serre wrote: > Good morning, > > On 09/29/2016 11:31 AM, Alex Williamson wrote: > > On Thu, 29 Sep 2016 09:58:55 -0700 > > Glenn Serre wrote: > > > >> Add CONFIG_IOMMU_DEFAULT_PT for iommu=pt > >> > >> Allow default to iommu=pt without adding to comman

Re: [PATCH 1/1] arch/x86: Add CONFIG_IOMMU_DEFAULT_PT for iommu=pt

2016-09-29 Thread Glenn Serre
Good morning, On 09/29/2016 11:31 AM, Alex Williamson wrote: On Thu, 29 Sep 2016 09:58:55 -0700 Glenn Serre wrote: Add CONFIG_IOMMU_DEFAULT_PT for iommu=pt Allow default to iommu=pt without adding to command line. Add iommu=nopt to turn off default. Signed-off-by: Glenn Serre --- Documen

Re: [PATCH 1/1] arch/x86: Add CONFIG_IOMMU_DEFAULT_PT for iommu=pt

2016-09-29 Thread Alex Williamson
On Thu, 29 Sep 2016 09:58:55 -0700 Glenn Serre wrote: > Add CONFIG_IOMMU_DEFAULT_PT for iommu=pt > > Allow default to iommu=pt without adding to command line. > Add iommu=nopt to turn off default. > > Signed-off-by: Glenn Serre > --- > Documentation/kernel-parameters.txt | 3 ++- > arch/x86

Re: [PATCH 1/1] arch/x86: Add CONFIG_IOMMU_DEFAULT_PT for iommu=pt

2016-09-29 Thread Konrad Rzeszutek Wilk
On Thu, Sep 29, 2016 at 11:18:34AM -0700, Glenn Serre wrote: > Good morning, > > On 09/29/2016 11:11 AM, Konrad Rzeszutek Wilk wrote: > > On Thu, Sep 29, 2016 at 09:58:55AM -0700, Glenn Serre wrote: > > > Add CONFIG_IOMMU_DEFAULT_PT for iommu=pt > > > > > > Allow default to iommu=pt without addin

Re: [PATCH 1/1] arch/x86: Add CONFIG_IOMMU_DEFAULT_PT for iommu=pt

2016-09-29 Thread Glenn Serre
Good morning, On 09/29/2016 11:11 AM, Konrad Rzeszutek Wilk wrote: On Thu, Sep 29, 2016 at 09:58:55AM -0700, Glenn Serre wrote: Add CONFIG_IOMMU_DEFAULT_PT for iommu=pt Allow default to iommu=pt without adding to command line. Add iommu=nopt to turn off default. What's the reason / use-case

Re: [PATCH 1/1] arch/x86: Add CONFIG_IOMMU_DEFAULT_PT for iommu=pt

2016-09-29 Thread Konrad Rzeszutek Wilk
On Thu, Sep 29, 2016 at 09:58:55AM -0700, Glenn Serre wrote: > Add CONFIG_IOMMU_DEFAULT_PT for iommu=pt > > Allow default to iommu=pt without adding to command line. > Add iommu=nopt to turn off default. What's the reason / use-case for it? > > Signed-off-by: Glenn Serre > --- > Documentation

[PATCH 1/1] arch/x86: Add CONFIG_IOMMU_DEFAULT_PT for iommu=pt

2016-09-29 Thread Glenn Serre
Add CONFIG_IOMMU_DEFAULT_PT for iommu=pt Allow default to iommu=pt without adding to command line. Add iommu=nopt to turn off default. Signed-off-by: Glenn Serre --- Documentation/kernel-parameters.txt | 3 ++- arch/x86/Kconfig| 7 +++ arch/x86/kernel/pci-dma.c

Re: [PATCH v5 01/14] drivers: iommu: add FWNODE_IOMMU fwnode type

2016-09-29 Thread Lorenzo Pieralisi
Hi Rafael, On Fri, Sep 09, 2016 at 03:23:30PM +0100, Lorenzo Pieralisi wrote: > On systems booting with a device tree, every struct device is > associated with a struct device_node, that represents its DT > representation. The device node can be used in generic kernel > contexts (eg IRQ translatio

Re: [PATCH 0/2] dma-mapping: fix ia64 and m32r build error and warnings

2016-09-29 Thread Niklas Söderlund
On 2016-09-29 17:40:04 +0530, Vinod Koul wrote: > On Thu, Sep 29, 2016 at 12:02:38PM +0200, Niklas Söderlund wrote: > > From: Niklas Söderlund > > > > Hi Vindo, > > :( I'm sorry, my hands sometimes moves faster then my head. > > > > > This small series fixes the build error and warnings for

Re: [PATCH 0/2] dma-mapping: fix ia64 and m32r build error and warnings

2016-09-29 Thread Vinod Koul
On Thu, Sep 29, 2016 at 12:02:38PM +0200, Niklas Söderlund wrote: > From: Niklas Söderlund > > Hi Vindo, :( > > This small series fixes the build error and warnings for ia64 and m32r > which kbuild test robot found and where introduced in the series > '[PATCHv9 0/6] dmaengine: rcar-dmac: add

[PATCH 2/2] dma-mapping: fix m32r build warning

2016-09-29 Thread Niklas Söderlund
From: Niklas Söderlund kbuild test robot reports: In file included from include/linux/skbuff.h:34:0, from include/linux/icmpv6.h:4, from include/linux/ipv6.h:75, from include/net/ipv6.h:16, from include/linux/sunr

[PATCH 0/2] dma-mapping: fix ia64 and m32r build error and warnings

2016-09-29 Thread Niklas Söderlund
From: Niklas Söderlund Hi Vindo, This small series fixes the build error and warnings for ia64 and m32r which kbuild test robot found and where introduced in the series '[PATCHv9 0/6] dmaengine: rcar-dmac: add iommu support for slave transfers'. It is based ontop of: git://git.kernel.org/pu

[PATCH 1/2] dma-mapping: fix ia64 build, use PHYS_PFN

2016-09-29 Thread Niklas Söderlund
From: Niklas Söderlund kbuild test robot reports: In file included from include/linux/skbuff.h:34:0, from include/linux/tcp.h:21, from drivers/net/ethernet/amd/xgbe/xgbe-drv.c:119: include/linux/dma-mapping.h: In function 'dma_map_resource': >> inclu

[PATCH v4 0/2] Exynos IOMMU: proper runtime PM support (use device dependencies)

2016-09-29 Thread Marek Szyprowski
Hello, This patch series finally implements proper runtime PM support in Exynos IOMMU driver. This has been achieved by using recently introduce device links, which lets SYSMMU controller's runtime PM to follow master's device runtime PM state (the device which actually performs DMA transaction).

[PATCH v4 1/2] iommu/exynos: Remove excessive, useless debug

2016-09-29 Thread Marek Szyprowski
Remove excessive, useless debug about skipping TLB invalidation, which is a normal situation when more aggressive power management is enabled. Signed-off-by: Marek Szyprowski --- drivers/iommu/exynos-iommu.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/iommu/exynos-iommu.c b/dri

[PATCH v4 2/2] iommu/exynos: Add proper runtime pm support

2016-09-29 Thread Marek Szyprowski
This patch uses recently introduced device links to track the runtime pm state of the master's device. This way each SYSMMU controller is runtime activated when its master's device is active and can save/restore its state instead of being enabled all the time. This way SYSMMU controllers no longer