Re: [PATCH v5 08/13] iommu/rockchip: Control clocks needed to access the IOMMU

2018-01-30 Thread Tomasz Figa
Hi Rob, On Wed, Jan 31, 2018 at 2:05 AM, Rob Herring wrote: > On Wed, Jan 24, 2018 at 06:35:11PM +0800, Jeffy Chen wrote: >> From: Tomasz Figa >> >> Current code relies on master driver enabling necessary clocks before >> IOMMU is accessed, however there are

[GIT PULL] dma-mapping updates for Linux 4.16

2018-01-30 Thread Christoph Hellwig
Hi Linus, below is the update for the dma-mapping subsystem for Linux 4.16. Except for a runtime warning fix from Christian this is all about consolidating the direct mapping and swiotlb dma maps based on the x86 code, which will hopefully be switched to this generic code as well in the next

[PATCH v3] iommu/amd: Add support for fast IOTLB flushing

2018-01-30 Thread Suravee Suthikulpanit
Implement the newly added IOTLB flushing interface for AMD IOMMU. Cc: Joerg Roedel Signed-off-by: Suravee Suthikulpanit --- Changes from v2 (https://lkml.org/lkml/2017/12/27/44) * Call domain_flush_complete() after domain_flush_tlb_pde().

[PATCH 0/2] iommu / vfio: Clean up iommu_map[_fast] interface

2018-01-30 Thread Suravee Suthikulpanit
Change iommu_unmap[_fast] interfaces return type to ssize_t since it can also return error code. Cc: Joerg Roedel Cc: Alex Williamson Suravee Suthikulpanit (2): iommu: Fix iommu_unmap and iommu_unmap_fast return type vfio/type1: Add iommu_unmap

[PATCH 1/2] iommu: Fix iommu_unmap and iommu_unmap_fast return type

2018-01-30 Thread Suravee Suthikulpanit
Currently, iommu_unmap and iommu_unmap_fast return unmapped pages with size_t. However, the actual value returned could be error codes (< 0), which can be misinterpreted as large number of unmapped pages. Therefore, change the return type to ssize_t. Cc: Joerg Roedel Cc: Alex

[PATCH 2/2] vfio/type1: Add iommu_unmap error check when vfio_unmap_unpin

2018-01-30 Thread Suravee Suthikulpanit
Besides zero check the number of unmapped page, also check and handle iommu_unmap errors. Cc: Alex Williamson Cc: Joerg Roedel Signed-off-by: Suravee Suthikulpanit --- drivers/vfio/vfio_iommu_type1.c | 5 +++-- 1 file

[PATCH] iommu/amd - Use dev_err to send events to the system log

2018-01-30 Thread Gary R Hook
Remove printk and use a more preferable error logging function. Signed-off-by: Gary R Hook --- drivers/iommu/amd_iommu.c | 56 +++-- 1 file changed, 29 insertions(+), 27 deletions(-) diff --git a/drivers/iommu/amd_iommu.c

Re: [PATCH v5 08/13] iommu/rockchip: Control clocks needed to access the IOMMU

2018-01-30 Thread Rob Herring
On Wed, Jan 24, 2018 at 06:35:11PM +0800, Jeffy Chen wrote: > From: Tomasz Figa > > Current code relies on master driver enabling necessary clocks before > IOMMU is accessed, however there are cases when the IOMMU should be > accessed while the master is not running yet, for

Re: [PATCH 3/3] ARM: dts: r8a7745: Add IPMMU DT nodes

2018-01-30 Thread Simon Horman
On Wed, Jan 24, 2018 at 03:42:02PM +, Biju Das wrote: > Add the six IPMMU instances found in the r8a7745 to DT with a disabled > status. > > Signed-off-by: Biju Das > Reviewed-by: Chris Paterson Thanks, I have applied this after moving

Re: [PATCH 2/3] ARM: dts: r8a7743: Add IPMMU DT nodes

2018-01-30 Thread Simon Horman
On Wed, Jan 24, 2018 at 03:42:01PM +, Biju Das wrote: > Add the six IPMMU instances found in the r8a7743 to DT with a disabled > status. > > Signed-off-by: Biju Das > Reviewed-by: Chris Paterson > --- > arch/arm/boot/dts/r8a7743.dtsi |

Re: [PATCH 1/3] dt-bindings: iommu: ipmmu-vmsa: Add device tree support for r8a774[35]

2018-01-30 Thread Simon Horman
On Wed, Jan 24, 2018 at 03:42:00PM +, Biju Das wrote: > Document r8a774[35] specific compatible strings. The Renesas RZ/G1[ME] > (r8a774[35]) IPMMU are identical to the R-Car Gen2 family. > > Signed-off-by: Biju Das > Reviewed-by: Chris Paterson